java.lang.Object
com.port80.graph.dot.impl.BoxToBound
- public class BoxToBound
- extends java.lang.Object
Construct bounding polygon from path boxes.
. Since the code make assumption on the constant values, the
constants and routine are packed into this class to decouple
them from others.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NAME
private static final java.lang.String NAME
- See Also:
- Constant Field Values
DEBUG
private static final boolean DEBUG
- See Also:
- Constant Field Values
BOXBOTTOM
private static final int BOXBOTTOM
- See Also:
- Constant Field Values
BOXRIGHT
private static final int BOXRIGHT
- See Also:
- Constant Field Values
BOXTOP
private static final int BOXTOP
- See Also:
- Constant Field Values
BOXLEFT
private static final int BOXLEFT
- See Also:
- Constant Field Values
UL
private static final int UL
- See Also:
- Constant Field Values
LL
private static final int LL
- See Also:
- Constant Field Values
LR
private static final int LR
- See Also:
- Constant Field Values
UR
private static final int UR
- See Also:
- Constant Field Values
BoxToBound
public BoxToBound()
antiClockwise
public static void antiClockwise(DotPath path,
DotPolyline ret)
- Construct bounding polygon from path boxes by transversing in
anti-clockwise direction.
contactSide
private static int contactSide(DotBox box,
DotBox box1)
- Determine contact side.
antiClockwiseOrder
private static boolean antiClockwiseOrder(DotBox box,
DotBox box1,
int side)
main
public static void main(java.lang.String[] args)
newNeighbour
private static DotBox newNeighbour(DotBox box,
int side,
DotPath path)