|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.geom.Line2D
java.awt.geom.Line2D.Double
drvgraph.j2d.Connection
public class Connection
Represents an arc in the rule graph.
The Connection is identified by the "incoming" graph element (i.e.
the graph element the arc commences from) and the "outgoing" graph element (i.e.
the graph element the arc "lands" on).
Connections can only belong to one of the following types:
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.awt.geom.Line2D |
|---|
java.awt.geom.Line2D.Double, java.awt.geom.Line2D.Float |
| Field Summary |
|---|
| Fields inherited from class java.awt.geom.Line2D.Double |
|---|
x1, x2, y1, y2 |
| Constructor Summary | |
|---|---|
Connection(ClassPattern in,
boolean neg,
Rule out)
Constructs a connection commencing from a class pattern and landing on a rule circle. |
|
Connection(ClassPattern in,
Naf out)
Constructs a connection commencing from a class pattern and landing on a naf triangle. |
|
Connection(Naf in,
Rule out)
Constructs a connection commencing from a naf triangle and landing on a rule circle. |
|
Connection(Rule in,
ClassPattern out,
boolean neg)
Constructs a connection commencing from a rule circle and landing on a class pattern. |
|
Connection(Rule in,
Rule out)
|
|
| Method Summary | |
|---|---|
void |
paint(java.awt.Graphics g)
Draws the connection. |
| Methods inherited from class java.awt.geom.Line2D.Double |
|---|
getBounds2D, getP1, getP2, getX1, getX2, getY1, getY2, setLine |
| Methods inherited from class java.awt.geom.Line2D |
|---|
clone, contains, contains, contains, contains, getBounds, getPathIterator, getPathIterator, intersects, intersects, intersectsLine, intersectsLine, linesIntersect, ptLineDist, ptLineDist, ptLineDist, ptLineDistSq, ptLineDistSq, ptLineDistSq, ptSegDist, ptSegDist, ptSegDist, ptSegDistSq, ptSegDistSq, ptSegDistSq, relativeCCW, relativeCCW, relativeCCW, setLine, setLine |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Connection(ClassPattern in,
boolean neg,
Rule out)
in - the class pattern the arrow commences fromneg - the boolean variable indicating whether the class pattern is negated or notout - the rule circle the connection lands onClassPattern,
Rule
public Connection(Rule in,
ClassPattern out,
boolean neg)
in - the rule circle the arrow commences fromout - the class pattern the connection lands onneg - the boolean variable indicating whether the class pattern is negated or notRule,
ClassPattern
public Connection(Rule in,
Rule out)
public Connection(ClassPattern in,
Naf out)
in - the class pattern the arrow commences fromout - the naf triangle the arrow lands onClassPattern,
Naf
public Connection(Naf in,
Rule out)
in - the naf triangle the arrow commences fromout - the rule circle the connection lands onNaf,
Rule| Method Detail |
|---|
public void paint(java.awt.Graphics g)
g - the Graphics component that draws the connectionGraphics
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||