uci.gef
Class ModeCreateFigText

java.lang.Object
  |
  +--uci.gef.Mode
        |
        +--uci.gef.ModeCreate
              |
              +--uci.gef.ModeCreateFigText

public class ModeCreateFigText
extends ModeCreate

A Mode to interpert user input while creating a FigText. All of the actual event handling is inherited from ModeCreate. This class just implements the differences needed to make it specific to text.

See Also:
Serialized Form

Fields inherited from class uci.gef.ModeCreate
_defaultHeight, _defaultWidth, _newItem, anchorX, anchorY
 
Fields inherited from class uci.gef.Mode
_args, _editor
 
Constructor Summary
ModeCreateFigText()
           
 
Method Summary
 Fig createNewItem(MouseEvent e, int snapX, int snapY)
          Create a new FigText instance based on the given mouse down event and the state of the parent Editor.
 String instructions()
           
 
Methods inherited from class uci.gef.ModeCreate
creationDrag, getInitialCursor, mouseDragged, mousePressed, mouseReleased, paint
 
Methods inherited from class uci.gef.Mode
canExit, done, getArg, getArgs, getEditor, keyPressed, keyReleased, keyTyped, mouseClicked, mouseEntered, mouseExited, mouseMoved, print, setArg, setArgs, setCursor, setEditor, start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModeCreateFigText

public ModeCreateFigText()
Method Detail

instructions

public String instructions()
Overrides:
instructions in class Mode

createNewItem

public Fig createNewItem(MouseEvent e,
                         int snapX,
                         int snapY)
Create a new FigText instance based on the given mouse down event and the state of the parent Editor.
Overrides:
createNewItem in class ModeCreate