|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.generic.command.BaseCommand
com.tensegrity.skeleton.commands.CommonBaseCommand
com.tensegrity.skeleton.commands.DocumentCommand
com.tensegrity.skeleton.commands.GraphDocumentCommand
com.tensegrity.skeleton.commands.ZoomGraphDocumentCommand
This Command provides methods for retrieving the current
zoom value and setting it. Moreover, it contains a ZoomComboBox. Such a
ComboBox can be used to ease the setting of a zoom value. Command
classes that deal with zooming usually derive from this class.
| Field Summary | |
protected int |
value
the zoom value this command zooms the active graph to. |
static Boundary |
ZOOM_INSETS
Insets to use for zoom to fit |
| Constructor Summary | |
ZoomGraphDocumentCommand(ApplicationFrame applicationFrame,
java.lang.String command)
Constructor for the ZoomGraphDocumentCommand. |
|
| Method Summary | |
protected double |
getZoom()
returns the current zoom value of the graph. |
void |
setZoom(double zoomvalue)
sets the zoom value of the graph view. |
protected void |
setZoomToFit()
sets the zoom value of the graph view to fit all existing items. |
| Methods inherited from class com.tensegrity.skeleton.commands.GraphDocumentCommand |
getGraphDocument, getVisualGraphView, isEnabled |
| Methods inherited from class com.tensegrity.skeleton.commands.DocumentCommand |
getDocument, getGraphApplication, newGraphDocumentFromFactory |
| Methods inherited from class com.tensegrity.skeleton.commands.CommonBaseCommand |
getApplicationFrame, getTitle, perform |
| Methods inherited from class com.tensegrity.generic.command.BaseCommand |
getDescription, getId, getPerformDescription, setEnabled |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final Boundary ZOOM_INSETS
protected int value
| Constructor Detail |
public ZoomGraphDocumentCommand(ApplicationFrame applicationFrame,
java.lang.String command)
ZoomGraphDocumentCommand.
applicationFrame - Application context for this command.command - the ID of this command.| Method Detail |
protected double getZoom()
public void setZoom(double zoomvalue)
zoomvalue - the value to set the zoom to.protected void setZoomToFit()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||