Class Line2D

java.lang.Object
net.sourceforge.plantuml.awt.geom.Line2D
All Implemented Interfaces:
Shape
Direct Known Subclasses:
Line2D.Double

public class Line2D extends java.lang.Object implements Shape
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    double
     
    double
     
    double
     
    double
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    Line2D(double x1, double y1, double x2, double y2)
     
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
    final double
     
    final double
     
    final double
     
    final double
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • x1

      public double x1
    • y1

      public double y1
    • x2

      public double x2
    • y2

      public double y2
  • Constructor Details

    • Line2D

      public Line2D()
    • Line2D

      public Line2D(double x1, double y1, double x2, double y2)
    • Line2D

      public Line2D(Point2D p1, Point2D p2)
  • Method Details

    • getX1

      public final double getX1()
    • getY1

      public final double getY1()
    • getX2

      public final double getX2()
    • getY2

      public final double getY2()
    • getP1

      public Point2D getP1()
    • getP2

      public Point2D getP2()