Class Point
A point with a marker: a shape drawn around its (x, y) coordinates, which are the center of the marker. A point is drawn on a page on its own, as the marker of a table cell, or in a chart Series, and a list of points is a path for Page.DrawPath.
Please see Example_05.
public class Point : IDrawable
- Inheritance
-
Point
- Implements
- Inherited Members
Constructors
Point()
The default constructor.
public Point()
Point(Point)
Copy constructor. Creates a copy of the specified point, including its marker and its URI action.
public Point(Point point)
Parameters
pointPointthe point to copy.
Point(float, float)
Constructor for creating point objects.
public Point(float x, float y)
Parameters
xfloatthe x coordinate of this point when drawn on the page.
yfloatthe y coordinate of this point when drawn on the page.
Point(float, float, char)
Constructor for creating point objects.
public Point(float x, float y, char controlPoint)
Parameters
xfloatthe x coordinate of this point when drawn on the page.
yfloatthe y coordinate of this point when drawn on the page.
controlPointcharthe control point type if this point is one of the points specifying a curve.
Fields
CONTROL_POINT_C
A control point of a curve drawn with the c operator, which uses both control points.
public static readonly char CONTROL_POINT_C
Field Value
CONTROL_POINT_V
A control point of a curve drawn with the v operator, where the first control point is the start point.
public static readonly char CONTROL_POINT_V
Field Value
CONTROL_POINT_Y
A control point of a curve drawn with the y operator, where the second control point is the end point.
public static readonly char CONTROL_POINT_Y
Field Value
Methods
DrawOn(Page)
Draws this point 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.
GetAltDescription()
Returns what the point stands for.
public string GetAltDescription()
Returns
- string
the description, or null.
GetFillColor()
Returns the fill color.
public float[] GetFillColor()
Returns
- float[]
GetRadius()
Returns the radius of this point.
public float GetRadius()
Returns
- float
the radius of this point.
GetShape()
Returns the shape of the marker drawn at this point.
public Shape GetShape()
Returns
GetStrokeColor()
Returns the stroke color.
public float[] GetStrokeColor()
Returns
- float[]
GetStrokeWidth()
Returns the width of the lines used to draw this point.
public float GetStrokeWidth()
Returns
- float
the width of the lines used to draw this point.
GetURIAction()
Returns the URI of the link opened by a click on this point.
public string GetURIAction()
Returns
- string
the URI, or null.
GetX()
Returns the x coordinate of this point.
public float GetX()
Returns
- float
the x coordinate of this point.
GetY()
Returns the y coordinate of this point.
public float GetY()
Returns
- float
the y coordinate of this point.
SetAltDescription(string)
Sets what a point that is a link stands for, like the country a point of a chart is, for a screen reader: in a tagged document, PDF/UA or a PDF/A of level A, a point of a chart that is a link is a figure of its own in the Link, described by it. Without one it is described by its URI.
public Point SetAltDescription(string altDescription)
Parameters
altDescriptionstringwhat the point stands for.
Returns
- Point
this Point object.
SetFillColor(int)
Sets the fill color as a 0xRRGGBB value. Color.transparent leaves it unchanged.
public Point SetFillColor(int color)
Parameters
colorint
Returns
SetFillColor(float[])
Sets the fill color from an array of red, green and blue values.
public Point SetFillColor(float[] rgbColor)
Parameters
rgbColorfloat[]
Returns
SetLocation(float, float)
Sets the location (x, y) of this point.
public Point SetLocation(float x, float y)
Parameters
xfloatthe x coordinate of this point when drawn on the page.
yfloatthe y coordinate of this point when drawn on the page.
Returns
- Point
Point the point.
SetRadius(float)
Sets the radius of this point.
public Point SetRadius(float r)
Parameters
rfloatthe radius.
Returns
- Point
this Point object.
SetShape(Shape)
Sets the shape of the marker drawn at this point, for example Shape.CIRCLE; Shape.INVISIBLE draws no marker.
public Point SetShape(Shape shape)
Parameters
shapeShape
Returns
SetStrokeColor(int)
Sets the stroke color as a 0xRRGGBB value. Color.transparent leaves it unchanged.
public Point SetStrokeColor(int color)
Parameters
colorint
Returns
SetStrokeColor(float[])
Sets the stroke color from an array of red, green and blue values.
public Point SetStrokeColor(float[] rgbColor)
Parameters
rgbColorfloat[]
Returns
SetStrokeWidth(float)
Sets the width of the lines used to draw this point.
public Point SetStrokeWidth(float strokeWidth)
Parameters
strokeWidthfloat
Returns
SetURIAction(string)
Sets the URI of the link opened by a click on this point.
public Point SetURIAction(string uri)
Parameters
uristringthe URI.
Returns
- Point
this Point object.
SetX(float)
Sets the x coordinate of this point.
public Point SetX(float x)
Parameters
xfloatthe x coordinate of this point when drawn on the page.
Returns
- Point
this Point object.
SetY(float)
Sets the y coordinate of this point.
public Point SetY(float y)
Parameters
yfloatthe y coordinate of this point when drawn on the page.
Returns
- Point
this Point object.