CurveShape
Inheritance: java.lang.Object, com.aspose.psd.ObjectWithBounds, com.aspose.psd.Shape, com.aspose.psd.shapes.PolygonShape
public final class CurveShape extends PolygonShape
Represents a curved spline shape.
Constructors
Constructor | Description |
---|---|
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. |
Methods
Method | Description |
---|---|
equals(Object arg0) | |
getBounds() | Gets the object’s bounds. |
getBounds(Matrix matrix) | Gets the object’s bounds. |
getBounds(Matrix matrix, Pen pen) | Gets the object’s bounds. |
getCenter() | Gets the shape’s center. |
getClass() | |
getEndPoint() | Gets the ending shape point. |
getPoints() | Gets or sets the curve points. |
getSegments() | Gets the shape segments. |
getStartPoint() | Gets the starting shape point. |
getTension() | Gets or sets the curve tension. |
hasSegments() | Gets a value indicating whether shape has segments. |
hashCode() | |
isClosed() | Gets or sets a value indicating whether shape is closed. |
notify() | |
notifyAll() | |
reverse() | Reverses the order of points for this shape. |
setClosed(boolean value) | Gets or sets a value indicating whether shape is closed. |
setPoints(PointF[] value) | Gets or sets the curve points. |
setTension(float value) | Gets or sets the curve tension. |
toString() | |
transform(Matrix transform) | Applies the specified transformation to the shape. |
wait() | |
wait(long arg0) | |
wait(long arg0, int arg1) |
CurveShape()
public CurveShape()
Initializes a new instance of the CurveShape class.
CurveShape(PointF[] points)
public CurveShape(PointF[] points)
Initializes a new instance of the CurveShape class. The default tension of 0.5 is used.
Parameters:
Parameter | Type | Description |
---|---|---|
points | PointF[] | The points array. |
CurveShape(PointF[] points, boolean isClosed)
public CurveShape(PointF[] points, boolean isClosed)
Initializes a new instance of the CurveShape class. The default tension of 0.5 is used.
Parameters:
Parameter | Type | Description |
---|---|---|
points | PointF[] | The points array. |
isClosed | boolean |
CurveShape(PointF[] points, float tension)
public CurveShape(PointF[] points, float tension)
Initializes a new instance of the CurveShape class.
Parameters:
Parameter | Type | Description |
---|---|---|
points | PointF[] | The points array. |
tension | float | The curve tension. |
CurveShape(PointF[] points, float tension, boolean isClosed)
public CurveShape(PointF[] points, float tension, boolean isClosed)
Initializes a new instance of the CurveShape class.
Parameters:
Parameter | Type | Description |
---|---|---|
points | PointF[] | The points array. |
tension | float | The curve tension. |
isClosed | boolean | if set to true the curve is closed. |
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.lang.Object |
Returns: boolean
getBounds()
public RectangleF getBounds()
Gets the object’s bounds.
Value: The object’s bounds.
Returns: RectangleF
getBounds(Matrix matrix)
public RectangleF getBounds(Matrix matrix)
Gets the object’s bounds.
Parameters:
Parameter | Type | Description |
---|---|---|
matrix | Matrix | The matrix to apply before bounds will be calculated. |
Returns: RectangleF - The estimated object’s bounds.
getBounds(Matrix matrix, Pen pen)
public RectangleF getBounds(Matrix matrix, Pen pen)
Gets the object’s bounds.
Parameters:
Parameter | Type | Description |
---|---|---|
matrix | Matrix | The matrix to apply before bounds will be calculated. |
pen | Pen | The pen to use for object. This can influence the object’s bounds size. |
Returns: RectangleF - The estimated object’s bounds.
getCenter()
public PointF getCenter()
Gets the shape’s center.
Value: The shape’s center.
Returns: PointF
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getEndPoint()
public PointF getEndPoint()
Gets the ending shape point.
Value: The ending shape point.
Returns: PointF
getPoints()
public PointF[] getPoints()
Gets or sets the curve points.
Value: The curve points.
Returns: com.aspose.psd.PointF[]
getSegments()
public ShapeSegment[] getSegments()
Gets the shape segments.
Value: The shape segments.
Returns: com.aspose.psd.ShapeSegment[]
getStartPoint()
public PointF getStartPoint()
Gets the starting shape point.
Value: The starting shape point.
Returns: PointF
getTension()
public float getTension()
Gets or sets the curve tension.
Value: The curve tension.
Returns: float
hasSegments()
public boolean hasSegments()
Gets a value indicating whether shape has segments.
Value: True if shape has segments; otherwise, false .
Returns: boolean
hashCode()
public native int hashCode()
Returns: int
isClosed()
public boolean isClosed()
Gets or sets a value indicating whether shape is closed.
Value: true if shape is closed; otherwise, false .
Returns: boolean
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
reverse()
public void reverse()
Reverses the order of points for this shape.
setClosed(boolean value)
public void setClosed(boolean value)
Gets or sets a value indicating whether shape is closed.
Value: true if shape is closed; otherwise, false .
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean |
setPoints(PointF[] value)
public void setPoints(PointF[] value)
Gets or sets the curve points.
Value: The curve points.
Parameters:
Parameter | Type | Description |
---|---|---|
value | PointF[] |
setTension(float value)
public void setTension(float value)
Gets or sets the curve tension.
Value: The curve tension.
Parameters:
Parameter | Type | Description |
---|---|---|
value | float |
toString()
public String toString()
Returns: java.lang.String
transform(Matrix transform)
public void transform(Matrix transform)
Applies the specified transformation to the shape.
Parameters:
Parameter | Type | Description |
---|---|---|
transform | Matrix | The transformation to apply. |
wait()
public final void wait()
wait(long arg0)
public final void wait(long arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |