|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjfig.commands.Command
jfig.commands.ZoomRegionCommand
zoom into a user-specified region.
| Field Summary | |
protected int |
n_points
|
protected java.awt.Point |
P1
|
protected java.awt.Point |
P2
|
| Fields inherited from class jfig.commands.Command |
editor, objectCanvas, ready |
| Constructor Summary | |
ZoomRegionCommand(FigBasicEditor editor,
FigCanvas objectCanvas)
|
|
| Method Summary | |
void |
execute()
zoom into the region specified by this command. |
java.lang.String |
getDescription()
one-line description of this command return a one-line desription of this command, e.g. to label the undo/redo buttons, if any |
void |
mousePressed(FigCanvasEvent ME)
react to a mouse click on the editor canvas This method provides the central callback from the editor to its current command object. |
java.lang.String |
toString()
toString(): identify this ZoomRegionCommand |
void |
undo()
no use trying to undo a zoom command. |
| Methods inherited from class jfig.commands.Command |
cancel, getModifiedObjects, isReady, message, notifyEditor, statusMessage |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected java.awt.Point P1
protected java.awt.Point P2
protected int n_points
| Constructor Detail |
public ZoomRegionCommand(FigBasicEditor editor,
FigCanvas objectCanvas)
| Method Detail |
public void execute()
execute in class Commandpublic void undo()
undo in class Commandpublic void mousePressed(FigCanvasEvent ME)
CommandThis method provides the central callback from the editor to its current command object. Passing a FigCanvasEvent parameter, the editor provides information both about the screen coordinates and the world coordinates of the mouse event.
Naturally, mouse presses are ignored for class Command.
mousePressed in class Commandpublic java.lang.String toString()
toString in class Commandpublic java.lang.String getDescription()
Commandreturn a one-line desription of this command, e.g. to label the undo/redo buttons, if any
getDescription in class Command
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||