|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.horstmann.violet.framework.Graph
com.horstmann.violet.SequenceDiagramGraph
public class SequenceDiagramGraph
A UML sequence diagram.
| Constructor Summary | |
|---|---|
SequenceDiagramGraph()
|
|
| Method Summary | |
|---|---|
boolean |
add(Node n,
java.awt.geom.Point2D p)
Adds a node to the graph so that the top left corner of the bounding rectangle is at the given point. |
void |
draw(java.awt.Graphics2D g2,
Grid g)
Draws the graph |
Edge[] |
getEdgePrototypes()
Gets the edge types of a particular graph type. |
Node[] |
getNodePrototypes()
Gets the node types of a particular graph type. |
void |
layout(java.awt.Graphics2D g2,
Grid grid)
Computes the layout of the graph. |
void |
removeEdge(Edge e)
Removes an edge from the graph. |
| Methods inherited from class com.horstmann.violet.framework.Graph |
|---|
addNode, connect, connect, findEdge, findNode, getBounds, getEdges, getMinBounds, getNodes, layout, removeNode, setMinBounds, setPersistenceDelegate |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SequenceDiagramGraph()
| Method Detail |
|---|
public boolean add(Node n,
java.awt.geom.Point2D p)
Graph
add in class Graphn - the node to addp - the desired locationpublic void removeEdge(Edge e)
Graph
removeEdge in class Graphe - the edge to remove
public void layout(java.awt.Graphics2D g2,
Grid grid)
Graphsuper.layout.
g2 - the graphics contextgrid - the grid to snap to
public void draw(java.awt.Graphics2D g2,
Grid g)
Graph
draw in class Graphg2 - the graphics contextpublic Node[] getNodePrototypes()
Graph
getNodePrototypes in class Graphpublic Edge[] getEdgePrototypes()
Graph
getEdgePrototypes in class Graph
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||