|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.canvas.connector.ManhattanRouter.Segment
public static class ManhattanRouter.Segment
Inner class representing a segment of the route. There is a certain amount of redundancy in the representation (successive segments have the same x or y value), doing it this way makes the code a lot more understandable.
Field Summary | |
---|---|
int |
direction
The direction of this segment |
boolean |
pinned
The flag saying whether this segment is pinned |
double |
x
The X location of the end of the segment |
double |
y
The Y location of the end of the segment |
Constructor Summary | |
---|---|
ManhattanRouter.Segment(int direction,
double x,
double y,
boolean pinned)
|
Method Summary |
---|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int direction
public double x
public double y
public boolean pinned
Constructor Detail |
---|
public ManhattanRouter.Segment(int direction, double x, double y, boolean pinned)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |