eu.webtoolkit.jwt
Class WLineF

java.lang.Object
  extended by eu.webtoolkit.jwt.WLineF

public class WLineF
extends java.lang.Object

Utility class that defines a single line.


Constructor Summary
WLineF()
          Default constructor.
WLineF(double x1, double y1, double x2, double y2)
          Construct a line connecting two points.
WLineF(WPointF p1, WPointF p2)
          Construct a line connecting two points.
 
Method Summary
 WPointF getP1()
          Returns the first point.
 WPointF getP2()
          Returns the second point.
 double getX1()
          Returns the X coordinate of the first point.
 double getX2()
          Returns the X coordinate of the second point.
 double getY1()
          Returns the Y coordinate of the first point.
 double getY2()
          Returns the Y coordinate of the second point.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WLineF

public WLineF()
Default constructor.

Constructs a line from (x1=0,y1=0) to (x2=0, y2=0).


WLineF

public WLineF(WPointF p1,
              WPointF p2)
Construct a line connecting two points.

Constructs a line from p1 to p2.


WLineF

public WLineF(double x1,
              double y1,
              double x2,
              double y2)
Construct a line connecting two points.

Constructs a line from (x1,y1) to (x2, y2).

Method Detail

getX1

public double getX1()
Returns the X coordinate of the first point.

See Also:
getY1(), getP1()

getY1

public double getY1()
Returns the Y coordinate of the first point.

See Also:
getX1(), getP1()

getX2

public double getX2()
Returns the X coordinate of the second point.

See Also:
getY2(), getP2()

getY2

public double getY2()
Returns the Y coordinate of the second point.

See Also:
getX2(), getP2()

getP1

public WPointF getP1()
Returns the first point.

See Also:
getX1(), getY1()

getP2

public WPointF getP2()
Returns the second point.

See Also:
getX2(), getY2()