org.tigris.gef.base
Class ModeCreateFigSpline

java.lang.Object
  extended by org.tigris.gef.base.ModeImpl
      extended by org.tigris.gef.base.FigModifyingModeImpl
          extended by org.tigris.gef.base.ModeCreate
              extended by org.tigris.gef.base.ModeCreateFigPoly
                  extended by org.tigris.gef.base.ModeCreateFigSpline
All Implemented Interfaces:
java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.io.Serializable, java.util.EventListener, FigModifyingMode, Mode

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

Field Summary
 
Fields inherited from class org.tigris.gef.base.ModeCreateFigPoly
_handle, _lastX, _lastY, _npoints, _startX, _startY
 
Fields inherited from class org.tigris.gef.base.ModeCreate
_defaultHeight, _defaultWidth, _newItem, anchorX, anchorY
 
Fields inherited from class org.tigris.gef.base.FigModifyingModeImpl
editor
 
Fields inherited from class org.tigris.gef.base.ModeImpl
_args
 
Constructor Summary
ModeCreateFigSpline()
           
 
Method Summary
 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.ModeCreateFigPoly
mouseDragged, mouseMoved, mousePressed, nearLast
 
Methods inherited from class org.tigris.gef.base.ModeCreate
createFig, creationDrag, getInitialCursor, keyPressed, paint
 
Methods inherited from class org.tigris.gef.base.FigModifyingModeImpl
done, getEditor, isFigEnclosedIn, print, setCursor, setEditor
 
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
 
Methods inherited from interface org.tigris.gef.base.Mode
canExit, getArg, getArgs, init, setArg, setArgs, start
 

Constructor Detail

ModeCreateFigSpline

public ModeCreateFigSpline()
Method Detail

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 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