Messages cancelCellEditing to the realEditor and removes it from this
instance.
Cancels the current editing session.
Cancels all current editing sessions.
Cancels the current editing session.
Internal Note, maybe isCellEditable return true.
Returns true if event
is null, or it is a MouseEvent
with a click count > 2 and inHitRegion returns true.
Overridden to preserve usual semantics: returns true if a redo
operation would be successful now for the given view, false otherwise
Overridden to preserve usual semantics: returns true if an undo
operation would be successful now for the given view, false otherwise
Reference to the cell for this view
Number of all descendants without ports.
Current editor for the graph.
Listener responsible for getting cell editing events and updating the
graph accordingly.
Listens for CellEditor events.
Called when a child has been made visible by expanding its parent.
Defines the requirements for objects that may be used as handles.
Defines the requirements for objects that may be used as a cell mapper.
Holds a path and whether or not it is new.
Cells this event represents.
Invoke this method after you've changed how the cells are to be
represented in the graph.
Set of all cells including all descendants.
Maps the cells to their selection state.
Defines the requirements for an object that
represents a view for a model cell.
Defines the requirements for objects that may be used as a
cell view factory.
Defines the requirements for objects that may be used as a
cell view renderer.
Invoke this method after you've changed how the cells are to be
represented in the graph.
The object that constitutes the change.
The object that constitutes the change.
Changes the attributes
of the cell.
Changes the attributes
of the cell.
Applies change
to the attributes of the view and calls
update.
Apply the specified map of attributes on the view.
Set of changed changedNodes for the parent map.
Used to message registered listeners.
Hook for subclassers to avoid default label positions.
Used to check the correctness of this spline
Used to check the correctness of this spline
Child and parent of the relation this entry describes.
Maps parents to integers with the future number of childs.
Boolean that indicates if the model allows stepping-into groups.
Key for the childrenSelectable
attribute.
Boolean attributes of the current edgeview.
Cached hasFocus and selected value.
Indicates to parent, if any, that this child has been updated.
Invalidate the offscreen region, do not just delete it, since if the new
region is smaller than the old you may not wish to re-create the buffer
Empties the current selection.
Empties the current selection.
Returns a clone of map
, from keys to values.
Create a clone of the cell.
Create a clone of the cell.
Returns a clone of this object with the same selection.
Create a clone of the cell.
Creates a new connection set based on this connection set, where the
edges, and ports are mapped using map
.
Creates a new parent map based on this parent map, where the child and
parents are mapped using map
.
True if the graph allows "ctrl-drag" operations.
Creates a shallow copy of the cell including a copy of the user object.
Returns a deep clone of the specified cell, including all children.
Returns a deep clone of the specified cells, including all children.
Returns a map of (cell, clone)-pairs for all cells
.
Returns a map of (cell, clone)-pairs for all cells
and
their children.
Returns a map of (cell, clone)-pairs for all cells
and
their children.
Clones special object entried in the given map.
Returns a list where all instances of PortView are replaced by their
correspnding Point instance.
Returns a list where all instances of PortView are replaced by their
correspnding Point instance.
Returns a list where all instances of PortView are replaced by their
correspnding Point instance.
Returns a copy of the receiver, but with the source being newSource.
Collapses all groups by hiding all their descendants.
Specified the initial x- and y-scaling factor for initial collapsed group
bounds.
Specified the initial x- and y-scaling factor for initial collapsed group
bounds.
Messages to stop the editing session.
Stops the editing session.
Invoked from installUI after all the defaults/listeners have been
installed.
Updates the preferred size when scrolling (if necessary).
Listens for Component events.
Connect edge
to port
passed in.
Connects or disconnects the edge and port in this model based on
remove
.
Connect edge
to source
and
target
in the connection set.
Connect or disconnect edge
from source
and
target
in cs
based on
disconnect
.
Key for the connectable
attribute.
True if the graph allows new connections to be established.
Object that represents the connection between an edge and a port.
Constructs a new source or target connection between
edge
and port
based on the value of
source
Contents of the connection set.
Returns an Iterator
for the connections in this set.
An object that represents a set of connections.
Constructs an empty ConnectionSet.
Constructs a ConnectionSet with one Connection.
Constructs a ConnectionSet with two Connections (to the source and target
port of the edge).
Constructs a connection set containing the specified connections and
updates the set of changed edges.
Hook method to constrain a mouse drag
Key for the constrained
attribute.
Returns true
if node
or one of its
ancestors is in the model.
Returns true
if node
or one of its
ancestors is contained in this object and visible in the original graph.
Returns true
if node
or one of its
ancestors is in the model.
Returns true if the given vertices are conntected by a single edge in
this document.
Converts an relative label position (x is distance along edge and y is
distance above/below edge vector) into an absolute co-ordination point
Converts the specified value to string.
Returns a connection set that represents the connection or disconnection
of cells
in model
based on
disconnect
.
Returns a parent map that represents the insertion or removal of
cells
in model
based on remove
.
Hook for subclassers to avoid creating an empty AttributeMap during
construction of the instance.
Overloaded method that passes arguments on as arrays
Overloaded method that passes arguments on as arrays
Returns a new (nested) map, from cells to attribute maps.
Returns a new map, from cells to property maps.
Returns an attributeMap for the specified position and color.
Utility method to create a standard buffered image
Creates a listener to handle events from the current editor.
Returns the renderer pane that renderer components are placed in.
Creates and returns a new ComponentHandler.
Creates the container to manage placement of editingComponent.
Constructs an EdgeView view for the specified object.
Constructs an EdgeView view for the specified object.
This is invoked if a TreeCellEditor is not supplied in the constructor.
Returns a listener that can update the graph when the view changes.
Returns a listener that can update the graph when the model changes.
Creates the listener that updates the display based on selection change
methods.
Constructs the "root handle" for context
.
Creates the listener reponsible for getting key events from the graph.
Paint the current view's direction.
Creates a local edit for the specified change.
Creates the listener responsible for calling the correct handlers based
on mouse events, and to select invidual cells.
Returns a nested map of (cell, map) pairs that represent all attributes
of all cell views in this view.
Creates a point of suitable type for this attribute map
Creates a point of suitable type for this attribute map with the same
values as those passed in
Creates a point of suitable type for this attribute map with the same
values as the point passed in
Constructs a PortView view for the specified object.
Constructs a PortView view for the specified object.
Creates a listener that is responsible to update the UI based on how the
graph's bounds properties change.
Creates a rectangle of suitable type for this attribute map
Creates a rectangle of suitable type for this attribute map with the same
values as those passed in
Creates a rectangle of suitable type for this attribute map
Creates a rectangle of suitable type for this attribute map at the
position of the point passed in
Creates a rectangle of suitable type for this attribute map at the
position of the point passed in with lengths size
Clones the rectangle passed in
Creates a clone of the rectangle passed in and manipulates it by
grow1
and grow2
Returns an edit that represents a remove.
Returns the shape that represents the current edge in the context of the
current graph.
Returns an new consistent array of views for cells
.
Returns an new consistent array of views for the edges that are connected
to and not contained in cells
.
Returns an new consistent array of views for the edges that are connected
to and not contained in cellSet
.
Returns an new consistent array of views for the ports.
Creates an instance of TransferHandler.
Constructs a VertexView view for the specified object.
Constructs a view for the specified cell and associates it
with the specified object using the specified CellMapper.
Constructs a view for the specified cell and associates it with the
specified object using the specified CellMapper.
Object that describes the connection between cells.
Holds the index of the current (editing) label or point.
Holds the index of the current (editing) label or point.
Array that holds the cursors for the different control points.
Returns the absolute position of the specified extra label
Returns the absolute position of the main label
Converts relative label position to absolute and allows for
any label offset.
Returns all cells of the model in an array.
Returns the attributes of the view combined with the attributes of the
corresponding cell.
Returns all views, including descendants that have a parent in
views
, especially the PortViews.
Returns all views, shortcut to getAllDescendants(getRoots())
Returns the anchor of this port.
Returns the anchor of the port.
Returns a map of (GraphCell, Map)-pairs that represent the
view attributes for the respecive cells.
Return the attributes of the view.
Returns all attributes of the view as a map.
Returns the properies of the cell.
Returns the graph model's attribute.
Returns a map of (object, view attributes).
Returns the attributes
of the cell.
Returns a map of (cell view, attribute) pairs.
Returns a map that contains (object, map) pairs which holds the new
attributes for each changed cell.
Returns a Map
that represents the attributes for the
specified cell.
Returns a AttributeMap
that represents the properties for
the specified cell.
Returns the attributes for the specified cell.
Returns the background attribute from the specified map.
Returns the background image.
Returns the beginsize attribute from the specified map.
Overrides JComponent.getBorder
to
returns the current border.
Returns the border attribute from the specified map.
Returns the bordercolor attribute from the specified map.
Returns the color the border is drawn.
Returns the cached bounds for the group if isleaf is false
Returns the bounds for the view.
Returns the location for this edgeview.
Returns the bounds for the port view.
Returns the cached bounds for the vertex.
Returns the bounds attribute from the specified map.
Returns the bounds of the edge shape.
Returns the bounding box for the specified views.
Returns the bounding box for the specified cell views.
Returns the model object that this view represents.
Returns the model object that this view represents.
Hook for subclassers to avoid cloning the cell's attributes.
Returns the bounding rectangle of the specified cell.
Returns the bounding rectangle of the specified cells.
Returns the value currently being edited.
Returns the array that was passed to the constructor.
Returns the cells that have been added or removed from the selection.
Returns the cells
that represent the selection.
A helper method to return various arrays of cells that are visible in
this cache.
Takes an array of views and returns the array of the corresponding cells
by using getCell
for each view.
Returns the center of the component relative to the parent viewport's
position.
Returns the object that constitutes the change.
Returns the object that constitutes the change.
Returns the cells that have changed.
Returns the cells that have changed.
Returns the cell views that have changed.
Returns the cells that have changed.
Returns a Set
for the edges in this connection set.
Returns a Set
for the nodes, childs and parents, in this
parent map.
Returns the child of the relation.
Returns the child of parent at index index in the
parent's child array.
Returns the child of parent at index index in the
parent's child array.
Returns the number of children of parent .
Returns the number of children of parent .
Hook for subclassers to return the port to be used for edges that have
been connected to the group.
Provides access to the children list to change ordering.
Returns the child views of this view.
Returns the child views of this view.
A shortcut method to create a connection set that represents the
connections in this model.
Returns the connectionSet.
Returns a connection set representing the graph structure after the
change was applied
Returns a connection set representing the graph structure after the
change was applied
Returns the connections between cells
(and possibly
other, unselected cells).
Returns the objects that have not changed explicitly, but implicitly
because one of their dependent cells has changed.
Returns the views that have not changed explicitly, but implicitly
because one of their dependent cells has changed.
Returns the objects that have not changed explicitly, but implicitly
because one of their dependent cells has changed.
Hook for subclassers to augment the context for a graphChange.
Returns the currentPoint.
Returns the dashoffset attribute from the specified map.
Returns the dashpattern attribute from the specified map.
Returns the default portview for the specified cell.
Returns the number of all objects (cells and children) in this object.
Returns all cells
including all descendants in the passed
in order of cells.
Flattens the given array of root cells by adding the roots and their
descandants.
Returns all views, including descendants that have a parent in
views
without the PortViews.
Returns the dirty region for the original position of the
changed cells before the change happened.
Returns the dirty region for the original position of the
changed cells before the change happened.
Returns the current drop action.
Returns the current drop action.
Returns the first derivation at x.
Returns the edge of the connection.
Getter to obtain the distance between intermediate and source/target
points
Returns true if edge labels may be dragged and dropped.
Returns the collection of edges connected to this port.
Returns the incoming or outgoing edges for cell.
Returns the incoming or outgoing edges for cell.
Returns the set of all connected edges to cells
or their
descendants.
Returns the edges between two specified ports or two specified vertices.
Getter to obtain the distance between each parallel edge
Returns the number of clicks for editing to start.
Returns the cell that is currently being edited.
Returns the element that is being edited.
Returns the cell that is being edited.
Returns a cell editor for the view.
Returns a cell editor for the view.
Subclassers may override this to provide a better location for the
in-place editing of edges (if you do not inherit from the EdgeRenderer
class).
Returns the endsize attribute from the specified map.
Returns the label bounds of the specified view in the given graph.
Returns a point that describes the position of the label.
Returns the label position of the specified view in the given graph.
Returns the extralabelpositions attribute from the specified map.
Returns the additional label objects from the specified map.Extra labels
only work with edges currently.
Returns the label size of the specified view in the given graph.
Returns the factory that was passed to the constructor.
Returns an interpolated value.
Returns the topmost cell at the specified location.
Returns the cell that has the focus.
Gets the font used for editing.
Returns the font for the specified attribute map.
Returns the foreground attribute from the specified map.
Returns the gradientcolor attribute from the specified map.
Returns the graph that was passed to the constructor.
Sets an initial value for the editor.
Returns the GraphLayoutCache
that is providing the
view-data.
Return an array of all GraphLayoutCacheListener that were added to this
model.
Return an array of all GraphModelListeners that were added to this model.
Returns the current grid color.
Returns the current grid view mode.
Returns the size of the grid in pixels.
Returns the handle that is currently active, or null, if no handle is
currently active.
Returns the CellHandle
that is currently active,
or null
if no handle is active.
Returns a cell handle for the view.
Returns a cell handle for the view.
Returns a cell handle for the view.
Returns a cell handle for the view, if the graph and the view are
sizeable.
Returns the current handle color.
Returns the size of the handles.
Returns the hiddenMapping.
Returns the current highlight color.
Returns the horizontalalignment attribute from the specified map.
Returns the horizontaltextposition attribute from the specified map.
Fetch the data in a text/html format
Fetch the data in a text/html format.
Returns the icon attribute from the specified map.
Returns a BufferedImage
for the graph using inset as an empty
border around the cells of the graph.
Returns the incoming edges for cell.
Returns the incoming edges for cell.
Returns the index of child in parent.
Returns the index of child in parent.
Returns the index of root
in the model.
Returns the index of root
in the model.
Returns the initial location, which is the top left corner of the
selection, ignoring all connected endpoints of edges.
Returns the cells that were inserted.
Returns the cells that have changed.
Returns the cells that habe been made visible.
Returns the cells that have been inserted.
Returns the current location of the Drag-and-Drop activity.
Returns the insertion location for DnD operations.
Hook method to determine offset of cells cloned via the clipboard
Returns the inset attribute from the specified map.
Returns the indicator that tells what happens when editing is
interrupted.
Returns the label bounds of the specified view in the given graph.
Returns the label bounds of the specified view in the given graph.
Returns a point that describes the position of the label.
Returns the label position attribute from the specified map.
Returns the label position of the specified view in the given graph.
Returns the label position of the specified view in the given graph.
Returns the label size of the specified view in the given graph.
Hook to return the vector that is taken as the base vector to compute
relative label positions.
Returns the next view at the specified location wrt.
Returns the LINEBEGIN attribute from the specified map.
Returns the linecolor attribute from the specified map.
Returns the LINEEND attribute from the specified map.
Returns the linestyle attribute from the specified map.
Returns the linewidth attribute from the specified map.
Returns the link for the specified attribute map.
Returns an array of all the listeners of the given type that were added
to this model.
Shortcut method to getLocation(null, null)
For backwards compatibility.
Returns the point that the port represents with respect to
edge
and point
, which is the nearest point
to this port view on the edge.
Returns the current second handle color.
Returns the view that is associated with cell
.
Returns the CellView
that is mapped to cell
in the graph context.
Returns the view for the specified cell.
Returns the views for the specified array of cells without creating these
views on the fly.
Returns the views for the specified array of cells.
Returns the marqueeBounds.
Returns the current marquee color.
Returns the MarqueeHandler
that will handle marquee
selection.
Returns the maximum size for this component, which will be the preferred
size if the instance is currently in a JGraph, or 0, 0.
Returns the miminum amount of pixels for a move operation.
Returns the minimum size for this component.
Returns the current model.
Returns the GraphModel
that is providing the data.
Returns the moveableaxis attribute from the specified map.
Returns the nearest point wrt to the source or target.
Returns a collection of cells that are connected to the specified cell by
edges.
Returns the cell at the specified location that is "behind" the
current
cell.
Note: Arguments are not expected to be scaled (they are scaled in here).
Returns the next view at the specified location wrt.
Returns the next view at the specified location wrt.
Returns the next view at the specified location wrt.
Returns the next view at the specified location wrt.
Returns the current double buffering graphics object.
Returns the offset attribute from the specified map.
Returns the outgoing edges for cell.
Returns the outgoing edges for cell.
Returns the bounds of the edge shape without label
Getter to obtain the list of parallel edges
Returns the parent of the relation.
Returns the parent of child in the model.
Returns the parent of child in the model.
Returns the list that exclusively contains view
.
Returns a parent map representing the group structure after the
change was applied
Hook for subclassers to return the first or last visible port to replace
the current source or target port of the edge.
Returns the parent view for this view.
Returns the parent of view of this view.
This method ensures a non-null value.
Required for XML persistence
Returns the intersection of the bounding rectangle and the straight line
between the source and the specified point p.
Returns the intersection of the bounding rectangle and the straight line
between the source and the specified point p.
Returns the intersection of the bounding rectangle and the straight line
between the source and the specified point p.
Returns the intersection of the bounding rectangle and the straight line
between the source and the specified point p.
Returns the intersection of the bounding rectangle and the straight line
between the source and the specified point p.
Fetch the data in a text/plain format.
Fetch the data in a text/plain format.
Returns the bezier points at position i.
Returns the cached points for this edge.
Returns the number of bezier points.
Returns the number of point for this edge.
Returns the point of edge
at index
.
Returns the calculated bezier points.
Returns the points attribute from the specified map.
Returns the port of the connection.
Returns the source or target of the specified edge in this connection set
or null if the connection set contains no corresponding entry for the
edge.
Convenience method to return the port at the specified location.
Returns the ports of the view.
Returns the portview at the specified location.
Returns the portview at the specified location.
Returns the preferred line style for this routing.
Returns the minimum preferred size.
Returns the preferred display size of a JGraph
.
Returns the preferred size for the Container.
Returns the preferred size to properly display the graph.
Get the preferred Size for a cell view.
Returns the preferred size for view
.
Returns a map that contains (object, map) pairs of the attributes
that have been stored in the model.
Returns a map of (cell view, attribute) pairs.
Returns a map that contains (object, map) pairs which holds the
previous attributes for the changed cells.
Returns a connection set representing the graph structure before the
change was applied ( an "undo" of the change).
Returns a connection set representing the graph structure before the
change was applied ( an "undo" of the change).
Returns the previousCursor.
Returns a parent map representing the group structure before the
change was applied ( an "undo" of the change )
Returns a parent map representing the group structure before the
change was applied ( an "undo" of the change )
Returns the attribute marked as for removal in the specified map.
Returns the cells that were inserted.
Returns the cells that have changed.
Returns the cells that have changed.
Returns the cells that have been removed.
Obtains the renderer instance for this view
Returns a renderer for the class.
Returns a renderer for the class.
Returns a renderer for the class.
Returns a renderer component, configured for the view.
Returns a renderer component, configured for the view.
Configure and return the renderer based on the passed in
components.
Configure and return the renderer based on the passed in components.
Configure and return the renderer based on the passed in components.
Configure and return the renderer component based on the passed in cell.
Fetch the data in a jvm-localreference format.
Some subclasses will have flavors that are more descriptive than HTML
or plain text.
Returns the jvm-localreference flavors of the transferable.
Returns the root at index index in the model.
Returns the root at index index in the model.
Returns the number of roots in the model.
Returns the number of roots in the model.
Returns the roots of the view.
Returns all root cells (cells that have no parent) that the model
contains.
Returns the roots of the specified model as an array.
Returns the roots in cells
by checking if their parent is
null
.
Returns all cells that intersect the given rectangle.
Return all root cells that intersect the given rectangle.
Returns the roots of the specified model as a collection.
Returns the routing attribute from the specified map.
Returns the current scale.
Returns the amount for a block increment, which is the height or width of
visibleRect
, based on orientation
.
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.
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.
Returns the amount to increment when scrolling.
Returns the JScrollPane housing the JGraph, or null if one isn't
found.
Returns the cells that are currently selectable.
Returns the cells that are currently selectable.
Returns the number of selected childs for cell
.
Returns the first cell in the selection.
Returns the first cell in the selection.
Returns the first selected cell.
Returns the selection cell at the specified location.
Returns the cells in the selection.
Returns the cells in the selection.
Returns all selected cells.
Returns all selected cells in cells
.
Returns the number of paths that are selected.
Returns the number of cells that are selected.
Returns the number of cells selected.
Returns the selection mode, one of SINGLE_TREE_SELECTION
,
DISCONTIGUOUS_TREE_SELECTION
or
CONTIGUOUS_TREE_SELECTION
.
Returns the current selection mode, either
SINGLE_GRAPH_SELECTION
or
MULTIPLE_GRAPH_SELECTION
.
Returns the model for selections.
Returns the shape of the view according to the last rendering state
Getter for singleton managing parallel edges
Returns the size attribute from the specified map.
Returns the sizeableAxis attribute from the specified map.
Returns the source of the edge.
Returns the source of this change.
Returns the source of this change.
Returns the source of the edge.
Returns the CellView that represents the source of the edge.
Returns the source of this change.
Returns the source of this change.
Returns the source of edge
.
Returns the source of edge
.
Returns the source vertex of the edge by calling getParent on getSource
on the specified model.
Returns the target of the edge.
Returns the target of the edge.
Returns the CellView that represents the target of the edge.
Returns the target of edge
.
Returns the target of edge
.
Returns the target vertex of the edge by calling getParent on getTarget
on the specified model.
Returns the maximum distance between the mousepointer and a cell to be
selected.
Overrides JComponent
'sgetToolTipText
method in order to allow the graph to create a tooltip for the topmost
cell under the mousepointer.
Returns the topmost cell view at the specified location using the view's
bounds on non-leafs to check for containment.
Returns an object which represents the data to be transferred.
Returns an array of DataFlavor objects indicating the flavors the data
can be provided in.
Returns the L&F object that renders this component.
Returns the name of the L&F class that renders this component.
Returns an interpolated value.
Returns the value attribute from the specified map.
Returns the user object for the specified cell.
Returns the verticalalignment attribute from the specified map.
Returns the verticaltextposition attribute from the specified map.
Return the bounds of the parent viewport, if one exists.
Returns the views that have not changed explicitly, but implicitly
because one of their dependent cells has changed.
Allows a GraphLayoutCache
to retrieve an array of
CellViews
that was previously stored with
putViews(GraphLayoutCache, CellView[])
.
Returns a an array with the visible cells in cells
.
The gradient color of the edge
Key for the gradient
attribute.
Component that we're going to be drawing into.
JTree instance listening too.
Reference to the parent graph.
Cache the current graph for drawing
Reference to the parent graph.
Bound property name for graphModel
.
Bound property name for graphModel
.
Cache the current graph background.
Defines the requirements for objects that appear as
GraphCells.
Adds to CellEditor the extensions necessary to configure an editor
in a graph.
Invoked after a cell has changed in some way.
Called from BasicGraphUI.ModelHandler to update the view based on the
specified GraphModelEvent.
A collection of well known or common attribute keys and methods to apply to
an Map to get/set the properties in a typesafe manner.
Constructs a graph context for cells
with respect to the
connections defined in the model, and the views in the view of
graph
.
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).
Graph Drop Target Listener
GraphIncrementAction is used to handle up/down actions.
Reference to the graph's view (geometric pattern).
Reference to the graphs GraphLayoutCache.
The view that defines the display properties of the model.
An object that defines the view of a graphmodel.
Constructs a graph layout cache.
Constructs a view for the specified model that uses factory
to create its views.
Constructs a view for the specified model that uses factory
to create its views.
Constructs a view for the specified model that uses factory
to create its views.
Defines the interface for objects that may be used to represent a change
to the graph layout cache.
Invoked after a cell has changed in some way.
Invoked after a cell has changed in some way.
An implementation of GraphLayoutCacheChange.
Constructs a GraphViewEdit.
Constructs a GraphViewEdit.
Encapsulates information describing changes to a graph layout cache, and is
used to notify graph layout cache listeners of the change.
Used to create an event when cells have been changed, inserted, or
removed, identifying the change as a GraphLayoutCacheChange object.
Listens for changes in the graph view and updates the size accordingly.
Updates the display when the view has changed.
Defines the interface for an object that listens to changes in a GraphModel.
Used to determine what to display.
Reference to the graphModel
The model that defines the graph displayed by this object.
The interface that defines a suitable data model for a JGraph.
Defines the interface for objects that may be included into a
GraphModelEvent to describe a model change.
An implementation of GraphModelChange that can be added to the model
event.
Constructs an edit record.
Encapsulates information describing changes to a graph model, and is used to
notify graph model listeners of the change.
Used to create an event when cells have been changed, inserted, or
removed, identifying the change as a ModelChange object.
Listens for changes in the graph model and updates the view accordingly.
An implementation of GraphViewChange.
Constructs a GraphModelEdit.
Is responsible for updating the view based on model events.
Defines the interface for an object that listens to changes in a GraphModel.
An event that characterizes a change in the current selection.
Represents a change in the selection of a GraphSelectionModel.
Listens for changes in the selection model and updates the display
accordingly.
Updates the display when the selection changes.
The listener that's notified when the selection in a GraphSelectionModel
changes.
Model maintaining the selection.
This interface represents the current state of the selection for
the graph component.
Handles creating a new GraphSelectionEvent
with the
JGraph
as the source and passing it off to all the
listeners.
An object that represents the clipboard contents for a graph selection.
Constructs a new transferable selection for cells
,
cs
and attrMap
.
Pluggable look and feel interface for JGraph.
An UndoManager that may be shared among multiple GraphLayoutCache's.
Bound property name for gridColor
.
Bound property name for gridSize
.
Bound property name for gridVisible
.
The color of the graph grid
True if the snap method should be active (snap to grid).
The size of the grid in points.
True if the grid is visible.
Cached bounds of all children if vertex is a group
Key for the groupOpaque
attribute.
True if the graph allows editing of non-leaf cells.
Key for the icon
attribute.
This is used to exclude certain cell views from the group bounds
computation.
Should return true if the passed in location is a valid mouse location
to start editing from.
Holds the initial location of the label.
Inserts the specified vertex into the graph model.
Inserts the specified cells into the graph model.
Variant of the insert method that allows to pass a default connection set
and parent map and nested map.
Inserts the roots
and connections into the model.
Inserts the cells
and connections into the model, and
absorbs the local attributes.
Inserts the cells
and connections into the model, and
passes attributes
to the views.
Inserts the cloned cells from the clone map and clones the passed-in
arguments according to the clone map before insertion and returns the
clones in order of the cells.
Inserts the specified edge into the graph model.
Inserts the specified cell as a parent of children.
Needed to exchange information between Transfer- and MouseListener.
Adds the specified model root cells to the view.
Key for the inset
attribute.
Installs the attributes of specified cell in this renderer instance.
Install the attributes of specified cell in this renderer instance.
Intalls the subcomponents of the graph, which is the renderer pane.
Invoked as part from the boilerplate install block.
Invoked as part from the boilerplate install block.
Invoked as part from the boilerplate install block.
Returns true if the edge shape intersects the given rectangle.
Returns true if the view intersects the given rectangle.
Returns true if the view intersects the given rectangle.
Returns true if this view intersects the given rectangle.
Resets the cached values of the edge view
Bound property name for messagesStopCellEditing
.
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.
Returns the absolutex attribute from the specified map.
Returns the absolutey attribute from the specified map.
Returns true if the first cell has been added to the selection, a return
value of false means the first cell has been removed from the selection.
Returns true if the cell identified by index
was added to
the selection.
Returns true if the cell identified by cell was added to the selection.
Returning true signifies a mouse event adds a new point to an edge.
Returning true signifies that cells are added to the selection.
Returns true if the graph will be anti aliased.
Returns true if the graph should be automatically resized when cells are
being moved below the bottom right corner.
Returns the autosize attribute from the specified map.
Returns true if cells should be auto-sized when their values change
Returns the beginfill attribute from the specified map.
Returns true if the graph allows adding/removing/modifying points.
Returns the bendable attribute from the specified map.
If the realEditor returns true to this message, prepareForEditing
is messaged and true is returned.
Returns true
if the graph and the cell are editable.
Returns true if the cell, cell
, is in the current
selection.
Returns true if the cell, cell
, is in the current
selection.
Returns true if the cell is currently selected.
Returns true if the selection model allows the selection of children.
Returns true if the selection model allows the selection
of children.
Returns the childrenselectable attribute from the specified map.
Hook for subclassers for fine-grained control over stepping-into cells.
Returns true if the cell, cell
, has selected children.
Returns true if the cell, cell
,
has selected children.
Returns true if cells are cloned on CTRL-Drag operations.
Returns true if the graph allows new connections to be established.
Returns the connectable attribute from the specified map.
Returns the constrained attribute from the specified map.
Returning true signifies a move should only be applied to one direction.
Returns true if key
is a control attribute
Returns whether or not the specified data flavor is supported for
this object.
Returns true if the graph allows existing connections to be removed.
Returns the disconnectable attribute from the specified map.
Returns true if selected edges should be disconnected from unselected
vertices when they are moved.
Cached value of the double buffered state
Returns true if the graph uses Drag-and-Drop to move cells.
Indicates whether this handle has started drag and drop.
Returns true if the graph accepts drops/pastes from external sources.
Returns true
if edge
is a valid edge.
Returns true
if edge
is a valid edge.
Returns true if the graph is editable (if it allows cells to be edited).
Returns the editable attribute from the specified map.
Returns true if the graph is being edited.
Returns true if the graph is being edited.
Returns true if the graph is being edited.
Returns true
if the connection set is empty.
Returns true
if this object contains no cells.
Returns the endfill attribute from the specified map.
Returning true signifies the marquee handler has precedence over other
handlers, and is receiving subsequent mouse events.
Returns true if the grid is active.
Returns true if the grid will be visible.
Checks whether the cell has at least one child which is not a port.
Returns the opaque attribute from the specified map.
Returns the hidesDanglingConnections.
Returns the hidesExistingConnections.
Returns whether or not the specified data flavor is an HTML flavor that
is supported.
Whether the HTML flavors are offered.
Returns true if the transferable support a text/html format.
True if getPortViewAt should return the default port if no other port is
found.
Returns true if getPortViewAt should return the default port if no other
port is found.
Set to true while keyPressed is active.
Returns the true if the label should be painted along the edge.
Returns true
if the view is a leaf.
Returns true if the view is a leaf.
Returns whether the specified node is a leaf node.
Returns whether the specified node is a leaf node.
Returns true if the set of local attributes contains key
Returns true if the edge is a loop.
Returns the moveable attribute from the specified map.
Boolean attributes of the current edgeview.
Returns true if the graph allows to move cells below zero.
Specifies if cells should be added to a group when moved over the group's
area.
Returns true if cells should be added to groups when moved over the
group's area.
Specifies if cells should be removed from groups when removed from the
group area.
Returns true if cells should be removed from groups when removed from the
group's area.
Indicates whether this handle is currently moving cells.
Returns the opaque attribute from the specified map.
Returns whether or not the specified data flavor is an plain flavor that
is supported.
Whether the plain text flavors are offered.
Returns true if the transferable support a text/plain format.
Returns true
if port
is a valid port,
possibly supporting edge connection.
Returns true
if port
is a valid port,
possibly supporting edge connection.
Returns true if the ports will be scaled.
Returns true if the ports will be visible.
Returns true if graph allows invalid null ports during previews
Returns the remembersCellViews.
Returns the removeall attribute from the specified map.
Returning true signifies a mouse event removes a given point.
Returns the resize attribute from the specified map.
Returns the selectable attribute from the specified map.
Returns true if the selection is currently empty.
Returns true if the selection is currently empty.
Returns true if the selection is currently empty.
Returns true if the cell selection is enabled
Returns the showsExistingConnections.
Returns the showsInsertedConnections.
Returns true if the graph allows cells to be resized.
Returns the sizeable attribute from the specified map.
Indicates if port
is the source of edge
.
Returns true
if port
is the source of
edge
.
Returns whether or not the specified data flavor is a String flavor that
is supported.
Returning true signifies a mouse event on the cell should toggle the
selection of only the cell under mouse.
Returns true
if vertex
is a valid vertex.
Returns true if the graph accepts drops/pastes from external sources.
called to save the state of a component in case it needs to
be restored because a drop is not performed.
called to save the state of a component in case it needs to be
restored because a drop is not performed.
Scale view
(group) by sx, sy
.
Scales map
by the given amount.
Bound property name for scale
.
ScrollBar that is being adjusted.
Border in pixels to scroll if marquee or dragging are active.
Scrolls to the specified cell.
Makes sure the specified point is visible.
Multiplicator for width and height when autoscrolling (=stepsize).
Selects a single cell and updates all datastructures.
Key for the selectable
attribute.
Messaged to update the selection based on a MouseEvent over a particular
cell.
Messaged to update the selection based on a MouseEvent for a group of
cells.
Messaged to update the selection based on a MouseEvent for a group of
cells.
Value that represents selected state in cellStates.
Boolean attributes of the current edgeview.
Cached hasFocus and selected value.
Cached hasFocus and selected value.
List that contains the selected items.
Property name for selectionMode.
Bound property name for selectionModel
.
True if the graph allows selection of cells.
Bound property name for selectionEnabled
.
Mode for the selection, will be either SINGLE_TREE_SELECTION,
CONTIGUOUS_TREE_SELECTION or DISCONTIGUOUS_TREE_SELECTION.
Models the set of selected objects in this graph.
Creates a new event and passes it off the selectionListeners
.
Boolean indicating whether inserted cells should automatically be
selected.
Boolean indicating whether cells that are inserted using the local insert
method should automatically be selected.
Sets the absolute attributes in the specified map to the specified value.
Sets the absolutex attribute in the specified map to the specified value.
Sets the absolutey attribute in the specified map to the specified value.
Sets the anchor of this port.
Sets the anchor of the port.
Sets antialiasing on or off based on the boolean value.
Sets the attributes of this view to the specified value
Sets whether or not the graph should be automatically resize when cells
are being moved below the bottom right corner
Sets the autosize attribute in the specified map to the specified value.
Determines whether cells should be auto-sized when their values change.
Override parent to clear offscreen double buffer
Sets the background attribute in the specified map to the specified
value.
Sets the background image.
Sets the beginfill attribute in the specified map to the specified value.
Sets the beginsize attribute in the specified map to the specified value.
Sets if the graph allows adding/removing/modifying points.
Sets the bendable attribute in the specified map to the specified value.
Sets the border attribute in the specified map to the specified value.
Sets the bordercolor attribute in the specified map to the specified
value.
Sets the color to use for the border.
Sets the bounds attribute in the specified map to the specified value.
Sets the bounds of this view
.
Sets the model object that this view represents to the specified cell
Sets if the selection model allows the selection of children.
Sets if the selection model allows the selection
of children.
Sets the childrenselectable attribute in the specified map to the
specified value.
Sets if cells are cloned on CTRL-Drag operations.
Collapses and/or expands the specified cell(s)
Setse if the graph allows new connections to be established.
Sets the connectable attribute in the specified map to the specified
value.
Sets the constrained attribute in the specified map to the specified
value.
Sets the dashoffset attribute in the specified map to the specified
value.
Sets the dashpattern attribute in the specified map to the specified
value.
In some cases the class firing this event will not have access
to the dirty region prior to the change.
In some cases the class firing this event will not have access
to the dirty region prior to the change.
Sets if the graph allows existing connections to be removed.
Sets the disconnectable attribute in the specified map to the specified
value.
Sets if selected edges should be disconnected from unselected vertices
when they are moved.
Sets if the graph uses Drag-and-Drop to move cells.
Sets if the graph accepts drops/pastes from external sources.
Setter to define distance between intermediate and source/target points
Set if edge labels may be moved with the mouse or not.
Sets the collection of edges connected to this port.
Setter to define distance between each parallel edge
Determines whether the graph is editable.
Sets the editable attribute in the specified map to the specified value.
Sets the number of clicks for editing to start.
Sets the endfill attribute in the specified map to the specified value.
Sets the endsize attribute in the specified map to the specified value.
Sets the description of the label position.
Sets the labelpositions attribute in the specified map to the specified
value.
Sets the array of additional labels.
Sets the factory that creates the cell views.
Sets the font to edit with.
Sets the value attribute in the specified map to the specified font
value.
Sets the foregrund attribute in the specified map to the specified value.
Sets the gradientcolor attribute in the specified map to the specified
value.
Sets the tree currently editing for.
Sets the GraphLayoutCache (geometric pattern).
Sets the GraphLayoutCache
that will provide the view-data.
Sets the current grid color.
If set to true, the grid will be active.
Sets the current grid view mode.
Sets the size of the grid.
If set to true, the grid will be visible.
Sets the opaque attribute in the specified map to the specified value.
Sets the current handle color.
Sets the size of the handles.
Sets the hidesDanglingConnections
Sets the hidesExistingConnections
Sets the current selection highlight color.
This method set the position of the label in vertex cells, and takes
aruguments of type SwingConstants (for JLabel) i.e.
This method set the text of a label on vertext cell relative to image.
Sets the icon attribute in the specified map to the specified value.
Sets the current location for Drag-and-Drop activity.
Sets the current location for Drag-and-Drop activity.
Sets the inset attribute in the specified map to the specified value.
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.
Sets if getPortViewAt should return the default port if no other port is
found.
Sets if the label should be painted along the edge.
Sets the label position attribute in the specified map to the specified
value.
Sets the description of the label position.
Sets the LINEBEGIN attribute in the specified map to the specified value.
Sets the linecolor attribute in the specified map to the specified value.
Sets the LINEEND attribute in the specified map to the specified value.
Sets the linestyle attribute in the specified map to the specified value.
Sets the linewidth attribute in the specified map to the specified value.
Sets the link attribute in the specified map to the specified value.
Sets the current second handle color.
Sets the marquee handler.
Sets the current marquee color.
Sets the MarqueeHandler
that will handle marquee
selection.
Sets the miminum amount of pixels for a move operation.
Sets the GraphModel
that will provide the data.
Sets if the graph allows movement of cells.
Sets the moveable attribute in the specified map to the specified value.
Sets the moveableaxis attribute in the specified map to the specified
value.
Sets if the graph should auto resize when cells are being moved below the
bottom right corner.
Specifies if cells should be added to groups when moved over the group's
area.
Specifies if cells should be removed from groups when removed from the
group's area.
Sets the offset attribute in the specified map to the specified value.
Sets the opaque attribute in the specified map to the specified value.
Sets the parent of the specified cell.
Sets the point at index
to p
.
Sets the points attribute in the specified map to the specified value.
If set to true, the ports will be scaled.
If set to true, the ports will be visible.
Sets the preferred minimum size.
Determines whether the graph allows invalid null ports during previews
Sets the rememberCellViews.
Sets the removeall attribute in the specified map to the specified value.
Sets specific attributes are being marked for removal @ param map The
transport map indicating the attribute removal @ param value The
attributes to be removed
Sets the resize attribute in the specified map to the specified value.
Sets the routing attribute in the specified map to the specified value.
Sets the current scale and centers the graph to the specified point
Sets the selectable attribute in the specified map to the specified
value.
Sets the number of selected childs for cell
to
count
.
Selects the specified cell.
Sets the selection to cell.
Selects the specified cell.
Sets the selection to cells
.
Sets the selection to cells.
Selects the specified cells.
A null
implementation that selects nothing.
Determines whether cell selection is enabled.
Sets the selection mode, which must be one of SINGLE_TREE_SELECTION,
Sets the selection model, which must be either
SINGLE_GRAPH_SELECTION or MULTIPLE_GRAPH_SELECTION.
Resets the selection model.
Sets the graph's selection model.
Sets the showsExistingConnections
Sets the showsInsertedConnections
Sets the size attribute in the specified map to the specified value.
Sets if the graph allows cells to be resized.
Sets the sizeable attribute in the specified map to the specified value.
Sets the sizeableAxis attribute in the specified map to the specified
value.
Sets the mode of the snapSelectedView drag operation.
Sets the source of the edge.
Sets the source of the edge.
Sets the sourceView
of the edge.
Helper methods that connects the source of edge
to
port
in model.
Returns the target of edge
.
Returns the target of edge
.
Sets the targetView
of the edge.
Helper methods that connects the source of edge
to
port
in model.
Sets the maximum distance between the mousepointer and a cell to be
selected.
Sets the L&F object that renders this component.
Utility method that initialises the offscreen graphics area
Sets the value attribute in the specified map to the specified value.
Set values for this Spline.
This method set the position of the label in vertex cells, and takes
aruguments of type SwingConstants (for JLabel) i.e.
This method set the text of a label on vertext cell relative to image.
Makes the specified cell visible or invisible depending on the flag
passed in.
Makes the specified cells visible or invisible depending on the flag
passed in.
Changes the visibility state of the cells passed in.
Changes the visibility state of the cells passed in.
The actual implementation of changing cells' visibility state.
Sets if the graph accepts drops/pastes from external sources.
Singleton to reach parallel edge router
Returns a shared instance of an empty selection model.
Subclassers can override this to decide whether or not "port magic"
should appear on a given edge.
Messages the realEditor for the return value.
Returns true if event
is a MouseEvent and the click
count is 1.
Shows the specified cells with all children if descandants
is true.
Boolean indicating whether connections should be made visible when
reconnected and their source and target port is visible.
Boolean indicating whether existing connections should me made visible if
their sources or targets are made visible, given the opposite end of the
edge is already visible or made visible, too.
Boolean indicating whether inserted edges should me made visible if their
sources or targets are already visible.
A switch for painting the extra labels
Selection can only contain one cell at a time.
Key for the size
attribute.
Default size for all ports is 6.
Returns the number of (edge, port)-pairs.
Returns the number of entries.
Key for the sizeable
attribute.
True if the graph allows cells to be resized.
Key for the sizeableAxis
attribute.
Returns the given dimension applied to the grid.
Returns the given point applied to the grid.
Returns the given rectangle applied to the grid.
If ture, a the view under mousepointer will be snapped to the grid lines
during a drag operation.
Solves Ax=b and stores the solution in b.
Source that events are coming from.
Source and target of the edge.
Cached source and target portview of the edge.
Interpolates given values by B-Splines.
Interpolates points given in the 2D plane.
Will start editing for cell if there is a cellEditor and shouldSelectCell
returns true.
Selects the specified cell and initiates editing.
Selects the cell and tries to edit it.
Selects the cell and tries to edit it.
Creates, if necessary, and starts a Timer to check if need to resize
the bounds.
If the realEditor will allow editing to stop, the realEditor is
removed and true is returned, otherwise false is returned.
Ends the current editing session.
Stops the current editing session.
Stops the current editing session.
Set to false when editing and shouldSelectCell() returns true meaning the
node should be selected before editing, used in completeEditing.
Represents a bezier line style
Represents an orthogonal line style
Represents an spline line style