|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.malai.instrument.Instrument
org.malai.instrument.WidgetInstrument
net.sf.latexdraw.instruments.EditingSelector
public class EditingSelector
This instrument selects the pencil or the hand.
This file is part of LaTeXDraw.
Copyright (c) 2005-2012 Arnaud BLOUIN
LaTeXDraw is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation; either version 2 of the License, or (at your option) any later version.
LaTeXDraw is distributed without any warranty; without even the implied
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
05/09/2010
Field Summary | |
---|---|
protected MToggleButton |
arcB
The button that allows to select the instrument Pencil to add arcs. |
protected MToggleButton |
axesB
The button that allows to select the instrument Pencil to add axes. |
protected MToggleButton |
bezierB
The button that allows to select the instrument Pencil to add bezier curves. |
protected MToggleButton |
bezierClosedB
The button that allows to select the instrument Pencil to add closed bezier curves. |
protected Border |
border
The instrument that manages selected shapes. |
protected java.util.Map<MToggleButton,EditionChoice> |
button2EditingChoiceMap
|
protected MToggleButton |
circleB
The button that allows to select the instrument Pencil to add circles. |
protected ShapeDeleter |
deleter
The instrument used to delete shapes. |
protected MToggleButton |
dotB
The button that allows to select the instrument Pencil to draw dots. |
protected MToggleButton |
ellipseB
The button that allows to select the instrument Pencil to add ellipses. |
protected MToggleButton |
freeHandB
The button that allows to select the instrument Pencil to draw free hand shapes. |
protected MToggleButton |
gridB
The button that allows to select the instrument Pencil to add grids. |
protected Hand |
hand
The instrument Hand. |
protected MToggleButton |
handB
The button that allows to select the instrument Hand. |
protected MToggleButton |
linesB
The button that allows to select the instrument Pencil to add lines. |
protected MetaShapeCustomiser |
metaShapeCustomiser
The instrument that manages instruments that customise shapes and the pencil. |
protected Pencil |
pencil
The instrument Pencil. |
protected MToggleButton |
picB
The button that allows to select the instrument Pencil to add pictures. |
protected MToggleButton |
polygonB
The button that allows to select the instrument Pencil to add polygons. |
protected MToggleButton |
recB
The button that allows to select the instrument Pencil to add rectangles. |
protected MToggleButton |
rhombusB
The button that allows to select the instrument Pencil to add rhombuses. |
protected MToggleButton |
squareB
The button that allows to select the instrument Pencil to add squares. |
protected MToggleButton |
textB
The button that allows to select the instrument Pencil to add texts. |
protected MToggleButton |
triangleB
The button that allows to select the instrument Pencil to add triangles. |
Fields inherited from class org.malai.instrument.WidgetInstrument |
---|
composer |
Fields inherited from class org.malai.instrument.Instrument |
---|
activated, eventables, links, modified |
Constructor Summary | |
---|---|
EditingSelector(UIComposer<?> composer,
Pencil pencil,
Hand hand,
MetaShapeCustomiser metaShapeCustomiser,
Border border,
ShapeDeleter deleter)
Creates the instruments selector. |
Method Summary | |
---|---|
MToggleButton |
getArcB()
|
MToggleButton |
getAxesB()
|
MToggleButton |
getBezierB()
|
MToggleButton |
getBezierClosedB()
|
MToggleButton |
getCircleB()
|
MToggleButton |
getDotB()
|
MToggleButton |
getEllipseB()
|
MToggleButton |
getFreeHandB()
|
MToggleButton |
getGridB()
|
Hand |
getHand()
|
MToggleButton |
getHandB()
|
MToggleButton |
getLinesB()
|
Pencil |
getPencil()
|
MToggleButton |
getPicB()
|
MToggleButton |
getPolygonB()
|
MToggleButton |
getRecB()
|
MToggleButton |
getRhombusB()
|
MToggleButton |
getSquareB()
|
MToggleButton |
getTextB()
|
MToggleButton |
getTriangleB()
|
private void |
initialiseEditingChoiceMap()
|
protected void |
initialiseLinks()
Initialises the links of the instrument. |
protected void |
initialiseWidgets()
Initialises the widgets of the instrument. |
void |
interimFeedback()
Reinitialises the interim feedback of the instrument. |
boolean |
isWidget(java.lang.Object ab)
|
void |
onActionDone(Action action)
Notifies the handler when the given action is done. |
void |
setActivated(boolean activated)
Activates or deactivates the instrument. |
Methods inherited from class org.malai.instrument.WidgetInstrument |
---|
getComposer, setActivated |
Methods inherited from class org.malai.instrument.Instrument |
---|
addEventable, addLink, clearEvents, getLinks, getSizeLinks, hasLinks, isActivated, isModified, load, onActionAborted, onActionAdded, onActionCancelled, onActionExecuted, onUndoableAdded, onUndoableRedo, onUndoableUndo, reinit, removeLink, save, setModified |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected MToggleButton handB
protected MToggleButton dotB
protected MToggleButton freeHandB
protected MToggleButton textB
protected MToggleButton recB
protected MToggleButton squareB
protected MToggleButton ellipseB
protected MToggleButton circleB
protected MToggleButton linesB
protected MToggleButton polygonB
protected MToggleButton bezierB
protected MToggleButton bezierClosedB
protected MToggleButton gridB
protected MToggleButton axesB
protected MToggleButton rhombusB
protected MToggleButton triangleB
protected MToggleButton arcB
protected MToggleButton picB
protected Hand hand
protected Pencil pencil
protected MetaShapeCustomiser metaShapeCustomiser
protected Border border
protected ShapeDeleter deleter
protected java.util.Map<MToggleButton,EditionChoice> button2EditingChoiceMap
Constructor Detail |
---|
public EditingSelector(UIComposer<?> composer, Pencil pencil, Hand hand, MetaShapeCustomiser metaShapeCustomiser, Border border, ShapeDeleter deleter)
composer
- The composer that manages the widgets of the instrument.pencil
- The pencil to select.hand
- The hand to select.border
- The instrument that manages selected shapes.metaShapeCustomiser
- The instrument that manages instruments that customise shapes and the pencil.deleter
- The instrument used to delete shapes.
java.lang.IllegalArgumentException
- If one of the given parameter is null.Method Detail |
---|
private void initialiseEditingChoiceMap()
protected void initialiseWidgets()
WidgetInstrument
initialiseWidgets
in class WidgetInstrument
public void interimFeedback()
Instrument
interimFeedback
in class Instrument
protected void initialiseLinks()
Instrument
initialiseLinks
in class Instrument
public void setActivated(boolean activated)
Instrument
setActivated
in class Instrument
activated
- True = activation.public boolean isWidget(java.lang.Object ab)
ab
- The widget to test.
public MToggleButton getHandB()
public MToggleButton getFreeHandB()
public MToggleButton getTextB()
public MToggleButton getDotB()
public MToggleButton getRecB()
public MToggleButton getSquareB()
public MToggleButton getEllipseB()
public MToggleButton getCircleB()
public MToggleButton getLinesB()
public MToggleButton getPolygonB()
public MToggleButton getBezierB()
public MToggleButton getBezierClosedB()
public MToggleButton getGridB()
public MToggleButton getAxesB()
public MToggleButton getRhombusB()
public MToggleButton getTriangleB()
public MToggleButton getArcB()
public MToggleButton getPicB()
public Hand getHand()
public Pencil getPencil()
public void onActionDone(Action action)
ActionHandler
onActionDone
in interface ActionHandler
onActionDone
in class Instrument
action
- The action that ends.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |