|
|||||||||||
| 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.swt.commands.SwtZoomGraphDocumentCommand
The SwtZoomGraphDocumentCommand acts as a base class for all
zoom related commands in SWT context. Thus it provides methods to retrieve
the current zoom value and setting it.
| Field Summary | |
protected boolean |
dontUpdate
This update flag is required to avoid loops while updating the combobox. |
protected static double |
MAXIMUM_ZOOM_LIMIT
Constants for the zoom limits |
protected static double |
MINIMUM_ZOOM_LIMIT
Constants for the zoom limits |
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 | |
SwtZoomGraphDocumentCommand(ApplicationFrame applicationFrame,
java.lang.String command)
Constructor for the SwtZoomGraphDocumentCommand. |
|
| 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 static final double MINIMUM_ZOOM_LIMIT
protected static final double MAXIMUM_ZOOM_LIMIT
protected int value
protected boolean dontUpdate
| Constructor Detail |
public SwtZoomGraphDocumentCommand(ApplicationFrame applicationFrame,
java.lang.String command)
SwtZoomGraphDocumentCommand.
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 | ||||||||||