nodebox.graphics
Class Point

java.lang.Object
  extended by nodebox.graphics.Point

public final class Point
extends Object


Field Summary
static int CURVE_DATA
           
static int CURVE_TO
           
 int hashCode
           
static int LINE_TO
           
 int type
           
 double x
           
 double y
           
static Point ZERO
           
 
Constructor Summary
Point()
           
Point(double x, double y)
           
Point(double x, double y, int type)
           
Point(Point2D pt)
           
 
Method Summary
 boolean equals(Object o)
           
 int getType()
           
 double getX()
           
 double getY()
           
 int hashCode()
           
 boolean isCurveData()
           
 boolean isCurveTo()
           
 boolean isLineTo()
           
 boolean isOffCurve()
           
 boolean isOnCurve()
           
 Point moved(double dx, double dy)
           
static Point parsePoint(String s)
           
 Point2D toPoint2D()
           
 String toString()
           
static Point valueOf(String s)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ZERO

public static final Point ZERO

LINE_TO

public static final int LINE_TO
See Also:
Constant Field Values

CURVE_TO

public static final int CURVE_TO
See Also:
Constant Field Values

CURVE_DATA

public static final int CURVE_DATA
See Also:
Constant Field Values

x

public final double x

y

public final double y

type

public final int type

hashCode

public transient int hashCode
Constructor Detail

Point

public Point()

Point

public Point(double x,
             double y)

Point

public Point(double x,
             double y,
             int type)

Point

public Point(Point2D pt)
Method Detail

valueOf

public static Point valueOf(String s)

parsePoint

public static Point parsePoint(String s)

getX

public double getX()

getY

public double getY()

getType

public int getType()

isLineTo

public boolean isLineTo()

isCurveTo

public boolean isCurveTo()

isCurveData

public boolean isCurveData()

isOnCurve

public boolean isOnCurve()

isOffCurve

public boolean isOffCurve()

moved

public Point moved(double dx,
                   double dy)

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

toPoint2D

public Point2D toPoint2D()


Copyright © 2013. All Rights Reserved.