org.jgraph.JGraph Class Reference

Inheritance diagram for org.jgraph.JGraph:

manas.event.MyGraph manas.gui.DesignPanel List of all members.

Public Member Functions

 JGraph ()
 JGraph (GraphModel model)
 JGraph (GraphLayoutCache cache)
 JGraph (GraphModel model, GraphLayoutCache cache)
 JGraph (GraphModel model, BasicMarqueeHandler mh)
 JGraph (GraphModel model, GraphLayoutCache layoutCache, BasicMarqueeHandler mh)
GraphUI getUI ()
void setUI (GraphUI ui)
void updateUI ()
String getUIClassID ()
Object[] getRoots ()
Object[] getRoots (Rectangle clip)
Object[] getDescendants (Object[] cells)
Object[] order (Object[] cells)
Map cloneCells (Object[] cells)
CellView getTopmostViewAt (double x, double y, boolean reverse, boolean leafsOnly)
Object getFirstCellForLocation (double x, double y)
Object getNextCellForLocation (Object current, double x, double y)
Rectangle2D getCellBounds (Object cell)
Rectangle2D getCellBounds (Object[] cells)
CellView getNextViewAt (CellView current, double x, double y)
CellView getNextViewAt (CellView current, double x, double y, boolean leafsOnly)
CellView getNextSelectableViewAt (CellView current, double x, double y)
CellView getNextViewAt (CellView[] cells, CellView c, double x, double y)
CellView getNextViewAt (CellView[] cells, CellView c, double x, double y, boolean leafsOnly)
CellView getLeafViewAt (double x, double y)
Object getPortForLocation (double x, double y)
PortView getPortViewAt (double x, double y)
PortView getPortViewAt (double x, double y, int tolerance)
PortView getDefaultPortForCell (Object cell)
String convertValueToString (Object value)
Point2D snap (Point2D p)
Rectangle2D snap (Rectangle2D r)
Dimension2D snap (Dimension2D d)
Point2D toScreen (Point2D p)
Point2D fromScreen (Point2D p)
Rectangle2D toScreen (Rectangle2D rect)
Rectangle2D fromScreen (Rectangle2D rect)
void updateAutoSize (CellView view)
AttributeMap getAttributes (Object cell)
int getEditClickCount ()
void setEditClickCount (int count)
boolean isDropEnabled ()
void setDropEnabled (boolean flag)
boolean isDragEnabled ()
void setDragEnabled (boolean flag)
boolean isMoveable ()
void setMoveable (boolean flag)
boolean isBendable ()
void setBendable (boolean flag)
boolean isConnectable ()
void setConnectable (boolean flag)
boolean isDisconnectable ()
void setDisconnectable (boolean flag)
boolean isCloneable ()
void setCloneable (boolean flag)
boolean isSizeable ()
void setSizeable (boolean flag)
void setDisconnectOnMove (boolean flag)
boolean isDisconnectOnMove ()
void setJumpToDefaultPort (boolean flag)
boolean isJumpToDefaultPort ()
void setMoveIntoGroups (boolean flag)
boolean isMoveIntoGroups ()
void setMoveOutOfGroups (boolean flag)
boolean isMoveOutOfGroups ()
boolean isGridEnabled ()
void setGridEnabled (boolean flag)
boolean isMoveBelowZero ()
void setMoveBelowZero (boolean moveBelowZero)
boolean isAutoResizeGraph ()
void setAutoResizeGraph (boolean autoResizeGraph)
int getTolerance ()
void setTolerance (int size)
int getHandleSize ()
void setHandleSize (int size)
int getMinimumMove ()
void setMinimumMove (int pixels)
Color getGridColor ()
void setGridColor (Color newColor)
Color getHandleColor ()
void setHandleColor (Color newColor)
Color getLockedHandleColor ()
void setLockedHandleColor (Color newColor)
Color getMarqueeColor ()
void setMarqueeColor (Color newColor)
Color getHighlightColor ()
void setHighlightColor (Color newColor)
double getScale ()
void setScale (double newValue)
double getGridSize ()
int getGridMode ()
void setGridSize (double newSize)
void setGridMode (int mode)
boolean isGridVisible ()
void setGridVisible (boolean flag)
boolean isPortsVisible ()
void setPortsVisible (boolean flag)
boolean isPortsScaled ()
void setPortsScaled (boolean flag)
boolean isAntiAliased ()
void setAntiAliased (boolean newValue)
boolean isEditable ()
void setEditable (boolean flag)
boolean isSelectionEnabled ()
void setSelectionEnabled (boolean flag)
boolean isPreviewInvalidNullPorts ()
void setPreviewInvalidNullPorts (boolean flag)
GraphModel getModel ()
void setModel (GraphModel newModel)
GraphLayoutCache getGraphLayoutCache ()
void setGraphLayoutCache (GraphLayoutCache newLayoutCache)
BasicMarqueeHandler getMarqueeHandler ()
void setMarqueeHandler (BasicMarqueeHandler newMarquee)
void setInvokesStopCellEditing (boolean newValue)
boolean getInvokesStopCellEditing ()
boolean isCellEditable (Object cell)
String getToolTipText (MouseEvent e)
void setSelectionModel (GraphSelectionModel selectionModel)
GraphSelectionModel getSelectionModel ()
void clearSelection ()
boolean isSelectionEmpty ()
void addGraphSelectionListener (GraphSelectionListener tsl)
void removeGraphSelectionListener (GraphSelectionListener tsl)
void setSelectionCell (Object cell)
void setSelectionCells (Object[] cells)
void addSelectionCell (Object cell)
void addSelectionCells (Object[] cells)
void removeSelectionCell (Object cell)
Object getSelectionCell ()
Object[] getSelectionCells ()
Object[] getSelectionCells (Object[] cells)
Object getSelectionCellAt (Point2D pt)
int getSelectionCount ()
boolean isCellSelected (Object cell)
void scrollCellToVisible (Object cell)
void scrollPointToVisible (Point2D p)
boolean isEditing ()
boolean stopEditing ()
void cancelEditing ()
void startEditingAtCell (Object cell)
Object getEditingCell ()
void graphDidChange ()
BufferedImage getImage (Color bg, int inset)
Dimension getPreferredScrollableViewportSize ()
int getScrollableUnitIncrement (Rectangle visibleRect, int orientation, int direction)
int getScrollableBlockIncrement (Rectangle visibleRect, int orientation, int direction)
boolean getScrollableTracksViewportWidth ()
boolean getScrollableTracksViewportHeight ()

Static Public Member Functions

static void addSampleData (GraphModel model)
static Map createBounds (AttributeMap map, int x, int y, Color c)
static void main (String[] args)

Static Public Attributes

static final String VERSION = "JGraph (v5.7.4.5)"
static final int DOT_GRID_MODE = 0
static final int CROSS_GRID_MODE = 1
static final int LINE_GRID_MODE = 2
static final String GRAPH_MODEL_PROPERTY = "model"
static final String GRAPH_LAYOUT_CACHE_PROPERTY = "view"
static final String MARQUEE_HANDLER_PROPERTY = "marquee"
static final String EDITABLE_PROPERTY = "editable"
static final String SELECTIONENABLED_PROPERTY = "selectionEnabled"
static final String SCALE_PROPERTY = "scale"
static final String ANTIALIASED_PROPERTY = "antiAliased"
static final String GRID_SIZE_PROPERTY = "gridSize"
static final String GRID_VISIBLE_PROPERTY = "gridVisible"
static final String GRID_COLOR_PROPERTY = "gridColor"
static final String HANDLE_COLOR_PROPERTY = "handleColor"
static final String HANDLE_SIZE_PROPERTY = "handleSize"
static final String LOCKED_HANDLE_COLOR_PROPERTY = "lockedHandleColor"
static final String PORTS_VISIBLE_PROPERTY = "portsVisible"
static final String PORTS_SCALED_PROPERTY = "portsScaled"
static final String SELECTION_MODEL_PROPERTY = "selectionModel"
static final String INVOKES_STOP_CELL_EDITING_PROPERTY = "invokesStopCellEditing"

Protected Member Functions

void fireValueChanged (GraphSelectionEvent e)
String paramString ()

Protected Attributes

transient GraphSelectionRedirector selectionRedirector
transient GraphModel graphModel
transient GraphLayoutCache graphLayoutCache
transient GraphSelectionModel selectionModel
transient BasicMarqueeHandler marquee
double scale = 1.0
boolean antiAliased = false
boolean editable = true
boolean selectionEnabled = true
boolean previewInvalidNullPorts = true
boolean gridVisible = false
double gridSize = 10
int gridMode = DOT_GRID_MODE
boolean portsVisible = false
boolean portsScaled = true
boolean moveBelowZero = false
boolean autoResizeGraph = true
Color highlightColor = Color.green
Color handleColor
Color lockedHandleColor
Color marqueeColor
Color gridColor
boolean dragEnabled = false
boolean dropEnabled = true
int editClickCount = 2
boolean enabled = true
boolean gridEnabled = false
int handleSize = 3
int tolerance = 4
int minimumMove = 5
boolean isJumpToDefaultPort = false
boolean isMoveIntoGroups = false
boolean isMoveOutOfGroups = false
boolean disconnectOnMove = false
boolean moveable = true
boolean cloneable = false
boolean sizeable = true
boolean bendable = true
boolean connectable = true
boolean disconnectable = true
boolean invokesStopCellEditing

Private Member Functions

void writeObject (ObjectOutputStream s) throws IOException
void readObject (ObjectInputStream s) throws IOException, ClassNotFoundException

Static Private Attributes

static final String uiClassID = "GraphUI"

Classes

class  EmptySelectionModel
class  GraphSelectionRedirector

Detailed Description

A control that displays a network of related objects using the well-known paradigm of a graph.

A JGraph object doesn't actually contain your data; it simply provides a view of the data. Like any non-trivial Swing component, the graph gets data by querying its data model.

JGraph displays its data by drawing individual elements. Each element displayed by the graph contains exactly one item of data, which is called a cell. A cell may either be a vertex or an edge. Vertices may have neighbours or not, and edges may have source and target vertices or not, depending on whether they are connected.

Creating a Graph

The following code creates a JGraph object:

JGraph graph = new JGraph();
...
JScrollPane graphLayoutCache = new JScrollPane(graph)

The code creates an instance of JGraph and puts it in a scroll pane. JGraphs constructor is called with no arguments in this example, which causes the constructor to create a sample model.

Editing

Outmoved, cloned, resized, and shaped, or connected/disconnected to or from other cells.

Keyboard Bindings

JGraph defines the following set of keyboard bindings:

You can change the number of clicks that triggers editing using setEditClickCount().

Customization

There are a number of additional methods that customize JGraph. For example, setMinimumMove() defines the minimum amount of pixels before a move operation is initiated. setSnapSize() defines the maximum distance for a cell to be selected. setFloatEnabled() enables/disables port floating.

With setDisconnectOnMove() you can indicate if the selected subgraph should be disconnected from the unselected rest when a move operation is initiated. setDragEnabled() enables/disables the use of Drag And Drop, and setDropEnabled() sets if the graph accepts Drops from external sources.

Customizing a graphs display

JGraph performs some look-and-feel specific painting. You can customize this painting in a limited way. For example, you can modify the grid using setGridColor() and setGridSize(), and you can change the handle colors using setHandleColor() and setLockedHandleColor().

If you want finer control over the rendering, you can subclass one of the default renderers, and extend its paint()-method. A renderer is a Component-extension that paints a cell based on its attributes. Thus, neither the JGraph nor its look-and-feel-specific implementation actually contain the code that paints the cell. Instead, the graph uses the cell renderers painting code.

Selection

Apart from the single-cell and marquee-selection, JGraphs selection model also allows to "step-into" groups, and select children. This feature can be disabled using the setAllowsChildSelection() method of the selection model instance.

If you are interested in knowing when the selection changes implement the GraphSelectionListener interface and add the instance using the method addGraphSelectionListener. valueChanged will be invoked when the selection changes, that is if the user clicks twice on the same vertex valueChanged will only be invoked once.

Change Notification

If you are interested in handling modifications, implement the GraphEventHandler interface and add the instance using the method addGraphEventHandler.

For detection of double-clicks or when a user clicks on a cell, regardless of whether or not it was selected, I recommend you implement a MouseListener and use getFirstCellForLocation.

Undo Support

To enable Undo-Support, a GraphUndoManager must be added using addGraphSelectionListener. The GraphUndoManager is an extension of Swing's GraphUndoManager that maintains a command history in the context of multiple views. In this setup, a cell may have a set of attributes in each view attached to the model.

For example, consider a position that is stored separately in each view. If a node is inserted, the change will be visible in all attached views, resulting in a new node that pops-up at the initial position. If the node is subsequently moved, say, in view1, this does not constitute a change in view2. If view2 does an "undo", the move and the insertion must be undone, whereas an "undo" in view1 will only undo the previous move operation.

