|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--EDU.auburn.VGJ.graph.Edge | +--EDU.utwente.CoCompose.lang.Link
Represents a link between nodes. Added some extra functionality to the Edge class to use it with CoCompose models.
Field Summary | |
static java.awt.Color |
DEFAULT_EDGE_COLOR
The default color for drawing edges. |
Fields inherited from class EDU.auburn.VGJ.graph.Edge |
data, data_, defaultDataTypes_, head_, points_, selected, styleColors, styleLabels, styleNames, stylePatterns, tail_ |
Constructor Summary | |
Link(Node tail,
Node head,
DPoint3[] points)
Constructs a Link. |
|
Link(Node tail,
Node head,
Edge from)
Constructs a Link. |
|
Link(Node tail,
Node head,
GMLobject gml)
Constructs a Link. |
Method Summary | |
void |
accept(ModelVisitor visitor)
Accepts a ModelVisitor. |
void |
draw(java.awt.Graphics graphics,
Matrix44 transform,
boolean inplane,
int quality)
Draws the link onto the graphics context. |
java.awt.Color |
getEdgeColor()
Gets the edge color for drawing. |
java.awt.Color |
getSelectColor()
Gets the selection artifact color for drawing. |
void |
setEdgeColor(java.awt.Color edgeColor)
Sets the edge color for drawing. |
void |
setSelectColor(java.awt.Color selectColor)
Sets the selection artifact color for drawing. |
java.lang.String |
toPS(Matrix44 transform,
boolean inplane)
Gets the Postscript representation for this link. |
Methods inherited from class EDU.auburn.VGJ.graph.Edge |
draw, getLabel, getLineStyle, head, isDummy, points, PSnum_, psString_, saveState, setGMLvalues, setLabel, setLineStyle, slide, tail, toPS |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.awt.Color DEFAULT_EDGE_COLOR
Constructor Detail |
public Link(Node tail, Node head, DPoint3[] points)
tail
- The tail node in the link.head
- The head node in the link.points
- The intermediate points for drawing.public Link(Node tail, Node head, Edge from)
tail
- The tail node in the link.head
- The head node in the link.from
- The edge to copy the attributes from.public Link(Node tail, Node head, GMLobject gml)
tail
- The tail node in the link.head
- The head node in the link.gml
- The GML object to read the attributes from.Method Detail |
public void setSelectColor(java.awt.Color selectColor)
selectColor
- The color.public java.awt.Color getSelectColor()
public void setEdgeColor(java.awt.Color edgeColor)
edgeColor
- The color.public java.awt.Color getEdgeColor()
public void draw(java.awt.Graphics graphics, Matrix44 transform, boolean inplane, int quality)
graphics
- The graphics context.transform
- The coordinate transformation matrix.inplane
- If true, assumes drawing in XY plane.quality
- The drawing quality (> 1 is high quality).public java.lang.String toPS(Matrix44 transform, boolean inplane)
transform
- The coordinate transformation matrix (3D -> 2D).inplane
- If true, the drawing is done in the XY plane.public void accept(ModelVisitor visitor) throws CoComposeException
visitor
- The visitor object to accept.CoComposeException
- if visiting operation failed.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |