|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.itextpdf.text.pdf.parser.LineSegment
public class LineSegment
Represents a line segment in a particular coordinate system. This class is immutable.
| Constructor Summary | |
|---|---|
LineSegment(Vector startPoint,
Vector endPoint)
Creates a new line segment. |
|
| Method Summary | |
|---|---|
Rectangle2D.Float |
getBoundingRectange()
Computes the bounding rectangle for this line segment. |
Vector |
getEndPoint()
|
float |
getLength()
|
Vector |
getStartPoint()
|
LineSegment |
transformBy(Matrix m)
Transforms the segment by the specified matrix |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LineSegment(Vector startPoint,
Vector endPoint)
startPoint - the start point of a line segment.endPoint - the end point of a line segment.| Method Detail |
|---|
public Vector getStartPoint()
public Vector getEndPoint()
public float getLength()
public Rectangle2D.Float getBoundingRectange()
public LineSegment transformBy(Matrix m)
m - the matrix for the transformation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||