Like all JComponent classes, you can use javax.swing.InputMapand javax.swing.ActionMapto associate an javax.swing.Actionobject with a javax.swing.KeyStrokeand execute the action under specified conditions.

Author:
Gaudenz Alder
Version:
2.1 16/03/03


Constructor & Destructor Documentation

org.jgraph.JGraph.JGraph  ) 
 

Returns a JGraph with a sample model.

org.jgraph.JGraph.JGraph GraphModel  model  ) 
 

Returns an instance of JGraph which displays the the specified data model.

Parameters:
model the GraphModel to use as the data model

org.jgraph.JGraph.JGraph GraphLayoutCache  cache  ) 
 

Returns an instance of JGraph which displays the data model using the specified view.

Parameters:
cache the GraphLayoutCache to use as the view

org.jgraph.JGraph.JGraph GraphModel  model,
GraphLayoutCache  cache
 

Returns an instance of JGraph which displays the specified data model using the specified view.

Parameters:
model the GraphModel to use as the data model
cache the GraphLayoutCache to use as the cache

org.jgraph.JGraph.JGraph GraphModel  model,
BasicMarqueeHandler  mh
 

Returns an instance of JGraph which displays the specified data model and assigns the specified marquee handler

Parameters:
model the GraphModel to use as the data model
mh the BasicMarqueeHandler to use as the marquee handler

org.jgraph.JGraph.JGraph GraphModel  model,
GraphLayoutCache  layoutCache,
BasicMarqueeHandler  mh
 

Returns an instance of JGraph which displays the specified data model using the specified view and assigns the specified marquee handler

Parameters:
model the GraphModel to use as the data model
layoutCache the GraphLayoutCache to use as the cache
mh the BasicMarqueeHandler to use as the marquee handler


Member Function Documentation

void org.jgraph.JGraph.addGraphSelectionListener GraphSelectionListener  tsl  ) 
 

Adds a listener for GraphSelection events.

Parameters:
tsl the GraphSelectionListener that will be notified when a cell is selected or deselected (a "negative selection")

static void org.jgraph.JGraph.addSampleData GraphModel  model  )  [static]
 

Creates and returns a sample GraphModel. Used primarily for beanbuilders to show something interesting.

void org.jgraph.JGraph.addSelectionCell Object  cell  ) 
 

Adds the cell identified by the specified Object to the current selection.

Parameters:
cell the cell to be added to the selection

void org.jgraph.JGraph.addSelectionCells Object[]  cells  ) 
 

Adds each cell in the array of cells to the current selection.

Parameters:
cells an array of objects that specifies the cells to add

void org.jgraph.JGraph.cancelEditing  ) 
 

Cancels the current editing session. Has no effect if the graph isn't being edited.

void org.jgraph.JGraph.clearSelection  ) 
 

Clears the selection.

Map org.jgraph.JGraph.cloneCells Object[]  cells  ) 
 

Returns a map of (cell, clone)-pairs for all cells and their children. Special care is taken to replace the anchor references between ports. (Iterative implementation.)

String org.jgraph.JGraph.convertValueToString Object  value  ) 
 

Converts the specified value to string. If the value is an instance of CellView then the corresponding value or cell is used.

static Map org.jgraph.JGraph.createBounds AttributeMap  map,
int  x,
int  y,
Color  c
[static]
 

Returns an attributeMap for the specified position and color.

void org.jgraph.JGraph.fireValueChanged GraphSelectionEvent  e  )  [protected]
 

Notifies all listeners that have registered interest for notification on this manas.event type. The manas.event instance is lazily created using the parameters passed into the fire method.

Parameters:
e the GraphSelectionEvent generated by the GraphSelectionModel when a cell is selected or deselected
See also:
javax.swing.event.EventListenerList

Rectangle2D org.jgraph.JGraph.fromScreen Rectangle2D  rect  ) 
 

Downscale the given rectangle in place, using the given instance.

Parameters:
rect the rectangle to be downscaled
Returns:
the down-scaled rectangle instance

Point2D org.jgraph.JGraph.fromScreen Point2D  p  ) 
 

Downscale the given point in place, using the given instance.

Parameters:
p the point to be downscaled
Returns:
the downscaled point instance

AttributeMap org.jgraph.JGraph.getAttributes Object  cell  ) 
 

Returns the attributes for the specified cell. If the layout cache returns a view for the cell then this method returns allAttributes, otherwise the method returns model.getAttributes(cell).

Rectangle2D org.jgraph.JGraph.getCellBounds Object[]  cells  ) 
 

Returns the bounding rectangle of the specified cells.

Rectangle2D org.jgraph.JGraph.getCellBounds Object  cell  ) 
 

Returns the bounding rectangle of the specified cell.

PortView org.jgraph.JGraph.getDefaultPortForCell Object  cell  ) 
 

Returns the default portview for the specified cell. The default implementation returns the first floating port (ie. the first port that does not define an offset) or the port, if there is only one port.

Parameters:
cell the cell whose port is to be obtained
Returns:
the port view of the specified cell

Object [] org.jgraph.JGraph.getDescendants Object[]  cells  ) 
 

Returns all cells including all descendants in the passed in order of cells.

int org.jgraph.JGraph.getEditClickCount  ) 
 

Returns the number of clicks for editing to start.

Object org.jgraph.JGraph.getEditingCell  ) 
 

Returns the cell that is currently being edited.

Returns:
the cell being edited

Object org.jgraph.JGraph.getFirstCellForLocation double  x,
double  y
 

Returns the topmost cell at the specified location.

Parameters:
x an integer giving the number of pixels horizontally from the left edge of the display area, minus any left margin
y an integer giving the number of pixels vertically from the top of the display area, minus any top margin
Returns:
the topmost cell at the specified location

GraphLayoutCache org.jgraph.JGraph.getGraphLayoutCache  ) 
 

Returns the GraphLayoutCache that is providing the view-data.

Returns:
the view that is providing the view-data

Color org.jgraph.JGraph.getGridColor  ) 
 

Returns the current grid color.

int org.jgraph.JGraph.getGridMode  ) 
 

Returns the current grid view mode.

double org.jgraph.JGraph.getGridSize  ) 
 

Returns the size of the grid in pixels.

Returns:
the size of the grid as an int

Color org.jgraph.JGraph.getHandleColor  ) 
 

Returns the current handle color.

int org.jgraph.JGraph.getHandleSize  ) 
 

Returns the size of the handles.

Color org.jgraph.JGraph.getHighlightColor  ) 
 

