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

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

public static final class Path.LineTo
extends Path.Operation

Adds a point to the path by drawing a straight line from the current coordinates to the new specified coordinates.


Constructor Summary
Path.LineTo()
           
Path.LineTo(int x, int y)
           
 
Method Summary
 int getX()
          Gets the x-coordinate to which this will operation will draw a line.
 int getY()
          Gets the y-coordinate to which this will operation will draw a line.
 void setLocation(int x, int y)
          Sets the location to which this will operation will draw a line.
 void setX(int x)
          Sets the x-coordinate to which this will operation will draw a line.
 void setY(int y)
          Sets the y-coordinate to which this will operation will draw a line.
 
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.LineTo

public Path.LineTo()

Path.LineTo

public Path.LineTo(int x,
                   int y)
Method Detail

getX

public int getX()
Gets the x-coordinate to which this will operation will draw a line.


setX

public void setX(int x)
Sets the x-coordinate to which this will operation will draw a line.


getY

public int getY()
Gets the y-coordinate to which this will operation will draw a line.


setY

public void setY(int y)
Sets the y-coordinate to which this will operation will draw a line.


setLocation

public void setLocation(int x,
                        int y)
Sets the location to which this will operation will draw a line.