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

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

public static final class Path.QuadTo
extends Path.Operation

Adds a curved segment, defined by two new points, to the path by drawing a Quadratic curve that intersects both the current coordinates and the specified coordinates (x2,y2), using the specified point (x1,y1) as a quadratic parametric control point.


Constructor Summary
Path.QuadTo()
           
Path.QuadTo(int x1, int y1, int x2, int y2)
           
 
Method Summary
 int getX1()
           
 int getX2()
           
 int getY1()
           
 int getY2()
           
 void setPoints(int x1, int y1, int x2, int y2)
          Sets the points by which the curve will be drawn.
 void setX1(int x1)
           
 void setX2(int x2)
           
 void setY1(int y1)
           
 void setY2(int y2)
           
 
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.QuadTo

public Path.QuadTo()

Path.QuadTo

public Path.QuadTo(int x1,
                   int y1,
                   int x2,
                   int y2)
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)

setPoints

public void setPoints(int x1,
                      int y1,
                      int x2,
                      int y2)
Sets the points by which the curve will be drawn. The curve will be drawn to (x2,y2), using (x1,y1) as a quadratic parametric control point.