Returns the current highlight color.

BufferedImage org.jgraph.JGraph.getImage Color  bg,
int  inset
 

Returns a BufferedImage for the graph using inset as an empty border around the cells of the graph. If bg is null then a transparent background is applied to the image, else the background is filled with the bg color. Therefore, one should only use a null background if the fileformat support transparency, eg. GIF and PNG. For JPG, you can use Color.WHITE for example.

Returns:
Returns an image of the graph.

boolean org.jgraph.JGraph.getInvokesStopCellEditing  ) 
 

Returns the indicator that tells what happens when editing is interrupted.

Returns:
the indicator that tells what happens when editing is interrupted
See also:
setInvokesStopCellEditing

CellView org.jgraph.JGraph.getLeafViewAt double  x,
double  y
 

Returns the next view at the specified location wrt. c in the specified array of views. The views must be in order, as returned, for example, by GraphLayoutCache.order(Object[]).

Color org.jgraph.JGraph.getLockedHandleColor  ) 
 

Returns the current second handle color.

Color org.jgraph.JGraph.getMarqueeColor  ) 
 

Returns the current marquee color.

BasicMarqueeHandler org.jgraph.JGraph.getMarqueeHandler  ) 
 

Returns the MarqueeHandler that will handle marquee selection.

int org.jgraph.JGraph.getMinimumMove  ) 
 

Returns the miminum amount of pixels for a move operation.

GraphModel org.jgraph.JGraph.getModel  ) 
 

Returns the GraphModel that is providing the data.

Returns:
the model that is providing the data

Object org.jgraph.JGraph.getNextCellForLocation Object  current,
double  x,
double  y
 

Returns the cell at the specified location that is "behind" the current cell. Returns the topmost cell if there are no more cells behind current. Note: This does only return visible cells.

CellView org.jgraph.JGraph.getNextSelectableViewAt CellView  current,
double  x,
double  y
 

Note: Arguments are not expected to be scaled (they are scaled in here).

CellView org.jgraph.JGraph.getNextViewAt CellView[]  cells,
CellView  c,
double  x,
double  y,
boolean  leafsOnly
 

Returns the next view at the specified location wrt. c in the specified array of views. The views must be in order, as returned, for example, by GraphLayoutCache.order(Object[]).

CellView org.jgraph.JGraph.getNextViewAt CellView[]  cells,
CellView  c,
double  x,
double  y
 

Returns the next view at the specified location wrt. c in the specified array of views. The views must be in order, as returned, for example, by GraphLayoutCache.order(Object[]).

CellView org.jgraph.JGraph.getNextViewAt CellView  current,
double  x,
double  y,
boolean  leafsOnly
 

Returns the next view at the specified location wrt. current. This is used to iterate overlapping cells, and cells that are grouped. The current selection affects this method.
Note: This returns the next selectable view.
Note: Arguments are not expected to be scaled (they are scaled in here).

CellView org.jgraph.JGraph.getNextViewAt CellView  current,
double  x,
double  y
 

Returns the next view at the specified location wrt. current. This is used to iterate overlapping cells, and cells that are grouped. The current selection affects this method.
Note: This returns the next selectable view.
Note: Arguments are not expected to be scaled (they are scaled in here).

Object org.jgraph.JGraph.getPortForLocation double  x,
double  y
 

Convenience method to return the port at the specified location.

PortView org.jgraph.JGraph.getPortViewAt double  x,
double  y,
int  tolerance
 

Returns the portview at the specified location.
Note: Arguments are not expected to be scaled (they are scaled in here).

PortView org.jgraph.JGraph.getPortViewAt double  x,
double  y
 

Returns the portview at the specified location.
Note: Arguments are not expected to be scaled (they are scaled in here).

Dimension org.jgraph.JGraph.getPreferredScrollableViewportSize  ) 
 

Returns the preferred display size of a JGraph. The height is determined from getPreferredWidth.

Returns:
the graph's preferred size

Object [] org.jgraph.JGraph.getRoots Rectangle  clip  ) 
 

Returns all cells that intersect the given rectangle.

Object [] org.jgraph.JGraph.getRoots  ) 
 

Returns all cells that the model contains.

double org.jgraph.JGraph.getScale  ) 
 

Returns the current scale.

Returns:
the current scale as a double

int org.jgraph.JGraph.getScrollableBlockIncrement Rectangle  visibleRect,
int  orientation,
int  direction
 

Returns the amount for a block increment, which is the height or width of visibleRect, based on orientation.

Parameters:
visibleRect the view area visible within the viewport
orientation either SwingConstants.VERTICAL or SwingConstants.HORIZONTAL
direction less than zero to scroll up/left, greater than zero for down/right.
Returns:
the "block" increment for scrolling in the specified direction
See also:
javax.swing.JScrollBar.setBlockIncrement(int)

boolean org.jgraph.JGraph.getScrollableTracksViewportHeight  ) 
 

Returns false to indicate that the height of the viewport does not determine the height of the graph, unless the preferred height of the graph is smaller than the viewports height. In other words: ensure that the graph is never smaller than its viewport.

Returns:
false
See also:
Scrollable.getScrollableTracksViewportHeight

boolean org.jgraph.JGraph.getScrollableTracksViewportWidth  ) 
 

Returns false to indicate that the width of the viewport does not determine the width of the graph, unless the preferred width of the graph is smaller than the viewports width. In other words: ensure that the graph is never smaller than its viewport.

Returns:
false
See also:
Scrollable.getScrollableTracksViewportWidth

int org.jgraph.JGraph.getScrollableUnitIncrement Rectangle  visibleRect,
int  orientation,
int  direction
 

Returns the amount to increment when scrolling. The amount is 4.

Parameters:
visibleRect the view area visible within the viewport
orientation either SwingConstants.VERTICAL or SwingConstants.HORIZONTAL
direction less than zero to scroll up/left, greater than zero for down/right
Returns:
the "unit" increment for scrolling in the specified direction
See also:
javax.swing.JScrollBar.setUnitIncrement(int)

Object org.jgraph.JGraph.getSelectionCell  ) 
 

Returns the first selected cell.

Returns:
the Object for the first selected cell, or null if nothing is currently selected

Object org.jgraph.JGraph.getSelectionCellAt Point2D  pt  ) 
 

Returns the selection cell at the specified location.

Returns:
Returns the selection cell for pt.

Object [] org.jgraph.JGraph.getSelectionCells Object[]  cells  ) 
 

Returns all selected cells in cells.

Object [] org.jgraph.JGraph.getSelectionCells  ) 
 

Returns all selected cells.

Returns:
an array of objects representing the selected cells, or null if nothing is currently selected

int org.jgraph.JGraph.getSelectionCount  ) 
 

Returns the number of cells selected.

Returns:
the number of cells selected

GraphSelectionModel org.jgraph.JGraph.getSelectionModel  ) 
 

Returns the model for selections. This should always return a non- null value. If you don't want to allow anything to be selected set the selection model to null, which forces an empty selection model to be used.

Returns:
the current selection model
See also:
setSelectionModel

int org.jgraph.JGraph.getTolerance  ) 
 

Returns the maximum distance between the mousepointer and a cell to be selected.

String org.jgraph.JGraph.getToolTipText MouseEvent  e  ) 
 

Overrides JComponent'sgetToolTipText method in order to allow the graph to create a tooltip for the topmost cell under the mousepointer. This differs from JTree where the renderers tooltip is used.

NOTE: For JGraph to properly display tooltips of its renderers, JGraph must be a registered component with the ToolTipManager. This can be done by invoking ToolTipManager.sharedInstance().registerComponent(graph). This is not done automatically!

Parameters:
e the MouseEvent that initiated the ToolTip display
Returns:
a string containing the tooltip or null if manas.event is null

CellView org.jgraph.JGraph.getTopmostViewAt double  x,
double  y,
boolean  reverse,
boolean  leafsOnly
 

Returns the topmost cell view at the specified location using the view's bounds on non-leafs to check for containment. If reverse is true this will return the innermost view.

GraphUI org.jgraph.JGraph.getUI  ) 
 

Returns the L&F object that renders this component.

Returns:
the GraphUI object that renders this component

String org.jgraph.JGraph.getUIClassID  ) 
 

Returns the name of the L&F class that renders this component.

Returns:
the string "GraphUI"
See also:
JComponent.getUIClassID

void org.jgraph.JGraph.graphDidChange  ) 
 

Messaged when the graph has changed enough that we need to resize the bounds, but not enough that we need to remove the cells (e.g cells were inserted into the graph). You should never have to invoke this, the UI will invoke this as it needs to. (Note: This is invoked by GraphUI, eg. after moving.)

boolean org.jgraph.JGraph.isAntiAliased  ) 
 

Returns true if the graph will be anti aliased.

Returns:
true if the graph is anti aliased

boolean org.jgraph.JGraph.isAutoResizeGraph  ) 
 

Returns true if the graph should be automatically resized when cells are being move below the bottom right corner.

boolean org.jgraph.JGraph.isBendable  ) 
 

Returns true if the graph allows adding/removing/modifying points.

boolean org.jgraph.JGraph.isCellEditable Object  cell  ) 
 

Returns true if the graph and the cell are editable. This is invoked from the UI before editing begins to ensure that the given cell can be edited.

Returns:
true if the specified cell is editable
See also:
isEditable

boolean org.jgraph.JGraph.isCellSelected Object  cell  ) 
 

Returns true if the cell is currently selected.

Parameters:
cell an object identifying a cell
Returns:
true if the cell is selected

boolean org.jgraph.JGraph.isCloneable  ) 
 

Returns true if cells are cloned on CTRL-Drag operations.

boolean org.jgraph.JGraph.isConnectable  ) 
 

Returns true if the graph allows new connections to be established.

boolean org.jgraph.JGraph.isDisconnectable  ) 
 

Returns true if the graph allows existing connections to be removed.

boolean org.jgraph.JGraph.isDisconnectOnMove  ) 
 

Returns true if selected edges should be disconnected from unselected vertices when they are moved.

boolean org.jgraph.JGraph.isDragEnabled  ) 
 

Returns true if the graph uses Drag-and-Drop to move cells.

boolean org.jgraph.JGraph.isDropEnabled  ) 
 

Returns true if the graph accepts drops/pastes from external sources.

boolean org.jgraph.JGraph.isEditable  ) 
 

Returns true if the graph is editable (if it allows cells to be edited).

Returns:
true if the graph is editable

boolean org.jgraph.JGraph.isEditing  ) 
 

Returns true if the graph is being edited. The item that is being edited can be obtained using getEditingCell.

Returns:
true if the user is currently editing a cell
See also:
getSelectionCell

boolean org.jgraph.JGraph.isGridEnabled  ) 
 

Returns true if the grid is active.

See also:
snap(Point2D)

boolean org.jgraph.JGraph.isGridVisible  ) 
 

Returns true if the grid will be visible.

Returns:
true if the grid is visible

boolean org.jgraph.JGraph.isJumpToDefaultPort  ) 
 

Returns true if getPortViewAt should return the default port if no other port is found.

boolean org.jgraph.JGraph.isMoveable  ) 
 

boolean org.jgraph.JGraph.isMoveBelowZero  ) 
 

Returns true if the graph allows to move cells below zero.

boolean org.jgraph.JGraph.isMoveIntoGroups  ) 
 

Returns true if cells should be added to groups when moved over the group's area.

boolean org.jgraph.JGraph.isMoveOutOfGroups  ) 
 

Returns true if cells should be removed from groups when removed from the group's area.

boolean org.jgraph.JGraph.isPortsScaled  ) 
 

Returns true if the ports will be scaled.

Returns:
true if the ports are visible

boolean org.jgraph.JGraph.isPortsVisible  ) 
 

Returns true if the ports will be visible.

Returns:
true if the ports are visible

boolean org.jgraph.JGraph.isPreviewInvalidNullPorts  ) 
 

Returns true if graph allows invalid null ports during previews

Returns:
true if the graph allows invalid null ports during previews

boolean org.jgraph.JGraph.isSelectionEmpty  ) 
 

Returns true if the selection is currently empty.

Returns:
true if the selection is currently empty

boolean org.jgraph.JGraph.isSelectionEnabled  ) 
 

Returns true if the cell selection is enabled

Returns:
true if the cell selection is enabled

boolean org.jgraph.JGraph.isSizeable  ) 
 

Returns true if the graph allows cells to be resized.

static void org.jgraph.JGraph.main String[]  args  )  [static]
 

Object [] org.jgraph.JGraph.order Object[]  cells  ) 
 

Returns all cells including all descendants ordered using the current layering data stored by the model.

String org.jgraph.JGraph.paramString  )  [protected]
 

Returns a string representation of this JGraph. This method is intended to be used only for debugging purposes, and the content and format of the returned string may vary between implementations. The returned string may be empty but may not be null.

Returns:
a string representation of this JGraph.

