Package | Description |
---|---|
com.jgraph.algebra.cost |
JGraphLayout cost package defines a cost function and default implementations.
|
com.jgraph.components.labels | |
com.jgraph.io.svg | |
org.jgraph |
JGraph's topmost package which contains the JGraph class.
|
org.jgraph.event |
Contains event classes and listener interfaces that are used to react to events fired by JGraph.
|
org.jgraph.graph |
Graphs are made up of a number of classes and interfaces defined in their own
package - the
jgraph.graph package. |
org.jgraph.plaf |
Contains the GraphUI class which extends the Swing ComponentUI class.
|
org.jgraph.plaf.basic |
Contains the BasicGraphUI, which is GraphUI's default implementation.
|
org.jgraph.util |
Modifier and Type | Method and Description |
---|---|
static double |
JGraphDistanceCostFunction.getLength(CellView view) |
Modifier and Type | Class and Description |
---|---|
class |
MultiLineVertexView
Vertex view that supports
JGraphpadBusinessObject rendering and
in-place editing, that means it supports simple text, rich text and component
values. |
Modifier and Type | Method and Description |
---|---|
java.awt.Component |
MultiLineVertexRenderer.getRendererComponent(JGraph graph,
CellView view,
boolean sel,
boolean focus,
boolean preview)
Overrides the parent implementation to return the value component stored
in the user object instead of this renderer if a value component exists.
|
void |
MultiLineVertexRenderer.installAttributes(CellView view)
Extends the parent's method to configure the renderer for displaying the
specified view.
|
Modifier and Type | Method and Description |
---|---|
org.w3c.dom.Node |
SVGEdgeWriter.createNode(SVGGraphWriter writer,
org.w3c.dom.Document document,
CellView view,
double dx,
double dy) |
org.w3c.dom.Node |
SVGVertexWriter.createNode(SVGGraphWriter writer,
org.w3c.dom.Document document,
GraphLayoutCache cache,
CellView view,
double dx,
double dy)
Returns the SVG representation of the specified node.
|
java.lang.Object[] |
SVGGraphWriter.getLabels(CellView view)
Returns the labels for a graph cell as an object array.
|
void |
SVGVertexRenderer.installAttributes(CellView view) |
Modifier and Type | Method and Description |
---|---|
CellView |
JGraph.getLeafViewAt(double x,
double y)
Returns the next view at the specified location wrt.
|
CellView |
JGraph.getNextSelectableViewAt(CellView current,
double x,
double y)
Note: Arguments are not expected to be scaled (they are scaled in here).
|
CellView |
JGraph.getNextViewAt(CellView[] cells,
CellView c,
double x,
double y)
Returns the next view at the specified location wrt.
|
CellView |
JGraph.getNextViewAt(CellView[] cells,
CellView c,
double x,
double y,
boolean leafsOnly)
Returns the next view at the specified location wrt.
|
CellView |
JGraph.getNextViewAt(CellView current,
double x,
double y)
Returns the next view at the specified location wrt.
|
CellView |
JGraph.getNextViewAt(CellView current,
double x,
double y,
boolean leafsOnly)
Returns the next view at the specified location wrt.
|
CellView |
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.
|
Modifier and Type | Method and Description |
---|---|
CellView |
JGraph.getNextSelectableViewAt(CellView current,
double x,
double y)
Note: Arguments are not expected to be scaled (they are scaled in here).
|
CellView |
JGraph.getNextViewAt(CellView[] cells,
CellView c,
double x,
double y)
Returns the next view at the specified location wrt.
|
CellView |
JGraph.getNextViewAt(CellView[] cells,
CellView c,
double x,
double y)
Returns the next view at the specified location wrt.
|
CellView |
JGraph.getNextViewAt(CellView[] cells,
CellView c,
double x,
double y,
boolean leafsOnly)
Returns the next view at the specified location wrt.
|
CellView |
JGraph.getNextViewAt(CellView[] cells,
CellView c,
double x,
double y,
boolean leafsOnly)
Returns the next view at the specified location wrt.
|
CellView |
JGraph.getNextViewAt(CellView current,
double x,
double y)
Returns the next view at the specified location wrt.
|
CellView |
JGraph.getNextViewAt(CellView current,
double x,
double y,
boolean leafsOnly)
Returns the next view at the specified location wrt.
|
void |
JGraph.updateAutoSize(CellView view)
Computes and updates the size for
view . |
Modifier and Type | Method and Description |
---|---|
CellView[] |
GraphModelEvent.GraphModelChange.getViews(GraphLayoutCache view)
Allows a
GraphLayoutCache to retrieve an array of
CellViews that was previously stored with
putViews(GraphLayoutCache, CellView[]) . |
Modifier and Type | Method and Description |
---|---|
void |
GraphModelEvent.GraphModelChange.putViews(GraphLayoutCache view,
CellView[] cellViews)
Allows a
GraphLayoutCache to store cell views for
cells that have been removed. |
Modifier and Type | Class and Description |
---|---|
class |
AbstractCellView
The abstract base class for all cell views.
|
class |
EdgeView
The default implementation of an edge view.
|
class |
PortView
The default implementation of a port view.
|
class |
VertexView
The default implementation of a vertex view.
|
Modifier and Type | Field and Description |
---|---|
protected CellView[] |
GraphLayoutCache.GraphLayoutCacheEdit.context |
protected CellView[] |
VertexView.SizeHandle.contextViews |
protected CellView[] |
GraphLayoutCache.GraphLayoutCacheEdit.hidden |
protected CellView |
PortView.lastParent
Cache of the last valid parent.
|
protected CellView |
AbstractCellView.parent
Cached parent view
|
protected CellView[] |
VertexView.SizeHandle.portViews |
protected CellView |
EdgeView.source
Cached source and target portview of the edge.
|
protected CellView |
EdgeView.sourceParentView |
protected CellView |
EdgeView.target
Cached source and target portview of the edge.
|
protected CellView |
EdgeView.targetParentView |
Modifier and Type | Method and Description |
---|---|
CellView |
GraphContext.createMapping(java.lang.Object cell) |
CellView[] |
GraphContext.createTemporaryCellViews()
Returns an new consistent array of views for
cells . |
CellView[] |
GraphContext.createTemporaryContextViews()
Returns an new consistent array of views for the edges that are connected
to and not contained in
cells . |
CellView[] |
GraphContext.createTemporaryContextViews(java.util.Set cellSet)
Returns an new consistent array of views for the edges that are connected
to and not contained in
cellSet . |
CellView[] |
GraphContext.createTemporaryPortViews()
Returns an new consistent array of views for the ports.
|
CellView |
CellViewFactory.createView(GraphModel model,
java.lang.Object cell)
Constructs a view for the specified cell and associates it
with the specified object using the specified CellMapper.
|
CellView |
DefaultCellViewFactory.createView(GraphModel model,
java.lang.Object cell)
Constructs a view for the specified cell and associates it with the
specified object using the specified CellMapper.
|
CellView[] |
GraphLayoutCache.getAllDescendants(CellView[] views)
Returns all views, including descendants that have a parent in
views , especially the PortViews. |
CellView[] |
GraphLayoutCache.getAllViews()
Returns all views, shortcut to getAllDescendants(getRoots())
|
CellView[] |
GraphLayoutCache.getCellViews() |
CellView[] |
AbstractCellView.getChildViews()
Returns the child views of this view.
|
CellView[] |
CellView.getChildViews()
Returns the child views of this view.
|
static CellView[] |
AbstractCellView.getDescendantViews(CellView[] views)
Returns all views, including descendants that have a parent in
views without the PortViews. |
CellView[] |
GraphLayoutCache.getHiddenCellViews() |
CellView[] |
GraphLayoutCache.getMapping(java.lang.Object[] cells)
Returns the views for the specified array of cells without creating these
views on the fly.
|
CellView[] |
GraphLayoutCache.getMapping(java.lang.Object[] cells,
boolean create)
Returns the views for the specified array of cells.
|
CellView |
CellMapper.getMapping(java.lang.Object cell,
boolean create)
Returns the view that is associated with
cell . |
CellView |
GraphLayoutCache.getMapping(java.lang.Object cell,
boolean create)
Returns the view for the specified cell.
|
CellView |
GraphContext.getMapping(java.lang.Object cell,
boolean create)
Returns the
CellView that is mapped to cell
in the graph context. |
CellView |
AbstractCellView.getParentView()
Returns the parent view for this view.
|
CellView |
PortView.getParentView()
This method ensures a non-null value.
|
CellView |
CellView.getParentView()
Returns the parent of view of this view.
|
CellView[] |
GraphLayoutCache.getRoots()
Returns the roots of the view.
|
CellView[] |
GraphLayoutCache.getRoots(java.awt.geom.Rectangle2D clip)
Return all root cells that intersect the given rectangle.
|
CellView |
EdgeView.getSource()
Returns the CellView that represents the source of the edge.
|
CellView |
EdgeView.getSourceParentView() |
CellView |
EdgeView.getTarget()
Returns the CellView that represents the target of the edge.
|
CellView |
EdgeView.getTargetParentView() |
CellView[] |
DefaultGraphModel.GraphModelEdit.getViews(GraphLayoutCache view) |
CellView[] |
DefaultGraphModel.GraphModelLayerEdit.getViews(GraphLayoutCache view)
Returns the views that have not changed explicitly, but implicitly
because one of their dependent cells has changed.
|
protected CellView |
EdgeView.getVisibleParent(GraphModel model,
CellMapper mapper,
java.lang.Object port) |
CellView[] |
GraphLayoutCache.removeCells(java.lang.Object[] cells)
Removes the specified model root cells from the view by removing the
mapping between the cell and its view and makes the cells invisible.
|
CellView |
GraphLayoutCache.removeMapping(java.lang.Object cell)
Removes the association for the specified model cell and returns the view
that was previously associated with the cell.
|
Modifier and Type | Method and Description |
---|---|
void |
ConnectionSet.addConnections(CellView[] views)
Adds the connections in
views to the connection set. |
void |
GraphLayoutCache.cellViewsChanged(CellView[] cellViews)
Invoke this method after you've changed how the cells are to be
represented in the graph.
|
ConnectionSet |
GraphContext.disconnect(CellView[] cells)
Disconnects the edges in
cells from the sources and
targets that are not in this context and returns a ConnectionSet that
defines the disconnection. |
CellView[] |
GraphLayoutCache.getAllDescendants(CellView[] views)
Returns all views, including descendants that have a parent in
views , especially the PortViews. |
java.awt.geom.Rectangle2D |
EdgeRenderer.getBounds(CellView value)
Returns the bounds of the edge shape.
|
static java.awt.geom.Rectangle2D |
AbstractCellView.getBounds(CellView[] views)
Returns the bounding box for the specified views.
|
static java.awt.geom.Rectangle2D |
GraphLayoutCache.getBounds(CellView[] views)
Returns the bounding box for the specified cell views.
|
java.lang.Object[] |
GraphLayoutCache.getCells(CellView[] views)
Takes an array of views and returns the array of the corresponding cells
by using
getCell for each view. |
static java.awt.geom.Point2D |
AbstractCellView.getCenterPoint(CellView vertex) |
static CellView[] |
AbstractCellView.getDescendantViews(CellView[] views)
Returns all views, including descendants that have a parent in
views without the PortViews. |
protected java.awt.Rectangle |
EdgeView.EdgeHandle.getHighlightBounds(JGraph graph,
CellView cellView)
Returns the bounds to be used to highlight the given cell view.
|
static double |
EdgeView.getLength(CellView view) |
java.awt.Component |
PortRenderer.getRendererComponent(JGraph graph,
CellView view,
boolean sel,
boolean focus,
boolean preview)
Configure and return the renderer based on the passed in components.
|
java.awt.Component |
CellViewRenderer.getRendererComponent(JGraph graph,
CellView view,
boolean sel,
boolean focus,
boolean preview)
Configure and return the renderer based on the passed in
components.
|
java.awt.Component |
EdgeRenderer.getRendererComponent(JGraph graph,
CellView view,
boolean sel,
boolean focus,
boolean preview)
Configure and return the renderer based on the passed in components.
|
java.awt.Component |
VertexRenderer.getRendererComponent(JGraph graph,
CellView view,
boolean sel,
boolean focus,
boolean preview)
Configure and return the renderer component based on the passed in cell.
|
protected void |
EdgeView.EdgeHandle.highlight(JGraph graph,
CellView cellView)
Highlights the given cell view or removes the highlight if
no cell view is specified.
|
protected boolean |
AbstractCellView.includeInGroupBounds(CellView view)
This is used to exclude certain cell views from the group bounds
computation.
|
void |
GraphLayoutCache.insertViews(CellView[] views)
Adds the specified model root cells to the view.
|
protected void |
EdgeRenderer.installAttributes(CellView view)
Installs the attributes of specified cell in this renderer instance.
|
protected void |
VertexRenderer.installAttributes(CellView view)
Install the attributes of specified cell in this renderer instance.
|
boolean |
EdgeRenderer.intersects(JGraph graph,
CellView value,
java.awt.Rectangle rect)
Returns true if the edge shape intersects the given rectangle.
|
protected void |
EdgeView.EdgeHandle.paintPort(java.awt.Graphics g,
CellView p) |
void |
CellMapper.putMapping(java.lang.Object cell,
CellView view)
Inserts the association between
cell and view . |
void |
GraphLayoutCache.putMapping(java.lang.Object cell,
CellView view)
Associates the specified model cell with the specified view.
|
void |
GraphContext.putMapping(java.lang.Object cell,
CellView view)
Associates
cell with view in the graph
context. |
void |
DefaultGraphModel.GraphModelEdit.putViews(GraphLayoutCache view,
CellView[] views) |
void |
DefaultGraphModel.GraphModelLayerEdit.putViews(GraphLayoutCache view,
CellView[] cellViews)
Returns the views that have not changed explicitly, but implicitly
because one of their dependent cells has changed.
|
void |
GraphLayoutCache.refresh(CellView[] views,
boolean create) |
void |
GraphLayoutCache.refresh(CellView view,
boolean create) |
void |
EdgeView.setSource(CellView sourceView)
Sets the
sourceView of the edge. |
void |
EdgeView.setTarget(CellView targetView)
Sets the
targetView of the edge. |
static void |
GraphLayoutCache.translateViews(CellView[] views,
double dx,
double dy)
Translates the specified views by the given amount.
|
void |
GraphLayoutCache.update(CellView view) |
void |
GraphLayoutCache.update(CellView[] views) |
Constructor and Description |
---|
GraphLayoutCache(GraphModel model,
CellViewFactory factory,
CellView[] cellViews,
CellView[] hiddenCellViews,
boolean partial)
Constructs a view for the specified model that uses
factory
to create its views. |
GraphLayoutCache(GraphModel model,
CellViewFactory factory,
CellView[] cellViews,
CellView[] hiddenCellViews,
boolean partial)
Constructs a view for the specified model that uses
factory
to create its views. |
Modifier and Type | Method and Description |
---|---|
abstract java.awt.geom.Dimension2D |
GraphUI.getPreferredSize(JGraph graph,
CellView view)
Returns the preferred size for
view . |
abstract void |
GraphUI.paintCell(java.awt.Graphics g,
CellView view,
java.awt.geom.Rectangle2D bounds,
boolean preview)
Paints the renderer of
view to g
at bounds . |
abstract void |
GraphUI.paintPorts(java.awt.Graphics g,
CellView[] portViews)
Paints the renderers of
portViews to g . |
Modifier and Type | Field and Description |
---|---|
protected CellView |
BasicGraphUI.MouseHandler.cell |
protected CellView[] |
BasicGraphUI.RootHandle.contextViews |
protected CellView |
BasicGraphUI.focus
The focused cell under the mousepointer and the last focused cell.
|
protected CellView |
BasicGraphUI.RootHandle.ignoreTargetGroup |
protected CellView |
BasicGraphUI.lastFocus
The focused cell under the mousepointer and the last focused cell.
|
protected CellView[] |
BasicGraphUI.RootHandle.portViews |
protected CellView |
BasicGraphUI.RootHandle.targetGroup |
protected CellView[] |
BasicGraphUI.RootHandle.views |
Modifier and Type | Method and Description |
---|---|
protected CellView |
BasicGraphUI.RootHandle.findUnselectedInnermostGroup(double x,
double y)
Used for move into group to find the target group.
|
protected CellView |
BasicGraphUI.RootHandle.findViewForPoint(java.awt.geom.Point2D pt)
Hook for subclassers to return a different view for a mouse click at
pt . |
Modifier and Type | Method and Description |
---|---|
java.awt.geom.Dimension2D |
BasicGraphUI.getPreferredSize(JGraph graph,
CellView view)
Get the preferred Size for a cell view.
|
protected boolean |
BasicGraphUI.MouseHandler.isDescendant(CellView parentView,
CellView childView) |
void |
BasicGraphUI.paintCell(java.awt.Graphics g,
CellView view,
java.awt.geom.Rectangle2D bounds,
boolean preview)
Paints the renderer of
view to g at
bounds . |
void |
BasicGraphUI.paintPorts(java.awt.Graphics g,
CellView[] ports)
Paint
ports . |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object[] |
ParallelEdgeRouter.getParallelEdges(GraphLayoutCache cache,
EdgeView edge,
CellView cellView1,
CellView cellView2)
Getter to obtain the list of parallel edges
|
Copyright (C) 2001-2009 JGraph Ltd. All rights reserved.