JGraph
v5.0


Serialized Form


Package org.jgraph

Class org.jgraph.JGraph extends javax.swing.JComponent implements Serializable

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream s)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
Serialization support.

Throws:
java.io.IOException
java.lang.ClassNotFoundException

writeObject

private void writeObject(java.io.ObjectOutputStream s)
                  throws java.io.IOException
Serialization support.

Throws:
java.io.IOException
Serialized Fields

scale

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


antiAliased

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


editable

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


gridVisible

boolean gridVisible
True if the grid is visible. Bound property.


gridSize

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


gridMode

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


portsVisible

boolean portsVisible
True if the ports are visible. Bound property.


moveBelowZero

boolean moveBelowZero
True if the graph allows to move cells below cero.


highlightColor

java.awt.Color highlightColor
Highlight Color. Changes when the Look-and-Feel changes.


handleColor

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


lockedHandleColor

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


marqueeColor

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


gridColor

java.awt.Color gridColor
The color of the grid. Changes when the Look-and-Feel changes.


dragEnabled

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


dropEnabled

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


editClickCount

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


enabled

boolean enabled
True if the graph allows interactions. Default is true.


gridEnabled

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


handleSize

int handleSize
Size of a handle. Default is 3 pixels.


tolerance

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


minimumMove

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


selectNewCells

boolean selectNewCells
True if inserted cells should be selected. Default is false.


disconnectOnMove

boolean disconnectOnMove
True if selected edges are disconnected from unselected vertices on move. Default is true.


moveable

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


cloneable

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


sizeable

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


bendable

boolean bendable
True if the graph allows points to be midified/added/removed. Default is true.


connectable

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


disconnectable

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


invokesStopCellEditing

boolean invokesStopCellEditing
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. Default is false.


settingUI

boolean settingUI
This is set to true for the life of the setUI call.

Class org.jgraph.JGraph.EmptySelectionModel extends DefaultGraphSelectionModel implements Serializable

Class org.jgraph.JGraph.GraphSelectionRedirector extends java.lang.Object implements Serializable


Package org.jgraph.event

Class org.jgraph.event.GraphModelEvent extends java.util.EventObject implements Serializable

Serialized Fields

change

GraphModelEvent.GraphModelChange change
The object that consistutes the change.

Class org.jgraph.event.GraphSelectionEvent extends java.util.EventObject implements Serializable

Serialized Fields

cells

java.lang.Object[] cells
Cells this event represents.


areNew

boolean[] areNew
For each cell identifies if that cell is in fact new.


Package org.jgraph.graph

Class org.jgraph.graph.AbstractCellView extends java.lang.Object implements Serializable

Serialized Fields

graph

JGraph graph
Reference to the graph


mapper

CellMapper mapper
Reference to the cell mapper for the view


cell

java.lang.Object cell
Reference to the cell for this view


parent

CellView parent
Cached parent view


childViews

java.util.List<E> childViews
Cached child views.


attributes

AttributeMap attributes
Hashtable for attributes. Initially empty


allAttributes

AttributeMap allAttributes

Class org.jgraph.graph.AttributeMap extends java.util.Hashtable implements Serializable

Class org.jgraph.graph.AttributeMap.SerializablePoint2D extends java.awt.geom.Point2D.Double implements Serializable

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream in)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException

writeObject

private void writeObject(java.io.ObjectOutputStream out)
                  throws java.io.IOException
Throws:
java.io.IOException

Class org.jgraph.graph.AttributeMap.SerializableRectangle2D extends java.awt.geom.Rectangle2D.Double implements Serializable

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream in)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException

writeObject

private void writeObject(java.io.ObjectOutputStream out)
                  throws java.io.IOException
Throws:
java.io.IOException

Class org.jgraph.graph.ConnectionSet extends java.lang.Object implements Serializable

Serialized Fields

connections

java.util.Set<E> connections
Contents of the connection set.


edges

java.util.Set<E> edges
Set of changed edges for the connection set.

Class org.jgraph.graph.ConnectionSet.Connection extends java.lang.Object implements Serializable