void org.jgraph.JGraph.readObject ObjectInputStream  s  )  throws IOException, ClassNotFoundException [private]
 

Serialization support.

void org.jgraph.JGraph.removeGraphSelectionListener GraphSelectionListener  tsl  ) 
 

Removes a GraphSelection listener.

Parameters:
tsl the GraphSelectionListener to remove

void org.jgraph.JGraph.removeSelectionCell Object  cell  ) 
 

Removes the cell identified by the specified Object from the current selection.

Parameters:
cell the cell to be removed from the selection

void org.jgraph.JGraph.scrollCellToVisible Object  cell  ) 
 

Scrolls to the specified cell. Only works when this JGraph is contained in a JScrollPane.

Parameters:
cell the object identifying the cell to bring into view

void org.jgraph.JGraph.scrollPointToVisible Point2D  p  ) 
 

Makes sure the specified point is visible.

Parameters:
p the point that should be visible

void org.jgraph.JGraph.setAntiAliased boolean  newValue  ) 
 

Sets antialiasing on or off based on the boolean value.

Fires a property change for the ANTIALIASED_PROPERTY.

Parameters:
newValue whether to turn antialiasing on or off

void org.jgraph.JGraph.setAutoResizeGraph boolean  autoResizeGraph  ) 
 

Sets if the graph allows to move cells below zero.

void org.jgraph.JGraph.setBendable boolean  flag  ) 
 

Sets if the graph allows adding/removing/modifying points.

void org.jgraph.JGraph.setCloneable boolean  flag  ) 
 

Sets if cells are cloned on CTRL-Drag operations.

void org.jgraph.JGraph.setConnectable boolean  flag  ) 
 

Setse if the graph allows new connections to be established.

void org.jgraph.JGraph.setDisconnectable boolean  flag  ) 
 

Sets if the graph allows existing connections to be removed.

void org.jgraph.JGraph.setDisconnectOnMove boolean  flag  ) 
 

Sets if selected edges should be disconnected from unselected vertices when they are moved.

void org.jgraph.JGraph.setDragEnabled boolean  flag  ) 
 

Sets if the graph uses Drag-and-Drop to move cells.

void org.jgraph.JGraph.setDropEnabled boolean  flag  ) 
 

Sets if the graph accepts drops/pastes from external sources.

void org.jgraph.JGraph.setEditable boolean  flag  ) 
 

Determines whether the graph is editable. Fires a property change manas.event if the new setting is different from the existing setting.

Note: Editable determines whether the graph allows editing. This is not to be confused with enabled, which allows the graph to handle mouse events (including editing).

Parameters:
flag a boolean value, true if the graph is editable

void org.jgraph.JGraph.setEditClickCount int  count  ) 
 

Sets the number of clicks for editing to start.

void org.jgraph.JGraph.setGraphLayoutCache GraphLayoutCache  newLayoutCache  ) 
 

Sets the GraphLayoutCache that will provide the view-data.

Note: Updates the graphs's model using using the model from the layout cache.

Fires a property change for the GRAPH_LAYOUT_CACHE_PROPERTY.

Parameters:
newLayoutCache the GraphLayoutCache that is to provide the view-data

void org.jgraph.JGraph.setGridColor Color  newColor  ) 
 

Sets the current grid color.

void org.jgraph.JGraph.setGridEnabled boolean  flag  ) 
 

If set to true, the grid will be active.

See also:
snap(Point2D)

void org.jgraph.JGraph.setGridMode int  mode  ) 
 

Sets the current grid view mode.

Parameters:
mode The current grid view mode. Valid values are DOT_GRID_MODE,CROSS_GRID_MODE, and LINE_GRID_MODE.

void org.jgraph.JGraph.setGridSize double  newSize  ) 
 

Sets the size of the grid.

Fires a property change for the GRID_SIZE_PROPERTY.

Parameters:
newSize the new size of the grid in pixels

void org.jgraph.JGraph.setGridVisible boolean  flag  ) 
 

If set to true, the grid will be visible.

Fires a property change for the GRID_VISIBLE_PROPERTY.

void org.jgraph.JGraph.setHandleColor Color  newColor  ) 
 

Sets the current handle color.

void org.jgraph.JGraph.setHandleSize int  size  ) 
 

Sets the size of the handles.

void org.jgraph.JGraph.setHighlightColor Color  newColor  ) 
 

Sets the current selection highlight color.

void org.jgraph.JGraph.setInvokesStopCellEditing boolean  newValue  ) 
 

Determines what happens when editing is interrupted by selecting another cell in the graph, a change in the graph's data, or by some other means. Setting this property to true causes the changes to be automatically saved when editing is interrupted.

Fires a property change for the INVOKES_STOP_CELL_EDITING_PROPERTY.

Parameters:
newValue true means that stopCellEditing is invoked when editing is interruped, and data is saved; false means that cancelCellEditing is invoked, and changes are lost

void org.jgraph.JGraph.setJumpToDefaultPort boolean  flag  ) 
 

Sets if getPortViewAt should return the default port if no other port is found.

void org.jgraph.JGraph.setLockedHandleColor Color  newColor  ) 
 

Sets the current second handle color.

void org.jgraph.JGraph.setMarqueeColor Color  newColor  ) 
 

Sets the current marquee color.

void org.jgraph.JGraph.setMarqueeHandler BasicMarqueeHandler  newMarquee  ) 
 

Sets the MarqueeHandler that will handle marquee selection.

Parameters:
newMarquee the BasicMarqueeHandler that is to provide marquee handling

void org.jgraph.JGraph.setMinimumMove int  pixels  ) 
 

Sets the miminum amount of pixels for a move operation.

void org.jgraph.JGraph.setModel GraphModel  newModel  ) 
 

Sets the GraphModel that will provide the data. Note: Updates the current GraphLayoutCache's model using setModel if the GraphLayoutCache points to a different model.

Fires a property change for the GRAPH_MODEL_PROPERTY.

Parameters:
newModel the GraphModel that is to provide the data

void org.jgraph.JGraph.setMoveable boolean  flag  ) 
 

Sets if the graph allows movement of cells.

void org.jgraph.JGraph.setMoveBelowZero boolean  moveBelowZero  ) 
 

Sets if the graph should auto resize when cells are being moved below the bottom right corner.

void org.jgraph.JGraph.setMoveIntoGroups boolean  flag  ) 
 

Specifies if cells should be added to groups when moved over the group's area.

void org.jgraph.JGraph.setMoveOutOfGroups boolean  flag  ) 
 

