Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.port80.graph.dot.impl
Class BoxToBound  view BoxToBound download BoxToBound.java

java.lang.Object
  extended bycom.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.


Field Summary
private static int BOXBOTTOM
           
private static int BOXLEFT
           
private static int BOXRIGHT
           
private static int BOXTOP
           
private static boolean DEBUG
           
private static int LL
           
private static int LR
           
private static java.lang.String NAME
           
private static int UL
           
private static int UR
           
 
Constructor Summary
BoxToBound()
           
 
Method Summary
static void antiClockwise(DotPath path, DotPolyline ret)
          Construct bounding polygon from path boxes by transversing in anti-clockwise direction.
private static boolean antiClockwiseOrder(DotBox box, DotBox box1, int side)
           
private static int contactSide(DotBox box, DotBox box1)
          Determine contact side.
static void main(java.lang.String[] args)
           
private static DotBox newNeighbour(DotBox box, int side, DotPath path)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

BoxToBound

public BoxToBound()
Method Detail

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)