org.tigris.gef.base
Interface FigModifyingMode

All Superinterfaces:
Mode
All Known Implementing Classes:
FigModifyingModeImpl

public interface FigModifyingMode
extends Mode

This is the basic interface for all Modes that are manipulating the visual representation of the underlying model. It is a subclass of Mode.

See Also:
Mode, FigModifyingModeImpl, Editor

Method Summary
 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 interface org.tigris.gef.base.Mode
canExit, done, getArg, getArgs, init, setArg, setArgs, start
 

Method Detail

setEditor

public void setEditor(Editor w)
Set the parent Editor of this Mode


getEditor

public Editor getEditor()
Get the parent Editor of this Mode


getInitialCursor

public java.awt.Cursor getInitialCursor()
Returns the cursor that should be shown when this Mode starts.


instructions

public java.lang.String instructions()
Reply a string of instructions that should be shown in the statusbar when this mode starts.


setCursor

public void setCursor(java.awt.Cursor c)
Set the mouse cursor to some appropriate for this mode.


paint

public void paint(java.awt.Graphics g)
Modes can paint themselves to give the user feedback. For example, ModePlace paints the object being placed. Mode's are drawn on top of (after) the Editor's current view and on top of any selections.


print

public void print(java.awt.Graphics g)
Just calls paint(g) bt default.


isFigEnclosedIn

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