org.tigris.gef.base
Class ModeCreateFigSpline
java.lang.Object
org.tigris.gef.base.ModeImpl
org.tigris.gef.base.FigModifyingModeImpl
org.tigris.gef.base.ModeCreate
org.tigris.gef.base.ModeCreateFigPoly
org.tigris.gef.base.ModeCreateFigSpline
- All Implemented Interfaces:
- java.util.EventListener, FigModifyingMode, java.awt.event.KeyListener, Mode, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.io.Serializable
- public class ModeCreateFigSpline
- extends ModeCreateFigPoly
A Mode to interpert user input while creating a FigSpline. All of
the actual event handling is inherited from ModeCreate. This class
just implements the differences needed to make it specific to
polygons.
- See Also:
- Serialized Form
Method Summary |
org.tigris.gef.presentation.Fig |
createNewItem(java.awt.event.MouseEvent me,
int snapX,
int snapY)
Create a new FigRect instance based on the given mouse down
event and the state of the parent Editor. |
java.lang.String |
instructions()
Reply a string of instructions that should be shown in the
statusbar when this mode starts. |
void |
mouseReleased(java.awt.event.MouseEvent me)
On mouse up, officially add the new item to the parent Editor
and select it. |
Methods inherited from class org.tigris.gef.base.ModeImpl |
canExit, getArg, getArgs, init, keyReleased, keyTyped, leave, mouseClicked, mouseEntered, mouseExited, setArg, setArgs, start |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ModeCreateFigSpline
public ModeCreateFigSpline()
instructions
public java.lang.String instructions()
- Description copied from class:
FigModifyingModeImpl
- Reply a string of instructions that should be shown in the
statusbar when this mode starts.
- Specified by:
instructions
in interface FigModifyingMode
- Overrides:
instructions
in class ModeCreateFigPoly
createNewItem
public org.tigris.gef.presentation.Fig createNewItem(java.awt.event.MouseEvent me,
int snapX,
int snapY)
- Create a new FigRect instance based on the given mouse down
event and the state of the parent Editor.
- Overrides:
createNewItem
in class ModeCreateFigPoly
mouseReleased
public void mouseReleased(java.awt.event.MouseEvent me)
- Description copied from class:
ModeCreate
- On mouse up, officially add the new item to the parent Editor
and select it. Then exit this mode.
- Specified by:
mouseReleased
in interface java.awt.event.MouseListener
- Overrides:
mouseReleased
in class ModeCreateFigPoly