Class Arc
Used to create arc objects.
public class Arc : IDrawable
- Inheritance
-
Arc
- Implements
- Derived
- Inherited Members
Constructors
Arc()
The default constructor.
public Arc()
Methods
DrawOn(Page)
Draws this line on the specified page.
public float[] DrawOn(Page page)
Parameters
pagePagethe page to draw on.
Returns
- float[]
x and y coordinates of the bottom right corner of this component.
ScaleBy(float)
Scales this line by the specified factor.
public Arc ScaleBy(float factor)
Parameters
factorfloatthe factor used to scale the line.
Returns
- Arc
this Arc object.
SetActualText(string)
Sets the actual text for this line.
public Arc SetActualText(string actualText)
Parameters
actualTextstringthe actual text for the line.
Returns
- Arc
this Arc.
SetAltDescription(string)
Sets the alternate description of this line.
public Arc SetAltDescription(string altDescription)
Parameters
altDescriptionstringthe alternate description of the line.
Returns
- Arc
this Arc.
SetFillColor(int)
Sets the fill color as a 0xRRGGBB value, for example Color.blue. Color.transparent leaves it unchanged.
public Arc SetFillColor(int color)
Parameters
colorint
Returns
SetFillColor(float[])
Sets the fill color from an array of red, green and blue values.
public Arc SetFillColor(float[] rgbColor)
Parameters
rgbColorfloat[]
Returns
SetLocation(float, float)
Sets the center of this arc.
public Arc SetLocation(float cx, float cy)
Parameters
Returns
SetRadius(float)
Sets both radii of this arc to the same value, making it circular.
public Arc SetRadius(float r)
Parameters
rfloat
Returns
SetRadiusX(float)
Sets the horizontal radius of this arc.
public Arc SetRadiusX(float rx)
Parameters
rxfloat
Returns
SetRadiusY(float)
Sets the vertical radius of this arc.
public Arc SetRadiusY(float ry)
Parameters
ryfloat
Returns
SetRotation(float)
Rotates this arc clockwise by the specified degrees, as every rotation in PDFjet turns.
public Arc SetRotation(float degrees)
Parameters
degreesfloat
Returns
SetStartAngle(float)
Sets the angle in degrees where this arc starts, clockwise from the 3 o'clock direction, as every angle in PDFjet turns.
public Arc SetStartAngle(float angle)
Parameters
anglefloat
Returns
SetStartPointToEndOf(Line)
Starts this arc at the end point of the specified line.
public Arc SetStartPointToEndOf(Line line)
Parameters
lineLine
Returns
SetStrokeColor(int)
Sets the color for this line. Color.transparent leaves it unchanged.
public Arc SetStrokeColor(int color)
Parameters
colorintthe color specified as an integer.
Returns
- Arc
this Arc object.
SetStrokeColor(float[])
Sets the stroke color from an array of red, green and blue values.
public Arc SetStrokeColor(float[] rgbColor)
Parameters
rgbColorfloat[]
Returns
SetStrokeDashPattern(string)
The line dash pattern controls the pattern of dashes and gaps used to stroke paths. It is specified by a dash array and a dash phase. The elements of the dash array are positive numbers that specify the lengths of alternating dashes and gaps. The dash phase specifies the distance into the dash pattern at which to start the dash. The elements of both the dash array and the dash phase are expressed in user space units.
Examples of line dash patterns:
"[Array] Phase" Appearance Description
_______________ _________________ ____________________________________
"[] 0" ----------------- Solid line
"[3] 0" --- --- --- 3 units on, 3 units off, ...
"[2] 1" - -- -- -- -- 1 on, 2 off, 2 on, 2 off, ...
"[2 1] 0" -- -- -- -- -- -- 2 on, 1 off, 2 on, 1 off, ...
"[3 5] 6" --- --- 2 off, 3 on, 5 off, 3 on, 5 off, ...
"[2 3] 11" - -- -- -- 1 on, 3 off, 2 on, 3 off, 2 on, ...
public Arc SetStrokeDashPattern(string strokeDashPattern)
Parameters
strokeDashPatternstringthe stroke dash pattern.
Returns
- Arc
this Arc object.
SetStrokeWidth(float)
Sets the width of this line.
public Arc SetStrokeWidth(float width)
Parameters
widthfloatthe width.
Returns
- Arc
this Arc object.
SetSweep(float)
Sets how many degrees this arc sweeps from its start angle: clockwise for a positive angle, as every angle in PDFjet turns, and counterclockwise for a negative angle.
public Arc SetSweep(float degrees)
Parameters
degreesfloat