org.apache.pivot.wtk.media.drawing
Class Path.CurveTo

java.lang.Object
  extended by org.apache.pivot.wtk.media.drawing.Path.Operation
      extended by org.apache.pivot.wtk.media.drawing.Path.CurveTo
Enclosing class:
Path

public static final class Path.CurveTo
extends Path.Operation

Adds a curved segment, defined by three new points, to the path by drawing a Bézier curve that intersects both the current coordinates and the specified coordinates (x3,y3), using the specified points (x1,y1) and (x2,y2) as Bézier control points.


Constructor Summary
Path.CurveTo()
           
Path.CurveTo(int x1, int y1, int x2, int y2, int x3, int y3)
           
 
Method Summary
 int getX1()
           
 int getX2()
           
 int getX3()
           
 int getY1()
           
 int getY2()
           
 int getY3()
           
 void setPoints(int x1, int y1, int x2, int y2, int x3, int y3)
          Sets the points by which the curve will be drawn.
 void setX1(int x1)
           
 void setX2(int x2)
           
 void setX3(int x3)
           
 void setY1(int y1)
           
 void setY2(int y2)
           
 void setY3(int y3)
           
 
Methods inherited from class org.apache.pivot.wtk.media.drawing.Path.Operation
getPath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Path.CurveTo

public Path.CurveTo()

Path.CurveTo

public Path.CurveTo(int x1,
                    int y1,
                    int x2,
                    int y2,
                    int x3,
                    int y3)
Method Detail

getX1

public int getX1()

setX1

public void setX1(int x1)

getY1

public int getY1()

setY1

public void setY1(int y1)

getX2

public int getX2()

setX2

public void setX2(int x2)

getY2

public int getY2()

setY2

public void setY2(int y2)

getX3

public int getX3()

setX3

public void setX3(int x3)

getY3

public int getY3()

setY3

public void setY3(int y3)

setPoints

public void setPoints(int x1,
                      int y1,
                      int x2,
                      int y2,
                      int x3,
                      int y3)
Sets the points by which the curve will be drawn. The curve will be drawn to (x3,y3), using (x1,y1) and (x2,y2) as Bézier control points.