Package | Description |
---|---|
com.jgraph.components.labels | |
com.jgraph.layout |
JGraphLayout's topmost package which contains the basic layout classes and interfaces.
|
com.jgraph.navigation | |
com.jgraph.util | |
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 | Field and Description |
---|---|
protected JGraph |
MultiLineVertexRenderer.graph
Holds a reference to fetch the correct cell value from the model in
paint.
|
Modifier and Type | Method and Description |
---|---|
java.awt.Component |
RichTextEditor.getGraphCellEditorComponent(JGraph graph,
java.lang.Object cell,
boolean isSelected)
Overriding this in order to set the size of an editor to that of an
edited view.
|
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.
|
Modifier and Type | Field and Description |
---|---|
protected JGraph |
JGraphFacade.graph
The JGraph to have the layout applied to it.
|
Constructor and Description |
---|
JGraphFacade(JGraph graph)
Constructs a JGraphGraphFacade specifying the graph passed in as the
input graph
|
JGraphFacade(JGraph graph,
java.lang.Object[] roots)
Constructs a JGraphGraphFacade specifying the graph passed in as the
input graph
|
JGraphFacade(JGraph graph,
java.lang.Object[] roots,
boolean ignoresHiddenCells,
boolean ignoresCellsInGroups,
boolean ignoresUnconnectedCells,
boolean directed)
Constructs a JGraphGraphFacade
|
JGraphFacade(JGraph graph,
java.lang.Object[] roots,
boolean ignoresHiddenCells,
boolean ignoresCellsInGroups,
boolean ignoresUnconnectedCells,
boolean directed,
JGraphCostFunction distanceCostFunction,
JGraphAlgebra algebra)
Creates a JGraphGraphFacade specifying the graph passed in as the input
graph.
|
Modifier and Type | Field and Description |
---|---|
protected JGraph |
GraphNavigator.backingGraph
Holds the backing graph and references the displayed (current) graph.
|
Modifier and Type | Method and Description |
---|---|
JGraph |
GraphNavigator.getBackingGraph()
Returns the backing graph that is used to display
GraphNavigator.currentGraph . |
JGraph |
GraphNavigator.getCurrentGraph()
Returns the graph that is currently displayed.
|
static JGraph |
GraphNavigator.getParentGraph(java.awt.Component component)
Helper method that returns the parent JGraph for the specified component
in the component hierarchy.
|
Modifier and Type | Method and Description |
---|---|
static GraphNavigator |
GraphNavigator.createInstance(JGraph graph) |
void |
GraphNavigator.setBackingGraph(JGraph backingGraph)
Sets the backing graph that is used to display
GraphNavigator.currentGraph . |
void |
GraphNavigator.setCurrentGraph(JGraph sourceGraph)
Sets the graph that is currently displayed.
|
Constructor and Description |
---|
GraphNavigator(JGraph backingGraph)
Constructs a new graph navigator using
backingGraph to
display the graph in GraphNavigator.currentGraph . |
NavigatorPane(JGraph backingGraph)
Constructs a new navigator pane using the specified backing graph to
display the preview.
|
Modifier and Type | Field and Description |
---|---|
protected JGraph |
JGraphPrintingScrollPane.graph
References the inner graph.
|
Modifier and Type | Method and Description |
---|---|
JGraph |
JGraphPrintingScrollPane.getGraph()
Returns the inner graph.
|
Modifier and Type | Field and Description |
---|---|
protected JGraph |
DefaultGraphCellEditor.graph
JTree instance listening too.
|
protected JGraph |
VertexView.SizeHandle.graph |
protected JGraph |
GraphContext.graph
Reference to the parent graph.
|
protected JGraph |
EdgeView.EdgeHandle.graph |
protected JGraph |
DefaultGraphSelectionModel.graph
Reference to the parent graph.
|
Modifier and Type | Method and Description |
---|---|
JGraph |
GraphContext.getGraph()
Returns the graph that was passed to the constructor.
|
static JGraph |
BasicMarqueeHandler.getGraphForEvent(java.awt.event.MouseEvent event) |
Modifier and Type | Method and Description |
---|---|
protected GraphTransferable |
GraphTransferHandler.create(JGraph graph,
java.lang.Object[] cells,
java.util.Map viewAttributes,
java.awt.geom.Rectangle2D bounds,
ConnectionSet cs,
ParentMap pm) |
protected java.awt.datatransfer.Transferable |
GraphTransferHandler.createTransferable(JGraph graph,
java.lang.Object[] cells) |
java.awt.datatransfer.Transferable |
GraphTransferHandler.createTransferableForGraph(JGraph graph) |
protected void |
DefaultGraphCellEditor.determineOffset(JGraph graph,
java.lang.Object value,
boolean isSelected) |
java.awt.geom.Rectangle2D |
EdgeRenderer.getExtraLabelBounds(JGraph paintingContext,
EdgeView view,
int index)
Returns the label bounds of the specified view in the given graph.
|
java.awt.Dimension |
EdgeRenderer.getExtraLabelSize(JGraph paintingContext,
EdgeView view,
int index)
Returns the label size of the specified view in the given graph.
|
java.awt.Component |
DefaultGraphCellEditor.getGraphCellEditorComponent(JGraph graph,
java.lang.Object cell,
boolean isSelected)
Configures the editor.
|
java.awt.Component |
DefaultRealEditor.getGraphCellEditorComponent(JGraph graph,
java.lang.Object value,
boolean isSelected) |
java.awt.Component |
GraphCellEditor.getGraphCellEditorComponent(JGraph graph,
java.lang.Object value,
boolean isSelected)
Sets an initial value for the editor.
|
protected java.awt.Rectangle |
EdgeView.EdgeHandle.getHighlightBounds(JGraph graph,
CellView cellView)
Returns the bounds to be used to highlight the given cell view.
|
protected java.awt.geom.Point2D |
GraphTransferHandler.getInsertionOffset(JGraph graph,
int inCount,
java.awt.geom.Rectangle2D bounds)
Hook method to determine offset of cells cloned via the clipboard
|
java.awt.geom.Rectangle2D |
EdgeRenderer.getLabelBounds(JGraph paintingContext,
EdgeView view)
Returns the label bounds of the specified view in the given graph.
|
java.awt.Component |
AbstractCellView.getRendererComponent(JGraph graph,
boolean selected,
boolean focus,
boolean preview)
Returns a renderer component, configured for the view.
|
java.awt.Component |
CellView.getRendererComponent(JGraph graph,
boolean selected,
boolean focus,
boolean preview)
Returns a renderer component, configured for the 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 |
GraphTransferHandler.handleExternalDrop(JGraph graph,
java.lang.Object[] cells,
java.util.Map nested,
ConnectionSet cs,
ParentMap pm,
double dx,
double dy) |
void |
BasicMarqueeHandler.handleMarqueeEvent(java.awt.event.MouseEvent e,
JGraph graph,
java.awt.geom.Rectangle2D bounds)
Hook for subclassers.
|
protected void |
EdgeView.EdgeHandle.highlight(JGraph graph,
CellView cellView)
Highlights the given cell view or removes the highlight if
no cell view is specified.
|
boolean |
EdgeRenderer.intersects(JGraph graph,
CellView value,
java.awt.Rectangle rect)
Returns true if the edge shape intersects the given rectangle.
|
boolean |
AbstractCellView.intersects(JGraph graph,
java.awt.geom.Rectangle2D rect)
Returns true if the view intersects the given rectangle.
|
boolean |
CellView.intersects(JGraph g,
java.awt.geom.Rectangle2D rect)
Returns true if the view intersects the given rectangle.
|
boolean |
EdgeView.intersects(JGraph graph,
java.awt.geom.Rectangle2D rect)
Returns true if this view intersects the given rectangle.
|
boolean |
BasicMarqueeHandler.isMarqueeTriggerEvent(java.awt.event.MouseEvent e,
JGraph graph)
Hook for subclassers.
|
void |
BasicMarqueeHandler.overlay(JGraph graph,
java.awt.Graphics g,
boolean clear)
Draw the current state of the handler.
|
void |
BasicMarqueeHandler.paint(JGraph graph,
java.awt.Graphics g)
Called after the component was repainted (after autoscroll).
|
protected void |
DefaultGraphCellEditor.setGraph(JGraph newGraph)
Sets the tree currently editing for.
|
Constructor and Description |
---|
DefaultGraphSelectionModel(JGraph graph)
Constructs a DefaultGraphSelectionModel for the specified graph.
|
GraphContext(JGraph graph,
java.lang.Object[] cells)
Constructs a graph context for
cells with respect to the
connections defined in the model, and the views in the view of
graph . |
Modifier and Type | Method and Description |
---|---|
abstract void |
GraphUI.cancelEditing(JGraph graph)
Cancels the current editing session.
|
abstract java.lang.Object |
GraphUI.getEditingCell(JGraph graph)
Returns the cell that is being edited.
|
abstract java.awt.geom.Dimension2D |
GraphUI.getPreferredSize(JGraph graph,
CellView view)
Returns the preferred size for
view . |
abstract boolean |
GraphUI.isEditing(JGraph graph)
Returns true if the graph is being edited.
|
abstract void |
GraphUI.selectCellsForEvent(JGraph graph,
java.lang.Object[] cells,
java.awt.event.MouseEvent event)
Messaged to update the selection based on a MouseEvent for a group of
cells.
|
abstract void |
GraphUI.startEditingAtCell(JGraph graph,
java.lang.Object cell)
Selects the cell and tries to edit it.
|
abstract boolean |
GraphUI.stopEditing(JGraph graph)
Stops the current editing session.
|
Modifier and Type | Field and Description |
---|---|
protected JGraph |
BasicGraphUI.graph
Component that we're going to be drawing into.
|
Modifier and Type | Method and Description |
---|---|
static void |
BasicGraphUI.autoscroll(JGraph graph,
java.awt.Point p)
Scroll the graph for an event at
p . |
void |
BasicGraphUI.cancelEditing(JGraph graph)
Cancels all current editing sessions.
|
protected GraphContext |
BasicGraphUI.createContext(JGraph graph,
java.lang.Object[] cells) |
java.lang.Object |
BasicGraphUI.getEditingCell(JGraph graph)
Returns the element that is being edited.
|
java.awt.geom.Dimension2D |
BasicGraphUI.getPreferredSize(JGraph graph,
CellView view)
Get the preferred Size for a cell view.
|
boolean |
BasicGraphUI.isEditing(JGraph graph)
Returns true if the graph is being edited.
|
void |
BasicGraphUI.selectCellsForEvent(JGraph graph,
java.lang.Object[] cells,
java.awt.event.MouseEvent event)
From GraphUI interface.
|
void |
BasicGraphUI.startEditingAtCell(JGraph graph,
java.lang.Object cell)
Selects the cell and tries to edit it.
|
boolean |
BasicGraphUI.stopEditing(JGraph graph)
Stops the current editing session.
|
Modifier and Type | Method and Description |
---|---|
static void |
ParallelEdgeRouter.setGraph(JGraph graph)
Deprecated.
graph instance retained internally
|
Copyright (C) 2001-2009 JGraph Ltd. All rights reserved.