Class WLineF

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

public class WLineF extends Object
Utility class that defines a single line.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor.
    WLineF(double x1, double y1, double x2, double y2)
    Construct a line connecting two points.
    Construct a line connecting two points.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(WLineF other)
     
    Returns the first point.
    Returns the second point.
    double
    Returns the X coordinate of the first point.
    double
    Returns the X coordinate of the second point.
    double
    Returns the Y coordinate of the first point.
    double
    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 Details

    • 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 Details

    • getX1

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

      See Also:
    • getY1

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

      See Also:
    • getX2

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

      See Also:
    • getY2

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

      See Also:
    • getP1

      public WPointF getP1()
      Returns the first point.

      See Also:
    • getP2

      public WPointF getP2()
      Returns the second point.

      See Also:
    • equals

      public boolean equals(WLineF other)