org.foray.ps
Class PsPathLine

java.lang.Object
  extended by org.foray.ps.PsPathElement
      extended by org.foray.ps.PsPathLine

public class PsPathLine
extends PsPathElement

A line segment in a path. This class stores only the end-point of the line segment. The beginning of the line segment is defined as the end point of the previous element in the path.


Constructor Summary
PsPathLine(PsNumber x, PsNumber y)
          Constructor.
 
Method Summary
 PsNumber getEndX()
          Returns the "x" value of the end-point of this element.
 PsNumber getEndY()
          Returns the "y" value of the end-point of this element.
 PsNumber getX()
          Returns the x value for this point.
 PsNumber getY()
          Returns the y value for this point.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PsPathLine

public PsPathLine(PsNumber x,
                  PsNumber y)
Constructor.

Parameters:
x - The x value for this point.
y - The y value for this point.
Method Detail

getX

public PsNumber getX()
Returns the x value for this point.

Returns:
The x value for this point.

getY

public PsNumber getY()
Returns the y value for this point.

Returns:
The y value for this point.

getEndX

public PsNumber getEndX()
Description copied from class: PsPathElement
Returns the "x" value of the end-point of this element.

Specified by:
getEndX in class PsPathElement
Returns:
The "x" value of the end-point of this element.

getEndY

public PsNumber getEndY()
Description copied from class: PsPathElement
Returns the "y" value of the end-point of this element.

Specified by:
getEndY in class PsPathElement
Returns:
The "y" value of the end-point of this element.


Copyright © 2017. All rights reserved.