Serialized Fields

edge

java.lang.Object edge
The edge that will be connected to the port.


port

java.lang.Object port
The port that will be connected to the edge.


isSource

boolean isSource
Indicates if port is the source of edge.

Class org.jgraph.graph.DefaultEdge extends DefaultGraphCell implements Serializable

Serialized Fields

source

java.lang.Object source
Source and target of the edge.


target

java.lang.Object target
Source and target of the edge.

Class org.jgraph.graph.DefaultEdge.DefaultRouting extends java.lang.Object implements Serializable

Class org.jgraph.graph.DefaultGraphCell extends javax.swing.tree.DefaultMutableTreeNode implements Serializable

Serialized Fields

attributes

AttributeMap attributes
Hashtable for properties. Initially empty

Class org.jgraph.graph.DefaultGraphCellEditor extends java.lang.Object implements Serializable

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream s)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException

writeObject

private void writeObject(java.io.ObjectOutputStream s)
                  throws java.io.IOException
Throws:
java.io.IOException
Serialized Fields

realEditor

GraphCellEditor realEditor
Editor handling the editing.


editingContainer

java.awt.Container editingContainer
Editing container, will contain the editorComponent.


canEdit

boolean canEdit
Should isCellEditable return true? This is set in configure... based on the path being edited and the selected selected path.


borderSelectionColor

java.awt.Color borderSelectionColor
True if the border selection color should be drawn.


font

java.awt.Font font
Font to paint with, null indicates font of renderer is to be used.

Class org.jgraph.graph.DefaultGraphCellEditor.DefaultTextField extends javax.swing.JTextField implements Serializable

Serialized Fields

border

javax.swing.border.Border border
Border to use.

Class org.jgraph.graph.DefaultGraphCellEditor.EditorContainer extends java.awt.Container implements Serializable

Class org.jgraph.graph.DefaultGraphModel extends javax.swing.undo.UndoableEditSupport implements Serializable

Serialization Methods

readObject

private void readObject(java.io.ObjectInputStream s)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException
Serialized Fields

roots

java.util.List<E> roots
Set that contains all root cells of this model.


asksAllowsChildren

boolean asksAllowsChildren
Indicates whether isLeaf is based on a node's allowsChildren value.


attributes

AttributeMap attributes
The model's own attributes as a map. Defaults to an empty Hashtable.

Class org.jgraph.graph.DefaultGraphModel.EmptyIterator extends java.lang.Object implements Serializable

Class org.jgraph.graph.DefaultGraphModel.GraphModelEdit extends javax.swing.undo.CompoundEdit implements Serializable

Serialized Fields

insert

java.lang.Object[] insert

changed

java.lang.Object[] changed

remove

java.lang.Object[] remove

context

java.lang.Object[] context

inserted

java.lang.Object[] inserted

removed

java.lang.Object[] removed

attributes

java.util.Map<K,V> attributes

previousAttributes

java.util.Map<K,V> previousAttributes

parentMap

ParentMap parentMap

previousParentMap

ParentMap previousParentMap

connectionSet

ConnectionSet connectionSet

previousConnectionSet

ConnectionSet previousConnectionSet

cellViews

java.util.Map<K,V> cellViews

Class org.jgraph.graph.DefaultGraphModel.GraphModelLayerEdit extends GraphLayoutCache.GraphViewLayerEdit implements Serializable

Serialized Fields

parents

java.lang.Object[] parents

Class org.jgraph.graph.DefaultGraphSelectionModel extends java.lang.Object implements Serializable

Serialized Fields

graph

JGraph graph
Reference to the parent graph. Used to find parents and childs.


changeSupport

javax.swing.event.SwingPropertyChangeSupport changeSupport
Used to message registered listeners.


listenerList

javax.swing.event.EventListenerList listenerList
Event listener list.


selectionMode

int selectionMode
Mode for the selection, will be either SINGLE_TREE_SELECTION, CONTIGUOUS_TREE_SELECTION or DISCONTIGUOUS_TREE_SELECTION.


