XpsArcSegment

Inheritance: java.lang.Object, com.aspose.xps.XpsObject, com.aspose.xps.XpsPathSegment

public class XpsArcSegment extends XpsPathSegment

Class incapsulating ArcSegment element features. This element describes an elliptical arc.

Methods

MethodDescription
getPoint()Returns the endpoint of the elliptical arc.
setPoint(Point2D value)Sets the endpoint of the elliptical arc.
getSize()Returns the x and y radius of the elliptical arc as an x,y pair.
setSize(Dimension2D value)Sets the x and y radius of the elliptical arc as an x,y pair.
getRotationAngle()Returns the value indicating how the ellipse is rotated relative to the current coordinate system.
setRotationAngle(float value)Sets the value indicating how the ellipse is rotated relative to the current coordinate system.
isLargeArc()Returns the value determining whether the arc is drawn with a sweep of 180 or greater.
setLargeArc(boolean value)Sets the value determining whether the arc is drawn with a sweep of 180 or greater.
getSweepDirection()Returns the value specifying the direction in which the arc is drawn.
setSweepDirection(XpsSweepDirection value)Sets the value specifying the direction in which the arc is drawn.
deepClone()Clones this arc segment.

getPoint()

public Point2D getPoint()

Returns the endpoint of the elliptical arc.

Returns: java.awt.geom.Point2D - The endpoint of the elliptical arc.

setPoint(Point2D value)

public void setPoint(Point2D value)

Sets the endpoint of the elliptical arc.

Parameters:

ParameterTypeDescription
valuejava.awt.geom.Point2DThe endpoint of the elliptical arc.

getSize()

public Dimension2D getSize()

Returns the x and y radius of the elliptical arc as an x,y pair.

Returns: java.awt.geom.Dimension2D - The x and y radius of the elliptical arc as an x,y pair.

setSize(Dimension2D value)

public void setSize(Dimension2D value)

Sets the x and y radius of the elliptical arc as an x,y pair.

Parameters:

ParameterTypeDescription
valuejava.awt.geom.Dimension2DThe x and y radius of the elliptical arc as an x,y pair.

getRotationAngle()

public float getRotationAngle()

Returns the value indicating how the ellipse is rotated relative to the current coordinate system.

Returns: float - The value indicating how the ellipse is rotated relative to the current coordinate system.

setRotationAngle(float value)

public void setRotationAngle(float value)

Sets the value indicating how the ellipse is rotated relative to the current coordinate system.

Parameters:

ParameterTypeDescription
valuefloatThe value indicating how the ellipse is rotated relative to the current coordinate system.

isLargeArc()

public boolean isLargeArc()

Returns the value determining whether the arc is drawn with a sweep of 180 or greater.

Returns: boolean - The value determining whether the arc is drawn with a sweep of 180 or greater.

setLargeArc(boolean value)

public void setLargeArc(boolean value)

Sets the value determining whether the arc is drawn with a sweep of 180 or greater.

Parameters:

ParameterTypeDescription
valuebooleanThe value determining whether the arc is drawn with a sweep of 180 or greater.

getSweepDirection()

public XpsSweepDirection getSweepDirection()

Returns the value specifying the direction in which the arc is drawn.

Returns: XpsSweepDirection - The value specifying the direction in which the arc is drawn.

setSweepDirection(XpsSweepDirection value)

public void setSweepDirection(XpsSweepDirection value)

Sets the value specifying the direction in which the arc is drawn.

Parameters:

ParameterTypeDescription
valueXpsSweepDirectionThe value specifying the direction in which the arc is drawn.

deepClone()

public XpsArcSegment deepClone()

Clones this arc segment.

Returns: XpsArcSegment - Clone of this arc segment.