Save This Page
Home » openjdk-7 » java » awt » geom » [javadoc | source]
java.awt.geom
public static class: Line2D.Double [javadoc | source]
java.lang.Object
   java.awt.geom.Line2D
      java.awt.geom.Line2D$Double

All Implemented Interfaces:
    Serializable, Shape, Cloneable

A line segment specified with double coordinates.
Field Summary
public  double x1    The X coordinate of the start point of the line segment.
    since: 1.2 -
    serial:
 
public  double y1    The Y coordinate of the start point of the line segment.
    since: 1.2 -
    serial:
 
public  double x2    The X coordinate of the end point of the line segment.
    since: 1.2 -
    serial:
 
public  double y2    The Y coordinate of the end point of the line segment.
    since: 1.2 -
    serial:
 
Constructor:
 public Double() 
 public Double(Point2D p1,
    Point2D p2) 
    Constructs and initializes a Line2D from the specified Point2D objects.
    Parameters:
    p1 - the start Point2D of this line segment
    p2 - the end Point2D of this line segment
    since: 1.2 -
 public Double(double x1,
    double y1,
    double x2,
    double y2) 
Method from java.awt.geom.Line2D$Double Summary:
getBounds2D,   getP1,   getP2,   getX1,   getX2,   getY1,   getY2,   setLine
Methods from java.awt.geom.Line2D:
clone,   contains,   contains,   contains,   contains,   getBounds,   getP1,   getP2,   getPathIterator,   getPathIterator,   getX1,   getX2,   getY1,   getY2,   intersects,   intersects,   intersectsLine,   intersectsLine,   linesIntersect,   ptLineDist,   ptLineDist,   ptLineDist,   ptLineDistSq,   ptLineDistSq,   ptLineDistSq,   ptSegDist,   ptSegDist,   ptSegDist,   ptSegDistSq,   ptSegDistSq,   ptSegDistSq,   relativeCCW,   relativeCCW,   relativeCCW,   setLine,   setLine,   setLine
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from java.awt.geom.Line2D$Double Detail:
 public Rectangle2D getBounds2D() 
    {@inheritDoc}
 public Point2D getP1() 
    {@inheritDoc}
 public Point2D getP2() 
    {@inheritDoc}
 public double getX1() 
    {@inheritDoc}
 public double getX2() 
    {@inheritDoc}
 public double getY1() 
    {@inheritDoc}
 public double getY2() 
    {@inheritDoc}
 public  void setLine(double x1,
    double y1,
    double x2,
    double y2) 
    {@inheritDoc}