doZoom(JGraph graph, boolean in, boolean out, boolean custom) Sets the zoom on the specified graph depending on the paramters, which
are interpreted to be exlusive.
Constructs a new view action for the specified name. If the action name
starts with toggle, fit or
switch then the action is configured to be a toggle
action.
Parameters: name - The name of the action to be created.
Displays a color dialog and sets the background color on the specified
diagram pane.
Parameters: diagramPane - The diagramPane to perform the operation in.
Displays a file- or URL-dialog and uses the filename to set the
background image on the specified diagram pane.
Parameters: diagramPane - The diagramPane to perform the operation in. Parameters: filename - The filename or URL to load the image from.
Doubles or halves the current size of the entries in the specified
library pane based on larger.
Parameters: pane - The layout pane to change the entries of. Parameters: larger - Whether to make the entries larger.
doZoom
protected void doZoom(JGraph graph, boolean in, boolean out, boolean custom)(Code)
Sets the zoom on the specified graph depending on the paramters, which
are interpreted to be exlusive. If custom is true this
method displays a dialog to enter the custom zoom and sets the zoom to
the specified value. If custom is false then the method will double or
half the current zoom of graph depending on the value of
in and out. If all values are false then
the zoom is reset to 1.
This implementation makes sure the zoom is between 0.01 and 300 and
scrolls to the selection cell if the selection is not empty.
Parameters: graph - The graph to perform the operation in. Parameters: in - Whether to zoom in if no custom dialog is used. Parameters: out - Whether to zoom out if no custom dialog is used. Parameters: custom - Whether to display a dialog to ask for a custom zoom.
Fields inherited from com.jgraph.editor.JGraphEditorAction