Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
A
D
F
G
I
L
M
N
P
S
A
add(Node, double, double)
- Method in class graph.
Graph
Adds a node at a specified position
add(Link)
- Method in class graph.
Graph
Adds a link to this graph
addLink(Link)
- Method in class graph.
Node
Used by Link constructor to add newly created links to this node's links list.
Arrow
- Class in
graph
An arrow is a directed link between two nodes and may contain a data label.
Arrow(Node, Node, Object)
- Constructor for class graph.
Arrow
Creates a directed link between the specified nodes with the specified label.
arrowType
- Variable in class graph.
Arrow
Possible arrow types: CIRCLE, LINE, DOUBLELINE, DIAMOND, SIMPLE, TECHNICAL, NONE, CLASSIC
D
display(Graph)
- Static method in class graph.
GraphUtils
Creates a JGraph component with a graph as its model.
F
filled
- Variable in class graph.
Arrow
Should the arrowhead be empty or hollow?
G
getBounds()
- Method in class graph.
Node
Gets the bounding box of this node.
getCells()
- Method in class graph.
Graph
Used in GraphUtils.makeJGraph() to initialize the graph layout manager.
getLabel()
- Method in class graph.
Link
Gets the data label of this link
getLabel()
- Method in class graph.
Node
Gets the data label of this node.
getLinks()
- Method in class graph.
Graph
Fetches the set of links belonging to this graph.
getLinks()
- Method in class graph.
Node
A dangerous method because it invites users to add and remove links through a back door.
getNodes()
- Method in class graph.
Graph
Fetches the set of nodes belonging to this graph.
getPort()
- Method in class graph.
Node
Another hack needed by the Link constructor to get a port it can connect to.
getSourceNode()
- Method in class graph.
Link
Gets the source node of this link.
getTargetNode()
- Method in class graph.
Link
Gets the target node of this link.
graph
- package graph
Provides for the creation and display of graphs.
Graph
- Class in
graph
Instances are semi-logical representations of graphs.
Graph()
- Constructor for class graph.
Graph
GraphUtils
- Class in
graph
Utilities for printing and displaying graphs.
GraphUtils()
- Constructor for class graph.
GraphUtils
I
iterator()
- Method in class graph.
Node
Use this for safely traversing the links associated with this node.
L
Link
- Class in
graph
A link connects two nodes and may contain a data label.
Link(Node, Node, Object)
- Constructor for class graph.
Link
Creates a link between the specified nodes with the specified label.
Link(Node, Node)
- Constructor for class graph.
Link
Calls Link(source, target, "")
links
- Variable in class graph.
Graph
links
- Variable in class graph.
Node
M
makeJGraph(Graph)
- Static method in class graph.
GraphUtils
Creates a JGraph component with a specified graph as its component.
N
Node
- Class in
graph
Instances represent graph nodes.
Node(Object)
- Constructor for class graph.
Node
Creates a node labeled with a specified data object
Node()
- Constructor for class graph.
Node
Creates a node labeled by null
NODE_HEIGHT
- Static variable in class graph.
Graph
The default height of a node
NODE_WIDTH
- Static variable in class graph.
Graph
The default width of a node
nodes
- Variable in class graph.
Graph
P
print(Graph)
- Static method in class graph.
GraphUtils
prints the nodes and links of a graph.
S
serialVersionUID
- Static variable in class graph.
Arrow
serialVersionUID
- Static variable in class graph.
Graph
serialVersionUID
- Static variable in class graph.
Link
serialVersionUID
- Static variable in class graph.
Node
setBackgroundColor(Color)
- Method in class graph.
Node
Sets the color of this node.
setBorderColor(Color)
- Method in class graph.
Node
Sets the color of this node's border.
setBounds(Rectangle2D.Double)
- Method in class graph.
Node
Sets the bounding box of this node.
setFill(boolean)
- Method in class graph.
Arrow
to create filled or hollow arrowheads.
setLabel(Object)
- Method in class graph.
Link
Sets the data label of this link.
setLabel(Object)
- Method in class graph.
Node
Sets the data label of this node.
setType(int)
- Method in class graph.
Arrow
Use to change the type of the arrow.
A
D
F
G
I
L
M
N
P
S
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes