|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.tigris.gef.base.ModeImpl
org.tigris.gef.base.FigModifyingModeImpl
This is the default implementation for all Modes that are manipulating the visual representation of the underlying model. It is a subclass of ModeImpl and implements FigModifyingMode. The provide simple functionality and some instance variables only. Although this class can be instantiated, it is not designed to be used as an independent Mode. Any FigModifyingMode that is tend to be used by the system should be designed as a subclass of this class and overwrite the methods if necessary.
Editor
,
FigModifyingMode
,
ModeImpl
,
Serialized FormField Summary | |
protected Editor |
editor
The Editor that is in this mode. |
Fields inherited from class org.tigris.gef.base.ModeImpl |
_args |
Constructor Summary | |
FigModifyingModeImpl()
Construct a new Mode instance without any Editor as its parent, the parent must be filled in before the instance is actually used. |
|
FigModifyingModeImpl(Editor par)
Construct a new Mode instance with the given Editor as its editor |
|
FigModifyingModeImpl(java.util.Hashtable parameters)
Constructs a new Mode instance with some initial parameters. |
Method Summary | |
void |
done()
When a Mode handles a certain event that indicates that the user wants to exit that Mode (e.g., a mouse up event after a drag in ModeCreateEdge) the Mode calls done to make switching to another Mode possible. |
Editor |
getEditor()
Get the parent Editor of this Mode |
java.awt.Cursor |
getInitialCursor()
Returns the cursor that should be shown when this Mode starts. |
java.lang.String |
instructions()
Reply a string of instructions that should be shown in the statusbar when this mode starts. |
boolean |
isFigEnclosedIn(org.tigris.gef.presentation.Fig testedFig,
org.tigris.gef.presentation.Fig enclosingFig)
Tests, if the actually handled fig is contained in the one given as parameter. |
void |
paint(java.awt.Graphics g)
Modes can paint themselves to give the user feedback. |
void |
print(java.awt.Graphics g)
Just calls paint(g) bt default. |
void |
setCursor(java.awt.Cursor c)
Set the mouse cursor to some appropriate for this mode. |
void |
setEditor(Editor w)
Set the parent Editor of this Mode |
Methods inherited from class org.tigris.gef.base.ModeImpl |
canExit, getArg, getArgs, init, keyPressed, keyReleased, keyTyped, leave, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, 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 |
Field Detail |
protected Editor editor
Constructor Detail |
public FigModifyingModeImpl(Editor par)
public FigModifyingModeImpl(java.util.Hashtable parameters)
public FigModifyingModeImpl()
Method Detail |
public void done()
ModeImpl
done
in interface Mode
done
in class ModeImpl
public void setEditor(Editor w)
setEditor
in interface FigModifyingMode
public Editor getEditor()
getEditor
in interface FigModifyingMode
public java.awt.Cursor getInitialCursor()
getInitialCursor
in interface FigModifyingMode
public java.lang.String instructions()
instructions
in interface FigModifyingMode
public void setCursor(java.awt.Cursor c)
setCursor
in interface FigModifyingMode
public void paint(java.awt.Graphics g)
paint
in interface FigModifyingMode
public void print(java.awt.Graphics g)
print
in interface FigModifyingMode
public boolean isFigEnclosedIn(org.tigris.gef.presentation.Fig testedFig, org.tigris.gef.presentation.Fig enclosingFig)
FigModifyingMode
isFigEnclosedIn
in interface FigModifyingMode
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |