ArcShape

Inheritance: java.lang.Object, com.aspose.psd.ObjectWithBounds, com.aspose.psd.Shape, com.aspose.psd.shapes.RectangleProjectedShape, com.aspose.psd.shapes.RectangleShape, com.aspose.psd.shapes.EllipseShape, com.aspose.psd.shapes.PieShape

All Implemented Interfaces: com.aspose.psd.IOrderedShape

public final class ArcShape extends PieShape implements IOrderedShape

Represents an arc shape.

Constructors

ConstructorDescription
ArcShape()Initializes a new instance of the ArcShape class.
ArcShape(RectangleF rectangle, float startAngle, float sweepAngle)Initializes a new instance of the ArcShape class.
ArcShape(RectangleF rectangle, float startAngle, float sweepAngle, boolean isClosed)Initializes a new instance of the ArcShape class.

Methods

MethodDescription
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.
getLeftBottom()Gets the left bottom rectangle point.
getLeftTop()Gets the left top rectangle point.
getRectangleHeight()Gets the rectangle height.
getRectangleWidth()Gets the rectangle width.
getRightBottom()Gets the right bottom rectangle point.
getRightTop()Gets the right top rectangle point.
getSegments()Gets the shape segments.
getStartAngle()Gets or sets the start angle.
getStartPoint()Gets the starting shape point.
getSweepAngle()Gets or sets the sweep angle.
hasSegments()Gets a value indicating whether shape has segments.
hashCode()
isClosed()Gets or sets a value indicating whether ordered shape is closed.
notify()
notifyAll()
reverse()Reverses the order of points for this shape.
setClosed(boolean value)Gets or sets a value indicating whether ordered shape is closed.
setStartAngle(float value)Gets or sets the start angle.
setSweepAngle(float value)Gets or sets the sweep angle.
toString()
transform(Matrix transform)Applies the specified transformation to the shape.
wait()
wait(long arg0)
wait(long arg0, int arg1)

ArcShape()

public ArcShape()

Initializes a new instance of the ArcShape class.

ArcShape(RectangleF rectangle, float startAngle, float sweepAngle)

public ArcShape(RectangleF rectangle, float startAngle, float sweepAngle)

Initializes a new instance of the ArcShape class.

Parameters:

ParameterTypeDescription
rectangleRectangleFThe rectangle.
startAnglefloatThe start angle.
sweepAnglefloatThe sweep angle.

ArcShape(RectangleF rectangle, float startAngle, float sweepAngle, boolean isClosed)

public ArcShape(RectangleF rectangle, float startAngle, float sweepAngle, boolean isClosed)

Initializes a new instance of the ArcShape class.

Parameters:

ParameterTypeDescription
rectangleRectangleFThe rectangle.
startAnglefloatThe start angle.
sweepAnglefloatThe sweep angle.
isClosedbooleanIf set to true the arc is closed. The closed arc is actually degenereates to an ellipse.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.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:

ParameterTypeDescription
matrixMatrixThe 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:

ParameterTypeDescription
matrixMatrixThe matrix to apply before bounds will be calculated.
penPenThe 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

getLeftBottom()

public PointF getLeftBottom()

Gets the left bottom rectangle point.

Value: The left bottom rectangle point.

Returns: PointF

getLeftTop()

public PointF getLeftTop()

Gets the left top rectangle point.

Value: The left top rectangle point.

Returns: PointF

getRectangleHeight()

public double getRectangleHeight()

Gets the rectangle height.

Value: The rectangle height.

Returns: double

getRectangleWidth()

public double getRectangleWidth()

Gets the rectangle width.

Value: The rectangle width.

Returns: double

getRightBottom()

public PointF getRightBottom()

Gets the right bottom rectangle point.

Value: The right bottom rectangle point.

Returns: PointF

getRightTop()

public PointF getRightTop()

Gets the right top rectangle point.

Value: The right top rectangle point.

Returns: PointF

getSegments()

public ShapeSegment[] getSegments()

Gets the shape segments.

Value: The shape segments.

Returns: com.aspose.psd.ShapeSegment[]

getStartAngle()

public float getStartAngle()

Gets or sets the start angle.

Value: The start angle.

Returns: float

getStartPoint()

public PointF getStartPoint()

Gets the starting shape point.

Value: The starting shape point.

Returns: PointF

getSweepAngle()

public float getSweepAngle()

Gets or sets the sweep angle.

Value: The sweep angle.

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 ordered shape is closed. When processing closed ordered shape the starting and ending points have no meaning.

Value: True if this ordered 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 ordered shape is closed. When processing closed ordered shape the starting and ending points have no meaning.

Value: True if this ordered shape is closed; otherwise, false .

Parameters:

ParameterTypeDescription
valueboolean

setStartAngle(float value)

public void setStartAngle(float value)

Gets or sets the start angle.

Value: The start angle.

Parameters:

ParameterTypeDescription
valuefloat

setSweepAngle(float value)

public void setSweepAngle(float value)

Gets or sets the sweep angle.

Value: The sweep angle.

Parameters:

ParameterTypeDescription
valuefloat

toString()

public String toString()

Returns: java.lang.String

transform(Matrix transform)

public void transform(Matrix transform)

Applies the specified transformation to the shape.

Parameters:

ParameterTypeDescription
transformMatrixThe transformation to apply.

wait()

public final void wait()

wait(long arg0)

public final void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int