nodebox.graphics
Class PathElement

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

public class PathElement
extends Object


Field Summary
static int CLOSE
           
static int CURVETO
           
static int LINETO
           
static int MOVETO
           
 
Constructor Summary
PathElement()
           
PathElement(int command)
           
PathElement(int command, double[] points)
           
PathElement(int command, double x, double y)
           
PathElement(int command, double x1, double y1, double x2, double y2, double x3, double y3)
           
PathElement(int command, Point point, Point control1, Point control2)
           
 
Method Summary
 boolean equals(Object o)
           
 int getCommand()
           
 Point getControl1()
           
 Point getControl2()
           
 Point getPoint()
           
 double getX()
           
 double getY()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

MOVETO

public static final int MOVETO
See Also:
Constant Field Values

LINETO

public static final int LINETO
See Also:
Constant Field Values

CURVETO

public static final int CURVETO
See Also:
Constant Field Values

CLOSE

public static final int CLOSE
See Also:
Constant Field Values
Constructor Detail

PathElement

public PathElement()

PathElement

public PathElement(int command)

PathElement

public PathElement(int command,
                   double x,
                   double y)

PathElement

public PathElement(int command,
                   double x1,
                   double y1,
                   double x2,
                   double y2,
                   double x3,
                   double y3)

PathElement

public PathElement(int command,
                   double[] points)

PathElement

public PathElement(int command,
                   Point point,
                   Point control1,
                   Point control2)
Method Detail

getCommand

public int getCommand()

getPoint

public Point getPoint()

getX

public double getX()

getY

public double getY()

getControl1

public Point getControl1()

getControl2

public Point getControl2()

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


Copyright © 2013. All Rights Reserved.