Uses of Interface
org.jgraph.graph.CellView
Packages that use CellView
Package
Description
JGraph's topmost package which contains the JGraph class.
Contains event classes and listener interfaces that are used to react to events fired by JGraph.
Graphs are made up of a number of classes and interfaces defined in their own
package - the
jgraph.graph
package.Contains the GraphUI class which extends the Swing ComponentUI class.
Contains the BasicGraphUI, which is GraphUI's default implementation.
-
Uses of CellView in org.jgraph
Methods in org.jgraph that return CellViewModifier and TypeMethodDescriptionJGraph.getLeafViewAt
(double x, double y) Returns the next view at the specified location wrt.JGraph.getNextSelectableViewAt
(CellView current, double x, double y) Note: Arguments are not expected to be scaled (they are scaled in here).JGraph.getNextViewAt
(CellView[] cells, CellView c, double x, double y) Returns the next view at the specified location wrt.JGraph.getNextViewAt
(CellView[] cells, CellView c, double x, double y, boolean leafsOnly) Returns the next view at the specified location wrt.JGraph.getNextViewAt
(CellView current, double x, double y) Returns the next view at the specified location wrt.JGraph.getNextViewAt
(CellView current, double x, double y, boolean leafsOnly) Returns the next view at the specified location wrt.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.Methods in org.jgraph with parameters of type CellViewModifier and TypeMethodDescriptionJGraph.getNextSelectableViewAt
(CellView current, double x, double y) Note: Arguments are not expected to be scaled (they are scaled in here).JGraph.getNextViewAt
(CellView[] cells, CellView c, double x, double y) Returns the next view at the specified location wrt.JGraph.getNextViewAt
(CellView[] cells, CellView c, double x, double y, boolean leafsOnly) Returns the next view at the specified location wrt.JGraph.getNextViewAt
(CellView current, double x, double y) Returns the next view at the specified location wrt.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 forview
. -
Uses of CellView in org.jgraph.event
Methods in org.jgraph.event that return CellViewModifier and TypeMethodDescriptionCellView[]
GraphModelEvent.GraphModelChange.getViews
(GraphLayoutCache view) Allows aGraphLayoutCache
to retrieve an array ofCellViews
that was previously stored withputViews(GraphLayoutCache, CellView[])
.Methods in org.jgraph.event with parameters of type CellViewModifier and TypeMethodDescriptionvoid
GraphModelEvent.GraphModelChange.putViews
(GraphLayoutCache view, CellView[] cellViews) Allows aGraphLayoutCache
to store cell views for cells that have been removed. -
Uses of CellView in org.jgraph.graph
Classes in org.jgraph.graph that implement CellViewModifier and TypeClassDescriptionclass
The abstract base class for all cell views.class
The default implementation of an edge view.class
The default implementation of a port view.class
The default implementation of a vertex view.Fields in org.jgraph.graph declared as CellViewModifier and TypeFieldDescriptionprotected 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 viewprotected 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
Methods in org.jgraph.graph that return CellViewModifier and TypeMethodDescriptionGraphContext.createMapping
(Object cell) CellView[]
GraphContext.createTemporaryCellViews()
Returns an new consistent array of views forcells
.CellView[]
GraphContext.createTemporaryContextViews()
Returns an new consistent array of views for the edges that are connected to and not contained incells
.CellView[]
GraphContext.createTemporaryContextViews
(Set cellSet) Returns an new consistent array of views for the edges that are connected to and not contained incellSet
.CellView[]
GraphContext.createTemporaryPortViews()
Returns an new consistent array of views for the ports.CellViewFactory.createView
(GraphModel model, Object cell) Constructs a view for the specified cell and associates it with the specified object using the specified CellMapper.DefaultCellViewFactory.createView
(GraphModel model, 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 inviews
, 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 inviews
without the PortViews.CellView[]
GraphLayoutCache.getHiddenCellViews()
CellMapper.getMapping
(Object cell, boolean create) Returns the view that is associated withcell
.GraphContext.getMapping
(Object cell, boolean create) Returns theCellView
that is mapped tocell
in the graph context.CellView[]
GraphLayoutCache.getMapping
(Object[] cells) Returns the views for the specified array of cells without creating these views on the fly.CellView[]
GraphLayoutCache.getMapping
(Object[] cells, boolean create) Returns the views for the specified array of cells.GraphLayoutCache.getMapping
(Object cell, boolean create) Returns the view for the specified cell.AbstractCellView.getParentView()
Returns the parent view for this view.CellView.getParentView()
Returns the parent of view of this view.PortView.getParentView()
This method ensures a non-null value.CellView[]
GraphLayoutCache.getRoots()
Returns the roots of the view.CellView[]
GraphLayoutCache.getRoots
(Rectangle2D clip) Return all root cells that intersect the given rectangle.EdgeView.getSource()
Returns the CellView that represents the source of the edge.EdgeView.getSourceParentView()
EdgeView.getTarget()
Returns the CellView that represents the target of the edge.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, Object port) CellView[]
GraphLayoutCache.removeCells
(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.GraphLayoutCache.removeMapping
(Object cell) Removes the association for the specified model cell and returns the view that was previously associated with the cell.Methods in org.jgraph.graph with parameters of type CellViewModifier and TypeMethodDescriptionvoid
ConnectionSet.addConnections
(CellView[] views) Adds the connections inviews
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.GraphContext.disconnect
(CellView[] cells) Disconnects the edges incells
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 inviews
, especially the PortViews.static Rectangle2D
Returns the bounding box for the specified views.Returns the bounds of the edge shape.static Rectangle2D
Returns the bounding box for the specified cell views.Object[]
Takes an array of views and returns the array of the corresponding cells by usinggetCell
for each view.static Point2D
AbstractCellView.getCenterPoint
(CellView vertex) static CellView[]
AbstractCellView.getDescendantViews
(CellView[] views) Returns all views, including descendants that have a parent inviews
without the PortViews.protected Rectangle
EdgeView.EdgeHandle.getHighlightBounds
(JGraph graph, CellView cellView) Returns the bounds to be used to highlight the given cell view.static double
CellViewRenderer.getRendererComponent
(JGraph graph, CellView view, boolean sel, boolean focus, boolean preview) Configure and return the renderer based on the passed in components.EdgeRenderer.getRendererComponent
(JGraph graph, CellView view, boolean sel, boolean focus, boolean preview) Configure and return the renderer based on the passed in components.PortRenderer.getRendererComponent
(JGraph graph, CellView view, boolean sel, boolean focus, boolean preview) Configure and return the renderer based on the passed in components.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
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, Rectangle rect) Returns true if the edge shape intersects the given rectangle.protected void
void
CellMapper.putMapping
(Object cell, CellView view) Inserts the association betweencell
andview
.void
GraphContext.putMapping
(Object cell, CellView view) Associatescell
withview
in the graph context.void
GraphLayoutCache.putMapping
(Object cell, CellView view) Associates the specified model cell with the specified view.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
void
void
Sets thesourceView
of the edge.void
Sets thetargetView
of the edge.static void
GraphLayoutCache.translateViews
(CellView[] views, double dx, double dy) Translates the specified views by the given amount.void
void
Constructors in org.jgraph.graph with parameters of type CellViewModifierConstructorDescriptionGraphLayoutCache
(GraphModel model, CellViewFactory factory, CellView[] cellViews, CellView[] hiddenCellViews, boolean partial) Constructs a view for the specified model that usesfactory
to create its views. -
Uses of CellView in org.jgraph.plaf
Methods in org.jgraph.plaf with parameters of type CellViewModifier and TypeMethodDescriptionabstract Dimension2D
GraphUI.getPreferredSize
(JGraph graph, CellView view) Returns the preferred size forview
.abstract void
GraphUI.paintCell
(Graphics g, CellView view, Rectangle2D bounds, boolean preview) Paints the renderer ofview
tog
atbounds
.abstract void
GraphUI.paintPorts
(Graphics g, CellView[] portViews) Paints the renderers ofportViews
tog
. -
Uses of CellView in org.jgraph.plaf.basic
Fields in org.jgraph.plaf.basic declared as CellViewModifier and TypeFieldDescriptionprotected 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
Methods in org.jgraph.plaf.basic that return CellViewModifier and TypeMethodDescriptionprotected CellView
BasicGraphUI.RootHandle.findUnselectedInnermostGroup
(double x, double y) Used for move into group to find the target group.protected CellView
BasicGraphUI.RootHandle.findViewForPoint
(Point2D pt) Hook for subclassers to return a different view for a mouse click atpt
.Methods in org.jgraph.plaf.basic with parameters of type CellViewModifier and TypeMethodDescriptionBasicGraphUI.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
(Graphics g, CellView view, Rectangle2D bounds, boolean preview) Paints the renderer ofview
tog
atbounds
.void
BasicGraphUI.paintPorts
(Graphics g, CellView[] ports) Paintports
. -
Uses of CellView in org.jgraph.util
Methods in org.jgraph.util with parameters of type CellViewModifier and TypeMethodDescriptionprotected Object[]
ParallelEdgeRouter.getParallelEdges
(GraphLayoutCache cache, EdgeView edge, CellView cellView1, CellView cellView2) Getter to obtain the list of parallel edges