|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.aspose.imaging.ObjectWithBounds
com.aspose.imaging.Shape
com.aspose.imaging.shapes.PolygonShape
com.aspose.imaging.shapes.CurveShape
public final class CurveShape
Represents a curved spline shape.
Constructor Summary | |
---|---|
CurveShape()
Initializes a new instance of the CurveShape class. |
|
CurveShape(PointF[] points)
Initializes a new instance of the CurveShape class. |
|
CurveShape(PointF[] points,
boolean isClosed)
Initializes a new instance of the CurveShape class. |
|
CurveShape(PointF[] points,
float tension)
Initializes a new instance of the CurveShape class. |
|
CurveShape(PointF[] points,
float tension,
boolean isClosed)
Initializes a new instance of the CurveShape class. |
Method Summary | |
---|---|
RectangleF |
getBounds()
Gets the object's bounds. |
RectangleF |
getBounds(Matrix matrix)
Gets the object's bounds. |
RectangleF |
getBounds(Matrix matrix,
Pen pen)
Gets the object's bounds. |
PointF |
getCenter()
Gets the shape's center. |
ShapeSegment[] |
getSegments()
Gets the shape segments. |
float |
getTension()
Gets the curve tension. |
void |
setTension(float value)
Sets the curve tension. |
Methods inherited from class com.aspose.imaging.shapes.PolygonShape |
---|
getEndPoint, getPoints, getStartPoint, hasSegments, isClosed, isClosed, reverse, setPoints, transform |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CurveShape()
Initializes a new instance of the CurveShape
class.
public CurveShape(PointF[] points)
Initializes a new instance of the CurveShape
class. The default tension of 0.5 is used.
points
- The points array.public CurveShape(PointF[] points, boolean isClosed)
Initializes a new instance of the CurveShape
class. The default tension of 0.5 is used.
points
- The points array.public CurveShape(PointF[] points, float tension)
Initializes a new instance of the CurveShape
class.
points
- The points array.tension
- The curve tension.public CurveShape(PointF[] points, float tension, boolean isClosed)
Initializes a new instance of the CurveShape
class.
points
- The points array.tension
- The curve tension.isClosed
- if set to true
the curve is closed.Method Detail |
---|
public RectangleF getBounds()
Gets the object's bounds.
Value: The object's bounds.
getBounds
in class PolygonShape
public RectangleF getBounds(Matrix matrix)
Gets the object's bounds.
getBounds
in class PolygonShape
matrix
- The matrix to apply before bounds will be calculated.
public RectangleF getBounds(Matrix matrix, Pen pen)
Gets the object's bounds.
getBounds
in class PolygonShape
matrix
- The matrix to apply before bounds will be calculated.pen
- The pen to use for object. This can influence the object's bounds size.
public PointF getCenter()
Gets the shape's center.
Value: The shape's center.
getCenter
in class PolygonShape
public ShapeSegment[] getSegments()
Gets the shape segments.
Value: The shape segments.
getSegments
in class PolygonShape
public float getTension()
Gets the curve tension.
Value: The curve tension.
public void setTension(float value)
Sets the curve tension.
Value: The curve tension.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |