org.tigris.gef.base
Interface FigModifyingMode

All Superinterfaces:
Mode
All Known Implementing Classes:
FigModifyingModeImpl, ModeBroom, ModeCreate, ModeCreateEdge, ModeCreateFigCircle, ModeCreateFigImage, ModeCreateFigInk, ModeCreateFigLine, ModeCreateFigPoly, ModeCreateFigRect, ModeCreateFigRRect, ModeCreateFigSpline, ModeCreateFigText, ModeCreatePolyEdge, ModeDragScroll, ModeModify, ModePlace, ModePopup, ModeSelect

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(Fig testedFig, 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

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


getEditor

Editor getEditor()
Get the parent Editor of this Mode


getInitialCursor

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


instructions

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


setCursor

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


paint

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

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


isFigEnclosedIn

boolean isFigEnclosedIn(Fig testedFig,
                        Fig enclosingFig)
Tests, if the actually handled fig is contained in the one given as parameter.