com.aspose.imaging.shapesegments
Class LineSegment

java.lang.Object
  extended by com.aspose.imaging.ShapeSegment
      extended by com.aspose.imaging.shapesegments.LineSegment
Direct Known Subclasses:
BezierSegment

public class LineSegment
extends ShapeSegment

Represents a segment leading derectly from a specific point to the next point.


Constructor Summary
LineSegment(PointF startPoint, PointF endPoint)
           Initializes a new instance of the LineSegment class.
 
Method Summary
 PointF getEndPoint()
           Gets the ending point.
 PointF getStartPoint()
           Gets the starting point.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LineSegment

public LineSegment(PointF startPoint,
                   PointF endPoint)

Initializes a new instance of the LineSegment class.

Parameters:
startPoint - The start point.
endPoint - The end point.
Method Detail

getEndPoint

public PointF getEndPoint()

Gets the ending point.

Value: The ending point.

Specified by:
getEndPoint in class ShapeSegment

getStartPoint

public PointF getStartPoint()

Gets the starting point.

Value: The starting point.

Specified by:
getStartPoint in class ShapeSegment