Specifies if cells should be removed from groups when removed from the group's area.

void org.jgraph.JGraph.setPortsScaled boolean  flag  ) 
 

If set to true, the ports will be scaled.

Fires a property change for the PORTS_SCALED_PROPERTY.

void org.jgraph.JGraph.setPortsVisible boolean  flag  ) 
 

If set to true, the ports will be visible.

Fires a property change for the PORTS_VISIBLE_PROPERTY.

void org.jgraph.JGraph.setPreviewInvalidNullPorts boolean  flag  ) 
 

Determines whether the graph allows invalid null ports during previews

Parameters:
flag a boolean value, true if the graph allows invalid null ports during previews

void org.jgraph.JGraph.setScale double  newValue  ) 
 

Sets the current scale.

Fires a property change for the SCALE_PROPERTY.

Parameters:
newValue the new scale

void org.jgraph.JGraph.setSelectionCell Object  cell  ) 
 

Selects the specified cell.

Parameters:
cell the Object specifying the cell to select

void org.jgraph.JGraph.setSelectionCells Object[]  cells  ) 
 

Selects the specified cells.

Parameters:
cells an array of objects that specifies the cells to select

void org.jgraph.JGraph.setSelectionEnabled boolean  flag  ) 
 

Determines whether cell selection is enabled. Fires a property change manas.event if the new setting is different from the existing setting.

Parameters:
flag a boolean value, true if cell selection is enabled

void org.jgraph.JGraph.setSelectionModel GraphSelectionModel  selectionModel  ) 
 

Sets the graph's selection model. When a null value is specified an emtpy selectionModel is used, which does not allow selections.

Parameters:
selectionModel the GraphSelectionModel to use, or null to disable selections
See also:
GraphSelectionModel

void org.jgraph.JGraph.setSizeable boolean  flag  ) 
 

Sets if the graph allows cells to be resized.

void org.jgraph.JGraph.setTolerance int  size  ) 
 

Sets the maximum distance between the mousepointer and a cell to be selected.

void org.jgraph.JGraph.setUI GraphUI  ui  ) 
 

Sets the L&F object that renders this component.

Parameters:
ui the GraphUI L&F object
See also:
javax.swing.UIDefaults.getUI(JComponent)

Dimension2D org.jgraph.JGraph.snap Dimension2D  d  ) 
 

Returns the given dimension applied to the grid.

Parameters:
d a dimension in screen coordinates to snap to.
Returns:
the same dimension applied to the grid.

Rectangle2D org.jgraph.JGraph.snap Rectangle2D  r  ) 
 

Returns the given rectangle applied to the grid.

Parameters:
r a rectangle in screen coordinates.
Returns:
the same rectangle applied to the grid.

Point2D org.jgraph.JGraph.snap Point2D  p  ) 
 

Returns the given point applied to the grid.

Parameters:
p a point in screen coordinates.
Returns:
the same point applied to the grid.

void org.jgraph.JGraph.startEditingAtCell Object  cell  ) 
 

Selects the specified cell and initiates editing. The edit-attempt fails if the CellEditor does not allow editing for the specified item.

boolean org.jgraph.JGraph.stopEditing  ) 
 

Ends the current editing session. (The DefaultGraphCellEditor object saves any edits that are currently in progress on a cell. Other implementations may operate differently.) Has no effect if the tree isn't being edited. <blockquote> Note:
To make edit-saves automatic whenever the user changes their position in the graph, use setInvokesStopCellEditing. </blockquote>

Returns:
true if editing was in progress and is now stopped, false if editing was not in progress

Rectangle2D org.jgraph.JGraph.toScreen Rectangle2D  rect  ) 
 

Upscale the given rectangle in place, using the given instance.

Parameters:
rect the rectangle to be upscaled
Returns:
the upscaled rectangle instance

Point2D org.jgraph.JGraph.toScreen Point2D  p  ) 
 

Upscale the given point in place, using the given instance.

Parameters:
p the point to be upscaled
Returns:
the upscaled point instance

void org.jgraph.JGraph.updateAutoSize CellView  view  ) 
 

Computes and updates the size for view.

void org.jgraph.JGraph.updateUI  ) 
 

Notification from the UIManager that the L&F has changed. Replaces the current UI object with the latest version from the UIManager. Subclassers can override this to support different GraphUIs.

See also:
JComponent.updateUI

void org.jgraph.JGraph.writeObject ObjectOutputStream  s  )  throws IOException [private]
 

Serialization support.


Member Data Documentation

boolean org.jgraph.JGraph.antiAliased = false [protected]
 

True if the graph is anti-aliased. Default is false. Bound property.

final String org.jgraph.JGraph.ANTIALIASED_PROPERTY = "antiAliased" [static]
 

Bound property name for antiAliased.

boolean org.jgraph.JGraph.autoResizeGraph = true [protected]
 

True if the graph should be auto resized when cells are moved below the bottom right corner. Default is true.

boolean org.jgraph.JGraph.bendable = true [protected]
 

True if the graph allows points to be modified/added/removed. Default is true.

boolean org.jgraph.JGraph.cloneable = false [protected]
 

True if the graph allows "ctrl-drag" operations. Default is false.

boolean org.jgraph.JGraph.connectable = true [protected]
 

True if the graph allows new connections to be established. Default is true.

final int org.jgraph.JGraph.CROSS_GRID_MODE = 1 [static]
 

boolean org.jgraph.JGraph.disconnectable = true [protected]
 

True if the graph allows existing connections to be removed. Default is true.

boolean org.jgraph.JGraph.disconnectOnMove = false [protected]
 

True if selected edges are disconnected from unselected vertices on move. Default is false.

final int org.jgraph.JGraph.DOT_GRID_MODE = 0 [static]
 

boolean org.jgraph.JGraph.dragEnabled = false [protected]
 

True if Drag-and-Drop should be used for move operations. Default is false due to a JDK bug.

boolean org.jgraph.JGraph.dropEnabled = true [protected]
 

True if the graph accepts transfers from other components (graphs). This also affects the clipboard. Default is true.

boolean org.jgraph.JGraph.editable = true [protected]
 

True if the graph allows editing the value of a cell. Bound property.

final String org.jgraph.JGraph.EDITABLE_PROPERTY = "editable" [static]
 

Bound property name for editable.

int org.jgraph.JGraph.editClickCount = 2 [protected]
 

Number of clicks for editing to start. Default is 2 clicks.

boolean org.jgraph.JGraph.enabled = true [protected]
 

True if the graph allows interactions. Default is true.

final String org.jgraph.JGraph.GRAPH_LAYOUT_CACHE_PROPERTY = "view" [static]
 

Bound property name for graphModel.

final String org.jgraph.JGraph.GRAPH_MODEL_PROPERTY = "model" [static]
 

Bound property name for graphModel.

transient GraphLayoutCache org.jgraph.JGraph.graphLayoutCache [protected]
 

The view that defines the display properties of the model. Bound property.

transient GraphModel org.jgraph.JGraph.graphModel [protected]
 

The model that defines the graph displayed by this object. Bound property.

final String org.jgraph.JGraph.GRID_COLOR_PROPERTY = "gridColor" [static]
 

Bound property name for gridColor.

final String org.jgraph.JGraph.GRID_SIZE_PROPERTY = "gridSize" [static]
 

Bound property name for gridSize.

final String org.jgraph.JGraph.GRID_VISIBLE_PROPERTY = "gridVisible" [static]
 

Bound property name for gridVisible.

Color org.jgraph.JGraph.gridColor [protected]
 

The color of the grid. Changes when the Look-and-Feel changes.

boolean org.jgraph.JGraph.gridEnabled = false [protected]
 

True if the snap method should be active (snap to grid).

int org.jgraph.JGraph.gridMode = DOT_GRID_MODE [protected]
 

The style of the grid. Use one of the _GRID_MODE constants.

double org.jgraph.JGraph.gridSize = 10 [protected]
 

The size of the grid in points. Default is 10. Bound property.

boolean org.jgraph.JGraph.gridVisible = false [protected]
 

True if the grid is visible. Bound property.

final String org.jgraph.JGraph.HANDLE_COLOR_PROPERTY = "handleColor" [static]
 

Bound property name for gridColor.

final String org.jgraph.JGraph.HANDLE_SIZE_PROPERTY = "handleSize" [static]
 

Bound property name for gridColor.

Color org.jgraph.JGraph.handleColor [protected]
 

Color of the handles and locked handles. Changes when the Look-and-Feel changes.

int org.jgraph.JGraph.handleSize = 3 [protected]
 

Size of a handle. Default is 3 pixels.

Color org.jgraph.JGraph.highlightColor = Color.green [protected]
 

Highlight Color. Changes when the Look-and-Feel changes.

final String org.jgraph.JGraph.INVOKES_STOP_CELL_EDITING_PROPERTY = "invokesStopCellEditing" [static]
 

Bound property name for messagesStopCellEditing.

boolean org.jgraph.JGraph.invokesStopCellEditing [protected]
 

If true, when editing is to be stopped by way of selection changing, data in graph changing or other means stopCellEditing is invoked, and changes are saved. If false, cancelCellEditing is invoked, and changes are discarded.

boolean org.jgraph.JGraph.isJumpToDefaultPort = false [protected]
 

True if getPortViewAt should return the default port if no other port is found. Default is false.

boolean org.jgraph.JGraph.isMoveIntoGroups = false [protected]
 

Specifies if cells should be added to a group when moved over the group's area. Default is false.

boolean org.jgraph.JGraph.isMoveOutOfGroups = false [protected]
 

Specifies if cells should be removed from groups when removed from the group area. Default is false.

final int org.jgraph.JGraph.LINE_GRID_MODE = 2 [static]
 

final String org.jgraph.JGraph.LOCKED_HANDLE_COLOR_PROPERTY = "lockedHandleColor" [static]
 

Bound property name for gridColor.

Color org.jgraph.JGraph.lockedHandleColor [protected]
 

transient BasicMarqueeHandler org.jgraph.JGraph.marquee [protected]
 

Handler for marquee selection.

final String org.jgraph.JGraph.MARQUEE_HANDLER_PROPERTY = "marquee" [static]
 

Bound property name for graphModel.

Color org.jgraph.JGraph.marqueeColor [protected]
 

Color of the marquee. Changes when the Look-and-Feel changes.

int org.jgraph.JGraph.minimumMove = 5 [protected]
 

Minimum amount of pixels to start a move transaction. Default is 5.

boolean org.jgraph.JGraph.moveable = true [protected]
 

True if the graph allows move operations. Default is true.

boolean org.jgraph.JGraph.moveBelowZero = false [protected]
 

True if the graph allows to move cells below zero.

final String org.jgraph.JGraph.PORTS_SCALED_PROPERTY = "portsScaled" [static]
 

Bound property name for portsScaled.

final String org.jgraph.JGraph.PORTS_VISIBLE_PROPERTY = "portsVisible" [static]
 

Bound property name for gridVisible.

boolean org.jgraph.JGraph.portsScaled = true [protected]
 

True if the ports are scaled. Bound property.

boolean org.jgraph.JGraph.portsVisible = false [protected]
 

True if the ports are visible. Bound property.

boolean org.jgraph.JGraph.previewInvalidNullPorts = true [protected]
 

True if the graph allows invalid null ports during previews (aka flip back edges). Default is true.

double org.jgraph.JGraph.scale = 1.0 [protected]
 

Scale of the graph. Default is 1. Bound property.

final String org.jgraph.JGraph.SCALE_PROPERTY = "scale" [static]
 

Bound property name for scale.

final String org.jgraph.JGraph.SELECTION_MODEL_PROPERTY = "selectionModel" [static]
 

Bound property name for selectionModel.

boolean org.jgraph.JGraph.selectionEnabled = true [protected]
 

True if the graph allows selection of cells. Note: You must also disable selectNewCells if you disable this. Bound property.

final String org.jgraph.JGraph.SELECTIONENABLED_PROPERTY = "selectionEnabled" [static]
 

Bound property name for selectionEnabled.

transient GraphSelectionModel org.jgraph.JGraph.selectionModel [protected]
 

Models the set of selected objects in this graph. Bound property.

transient GraphSelectionRedirector org.jgraph.JGraph.selectionRedirector [protected]
 

Creates a new manas.event and passes it off the selectionListeners.

boolean org.jgraph.JGraph.sizeable = true [protected]
 

True if the graph allows cells to be resized. Default is true.

int org.jgraph.JGraph.tolerance = 4 [protected]
 

Maximum distance between a cell and the mousepointer. Default is 4.

final String org.jgraph.JGraph.uiClassID = "GraphUI" [static, private]
 

See also:
getUIClassID

readObject

final String org.jgraph.JGraph.VERSION = "JGraph (v5.7.4.5)" [static]
 


The documentation for this class was generated from the following file:
Generated on Sun May 28 19:13:12 2006 for Digimod by  doxygen 1.4.6-NO