All Packages Class Hierarchy This Package Previous Next Index
Class java.awt.geom.Line2D.Float
java.lang.Object
|
+----java.awt.geom.Line2D
|
+----java.awt.geom.Line2D.Float
- public static class Line2D.Float
- extends Line2D
A line segment specified with float coordinates.
x1- The X coordinate of the start point of the line segment.
x2- The X coordinate of the end point of the line segment.
y1- The Y coordinate of the start point of the line segment.
y2- The Y coordinate of the end point of the line segment.
Line2D.Float()
- Constructs and initializes a Line with coordinates (0, 0) -> (0, 0).
Line2D.Float(float, float, float, float)
- Constructs and initializes a Line from the specified coordinates.
Line2D.Float(Point2D, Point2D)
- Constructs and initializes a Line from the specified Points.
getBounds2D()
- Return the high precision bounding box of the shape.
getX1()
- Returns the X coordinate of the start point in double precision.
getX2()
- Returns the X coordinate of the end point in double precision.
getY1()
- Returns the Y coordinate of the start point in double precision.
getY2()
- Returns the Y coordinate of the end point in double precision.
setLine(double, double, double, double)
- Sets the location of the endpoints of this line to the specified
double coordinates.
x1
public float x1
- The X coordinate of the start point of the line segment.
y1
public float y1
- The Y coordinate of the start point of the line segment.
x2
public float x2
- The X coordinate of the end point of the line segment.
y2
public float y2
- The Y coordinate of the end point of the line segment.
Line2D.Float
public Line2D.Float()
- Constructs and initializes a Line with coordinates (0, 0) -> (0, 0).
Line2D.Float
public Line2D.Float(float x1,
float y1,
float x2,
float y2)
- Constructs and initializes a Line from the specified coordinates.
Line2D.Float
public Line2D.Float(Point2D p1,
Point2D p2)
- Constructs and initializes a Line from the specified Points.
getX1
public double getX1()
- Returns the X coordinate of the start point in double precision.
- Overrides:
- getX1 in class Line2D
getY1
public double getY1()
- Returns the Y coordinate of the start point in double precision.
- Overrides:
- getY1 in class Line2D
getX2
public double getX2()
- Returns the X coordinate of the end point in double precision.
- Overrides:
- getX2 in class Line2D
getY2
public double getY2()
- Returns the Y coordinate of the end point in double precision.
- Overrides:
- getY2 in class Line2D
setLine
public void setLine(double x1,
double y1,
double x2,
double y2)
- Sets the location of the endpoints of this line to the specified
double coordinates.
- Overrides:
- setLine in class Line2D
getBounds2D
public Rectangle2D getBounds2D()
- Return the high precision bounding box of the shape.
All Packages Class Hierarchy This Package Previous Next Index
Submit a bug or feature