diva.canvas.connector
Class ManhattanRouter.Segment

java.lang.Object
  extended by diva.canvas.connector.ManhattanRouter.Segment
Enclosing class:
ManhattanRouter

public static class ManhattanRouter.Segment
extends Object

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

direction

public int direction
The direction of this segment


x

public double x
The X location of the end of the segment


y

public double y
The Y location of the end of the segment


pinned

public boolean pinned
The flag saying whether this segment is pinned

Constructor Detail

ManhattanRouter.Segment

public ManhattanRouter.Segment(int direction,
                               double x,
                               double y,
                               boolean pinned)


Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.