childrenSelectable

boolean childrenSelectable
Boolean that indicates if the model allows stepping-into groups.


cellStates

java.util.Map<K,V> cellStates
Maps the cells to their selection state.


selection

java.util.List<E> selection
List that contains the selected items.

Class org.jgraph.graph.DefaultPort extends DefaultGraphCell implements Serializable

Serialized Fields

edges

java.util.HashSet<E> edges
Edges that are connected to the port


anchor

Port anchor
Reference to the anchor of this port

Class org.jgraph.graph.DefaultRealEditor extends javax.swing.DefaultCellEditor implements Serializable

Class org.jgraph.graph.EdgeRenderer extends javax.swing.JComponent implements Serializable

Serialized Fields

bezier

Bezier bezier

spline

Spline2D spline

Class org.jgraph.graph.EdgeView extends AbstractCellView implements Serializable

Serialized Fields

points

java.util.List<E> points
List of points of the edge. May contain ports.


source

CellView source
Cached source and target portview of the edge.


target

CellView target
Cached source and target portview of the edge.


labelPosition

java.awt.Point labelPosition
Cached label position of the edge.


beginShape

java.awt.Shape beginShape
Drawing attributes that are created on the fly


endShape

java.awt.Shape endShape
Drawing attributes that are created on the fly


lineShape

java.awt.Shape lineShape
Drawing attributes that are created on the fly


cachedLabelBounds

java.awt.geom.Rectangle2D cachedLabelBounds

cachedBounds

java.awt.geom.Rectangle2D cachedBounds

Class org.jgraph.graph.EdgeView.EdgeHandle extends java.lang.Object implements Serializable

Serialized Fields

graph

JGraph graph

edge

EdgeView edge

orig

EdgeView orig

label

boolean label

source

boolean source

target

boolean target

currentPoint

java.awt.geom.Point2D currentPoint

firstOverlayCall

boolean firstOverlayCall

isEdgeConnectable

boolean isEdgeConnectable

relevantEdge

EdgeView relevantEdge

Class org.jgraph.graph.GraphLayoutCache extends java.util.Observable implements Serializable

Serialized Fields

showAllEdgesForVisibleVertices

boolean showAllEdgesForVisibleVertices
Boolean indicating whether new or changed edges should be made visible if their source and target vertices are visible. This setting has no effect in non-partial views.


showEdgesOnShow

boolean showEdgesOnShow
Boolean indicating whether edges should be made visible if their connected vertices become visible. This does cause new edges to be displayed automatically. This setting has no effect in non-partial views.


hideEdgesOnHide

boolean hideEdgesOnHide
Boolean indicating whether attached edges should be made invisible if their source or target port is hidden. This setting has no effect in non-partial views.


hideEdgesOnBecomeInvisible

boolean hideEdgesOnBecomeInvisible
Boolean indicating whether edges should be made invisible if their connected vertices become invisible (for example when removed). This setting has no effect in non-partial views.


rememberCellViews

boolean rememberCellViews
Boolean indicating whether cellviews should be remembered once visible in this GraphLayoutCache.


graphModel

GraphModel graphModel
Reference to the graphModel


mapping

java.util.Map<K,V> mapping
Maps cells to views.


mapper

CellMapper mapper
Reference to the cell mapper, typically this.


factory

CellViewFactory factory
Factory to create the views.


graph

JGraph graph
Factory to create the views.


visibleSet

java.util.Set<E> visibleSet
The set of visible cells.


roots

java.util.List<E> roots
Ordered list of roots for the view.


ports

PortView[] ports
Cached array of all ports for the view.


ordered

boolean ordered
View overrides model layering.


partial

boolean partial
Only portions of the model are visible.


askLocalAttribute

boolean askLocalAttribute
May be used to disable the creation of local edits independently.


localAttributes

java.util.Set<E> localAttributes
A set containing all attribute keys that are stored in the cell views, in other words, the view-local attributes.

Class org.jgraph.graph.GraphLayoutCache.GraphViewEdit extends javax.swing.undo.CompoundEdit implements Serializable

Serialized Fields

cells

java.lang.Object[] cells

context

CellView[] context

hidden

CellView[] hidden

attributes

java.util.Map<K,V> attributes

visible

java.lang.Object[] visible

invisible

java.lang.Object[] invisible

Class org.jgraph.graph.GraphLayoutCache.GraphViewLayerEdit extends javax.swing.undo.AbstractUndoableEdit implements Serializable

Serialized Fields

changeSource

java.lang.Object changeSource

layer

int layer

Class org.jgraph.graph.GraphTransferable extends BasicGraphTransferable implements Serializable

Serialized Fields

cells

java.lang.Object[] cells
Selected cells.


cs

ConnectionSet cs
Object that describes the connection between cells.


pm

ParentMap pm
Object that describes the group structure between cells.


attributeMap

java.util.Map<K,V> attributeMap
(Cell, Map) entries that hold the view attributes for the cells.


bounds

java.awt.geom.Rectangle2D bounds
Rectangle that defines the former bounds of the views.

Class org.jgraph.graph.GraphUndoManager extends javax.swing.undo.UndoManager implements Serializable

Class org.jgraph.graph.ParentMap extends java.lang.Object implements Serializable

Serialized Fields

entries

java.util.ArrayList<E> entries
Contents of the parent map.


changedNodes

java.util.Set<E> changedNodes
Set of changed changedNodes for the parent map. Includes childs and parents.


childCount

java.util.Map<K,V> childCount
Maps parents to integers with the future number of childs.

Class org.jgraph.graph.ParentMap.Entry extends java.lang.Object implements Serializable

Serialized Fields

child

java.lang.Object child
Child and parent of the relation this entry describes.


parent

java.lang.Object parent
Child and parent of the relation this entry describes.

Class org.jgraph.graph.PortRenderer extends javax.swing.JComponent implements Serializable

Class org.jgraph.graph.PortView extends AbstractCellView implements Serializable

Class org.jgraph.graph.VertexRenderer extends javax.swing.JLabel implements Serializable

Serialized Fields

hideGroups

boolean hideGroups
Use this flag to control if groups should appear transparent.

Class org.jgraph.graph.VertexView extends AbstractCellView implements Serializable

Serialized Fields

bounds

java.awt.geom.Rectangle2D bounds
Reference to the bounds attribute


groupBounds

java.awt.geom.Rectangle2D groupBounds
Cached bounds of all children if vertex is a group

Class org.jgraph.graph.VertexView.SizeHandle extends java.lang.Object implements Serializable

Serialized Fields

firstOverlayInvocation

boolean firstOverlayInvocation

Package org.jgraph.plaf.basic

Class org.jgraph.plaf.basic.BasicGraphTransferable extends java.lang.Object implements Serializable

Class org.jgraph.plaf.basic.BasicGraphUI extends GraphUI implements Serializable

Serialized Fields

preferredMinSize

java.awt.Dimension preferredMinSize
Minimum preferred size.


graph

JGraph graph
Component that we're going to be drawing into.


graphLayoutCache

GraphLayoutCache graphLayoutCache
Reference to the graph's view (geometric pattern).


cellEditor

GraphCellEditor cellEditor
Current editor for the graph.


stopEditingInCompleteEditing

boolean stopEditingInCompleteEditing
Set to false when editing and shouldSelectCell() returns true meaning the node should be selected before editing, used in completeEditing.


rendererPane

javax.swing.CellRendererPane rendererPane
Used to paint the CellRenderer.


preferredSize

java.awt.Dimension preferredSize
Size needed to completely display all the cells.


validCachedPreferredSize

boolean validCachedPreferredSize
Is the preferredSize valid?


graphModel

GraphModel graphModel
Used to determine what to display.


graphSelectionModel

GraphSelectionModel graphSelectionModel
Model maintaining the selection.


handle

CellHandle handle
Handle that we are going to use.


marquee

BasicMarqueeHandler marquee
Marquee that we are going to use.


editingComponent

java.awt.Component editingComponent
When editing, this will be the Component that is doing the actual editing.


focus

CellView focus
The focused cell under the mousepointer.


editingCell

java.lang.Object editingCell
Path that is being edited.


editorHasDifferentSize

boolean editorHasDifferentSize
Set to true if the editor has a different size than the renderer.


insertionLocation

java.awt.Point insertionLocation
Needed to exchange information between Transfer- and MouseListener.


dropAction

int dropAction
Needed to exchange information between DropTargetHandler and TransferHandler.


snapSelectedView

boolean snapSelectedView
If ture, a the view under mousepointer will be snapped to the grid lines during a drag operation. If snap-to-grid mode is disabled, views are moved by a snap increment.


propertyChangeListener

java.beans.PropertyChangeListener propertyChangeListener
Listens for JGraph property changes and updates display.


mouseListener

java.awt.event.MouseListener mouseListener
Listens for Mouse events.


keyListener

java.awt.event.KeyListener keyListener
Listens for KeyListener events.


componentListener

java.awt.event.ComponentListener componentListener
Listens for Component events.


cellEditorListener

javax.swing.event.CellEditorListener cellEditorListener
Listens for CellEditor events.


graphSelectionListener

GraphSelectionListener graphSelectionListener
Updates the display when the selection changes.


graphModelListener

GraphModelListener graphModelListener
Is responsible for updating the view based on model events.


graphViewObserver

java.util.Observer graphViewObserver
Updates the display when the view has changed.


defaultTransferHandler

javax.swing.TransferHandler defaultTransferHandler
The default TransferHandler.


defaultDropTargetListener

BasicGraphUI.GraphDropTargetListener defaultDropTargetListener
The default DropTargetListener.

Class org.jgraph.plaf.basic.BasicGraphUI.CellEditorHandler extends java.lang.Object implements Serializable

Class org.jgraph.plaf.basic.BasicGraphUI.GraphDropTargetListener extends BasicGraphDropTargetListener implements Serializable

Class org.jgraph.plaf.basic.BasicGraphUI.GraphIncrementAction extends javax.swing.AbstractAction implements Serializable

Serialized Fields

direction

int direction
Specifies the direction to adjust the selection by.

Class org.jgraph.plaf.basic.BasicGraphUI.GraphModelHandler extends java.lang.Object implements Serializable

Class org.jgraph.plaf.basic.BasicGraphUI.GraphSelectionHandler extends java.lang.Object implements Serializable

Class org.jgraph.plaf.basic.BasicGraphUI.GraphTransferHandler extends javax.swing.TransferHandler implements Serializable

Serialized Fields

out

java.lang.Object out

in

java.lang.Object in

inCount

int inCount

Class org.jgraph.plaf.basic.BasicGraphUI.GraphViewObserver extends java.lang.Object implements Serializable

Class org.jgraph.plaf.basic.BasicGraphUI.KeyHandler extends java.awt.event.KeyAdapter implements Serializable

Serialized Fields

repeatKeyAction

javax.swing.Action repeatKeyAction
Key code that is being generated for.


isKeyDown

boolean isKeyDown
Set to true while keyPressed is active.

Class org.jgraph.plaf.basic.BasicGraphUI.MouseHandler extends java.awt.event.MouseAdapter implements Serializable

Serialized Fields

cell

CellView cell

handler

java.lang.Object handler

Class org.jgraph.plaf.basic.BasicGraphUI.PropertyChangeHandler extends java.lang.Object implements Serializable

Class org.jgraph.plaf.basic.BasicGraphUI.RootHandle extends java.lang.Object implements Serializable

Serialized Fields

isMoving

boolean isMoving
Indicates whether this handle is currently moving cells. Start may be non-null and isMoving false while the minimum movement has not been reached.


isDragging

boolean isDragging
Indicates whether this handle has started drag and drop. Note: isDragging => isMoving.


isContextVisible

boolean isContextVisible

blockPaint

boolean blockPaint


JGraph
v5.0


Copyright (C) 2003-2004 Gaudenz Alder. All rights reserved.