jfig.utils
Class GeometryManager

java.lang.Object
  extended byjfig.utils.GeometryManager

public class GeometryManager
extends java.lang.Object


Field Summary
static int LATEX_LINE
           
static int LATEX_VECTOR
           
static int MANHATTAN
           
static int MOUNTAIN
           
static int MOUNTHATTAN
           
static java.lang.String[] names
           
static int UNCONSTRAINED
           
 
Constructor Summary
GeometryManager()
           
 
Method Summary
 void convertToDegrees(double[] angles)
           
 void convertToRadians(double[] angles)
           
 int getMode()
           
 java.awt.Point getNearestAllowedPoint(java.awt.Point base, java.awt.Point target)
           
 java.awt.Point getNearestManhattanPoint(java.awt.Point base, java.awt.Point target)
           
 void setMode(int mode)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNCONSTRAINED

public static final int UNCONSTRAINED
See Also:
Constant Field Values

LATEX_LINE

public static final int LATEX_LINE
See Also:
Constant Field Values

LATEX_VECTOR

public static final int LATEX_VECTOR
See Also:
Constant Field Values

MANHATTAN

public static final int MANHATTAN
See Also:
Constant Field Values

MOUNTAIN

public static final int MOUNTAIN
See Also:
Constant Field Values

MOUNTHATTAN

public static final int MOUNTHATTAN
See Also:
Constant Field Values

names

public static final java.lang.String[] names
Constructor Detail

GeometryManager

public GeometryManager()
Method Detail

setMode

public void setMode(int mode)
             throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

getMode

public int getMode()

getNearestAllowedPoint

public java.awt.Point getNearestAllowedPoint(java.awt.Point base,
                                             java.awt.Point target)

getNearestManhattanPoint

public java.awt.Point getNearestManhattanPoint(java.awt.Point base,
                                               java.awt.Point target)

convertToRadians

public void convertToRadians(double[] angles)

convertToDegrees

public void convertToDegrees(double[] angles)