MicroXYChartPlotter Class
Represents a class that is capable of plotting various shapes on to a MicroXYChart.
public class MicroXYChartPlotter
- Inheritance:
- System.Object Object
Constructors
MicroXYChartPlotter(MicroXYChart)
Initializes a new instance of the MicroXYChart class.
public MicroXYChartPlotter(MicroXYChart chart)
Parameter | Type | Description |
---|---|---|
chart | MicroXYChart | The chart associated with the plotter. |
Properties
Height
Gets the height of the plot area.
public double Height { get; }
Property Value
- System.Double
IsAxisBaselineVisible
Gets a value indicating whether a line is rendered at the baseline value.
public bool IsAxisBaselineVisible { get; }
Property Value
- System.Boolean:
true
if a line is rendered at the baseline value; otherwise,false
.
IsHotTracking
Gets a value indicating whether this instance is hot tracking.
public bool IsHotTracking { get; }
Property Value
- System.Boolean:
true
if this instance is hot tracking; otherwise,false
.
Margin
Gets or sets the margin around the plot area.
public Thickness Margin { get; set; }
Property Value
- System.Windows.Thickness:
The margin around the plot area.
SeriesStyleSelector
Gets or sets custom style-selection logic for a style that can be applied to each element in the associated series.
public MicroSeriesStyleSelector SeriesStyleSelector { get; }
Property Value
- MicroSeriesStyleSelector:
A MicroSeriesStyleSelector object that contains logic that chooses the style to use for each element in the associated series.
Width
Gets the width of the plot area.
public double Width { get; }
Property Value
- System.Double
Methods
AddBaseline(Double, Double, Double, Double)
Adds a baseline to the associated chart.
public void AddBaseline(double x1, double y1, double x2, double y2)
Parameter | Type | Description |
---|---|---|
x1 | System.Double | The X-coordinate of the first point. |
y1 | System.Double | The Y-coordinate of the first point. |
x2 | System.Double | The X-coordinate of the second point. |
y2 | System.Double | The Y-coordinate of the second point. |
AddHorizontalBaseline(Double)
Adds a horizontal baseline to the associated chart.
public void AddHorizontalBaseline(double y)
Parameter | Type | Description |
---|---|---|
y | System.Double | The Y-coordinate of the baseline. |
AddMarker(Double, Double, Style)
Adds a MicroChartMarker to the associated chart.
public void AddMarker(double x, double y, Style style)
Parameter | Type | Description |
---|---|---|
x | System.Double | The X coordinate at which the marker should be added. |
y | System.Double | The Y coordinate at which the marker should be added. |
style | System.Windows.Style | The style that should be applied to the marker. |
AddMarker(Point, Style)
Adds a MicroChartMarker to the associated chart.
public void AddMarker(Point point, Style style)
Parameter | Type | Description |
---|---|---|
point | System.Windows.Point | The point at which the marker should be added. |
style | System.Windows.Style | The style that should be applied to the marker. |
AddPolygon(PointCollection, Style, Geometry, Nullable<Rect>)
Adds a Polygon to the associated chart using with the given points.
public void AddPolygon(PointCollection points, Style style, Geometry clip, Rect? clipBounds)
Parameter | Type | Description |
---|---|---|
points | System.Windows.Media.PointCollection | The points that make up the shape. |
style | System.Windows.Style | The System.Windows.Style to be applied to the shape. |
clip | System.Windows.Media.Geometry | The clipping geometry to be used by the shape. |
clipBounds | System.Nullable<System.Windows.Rect> | The clipping bounds of the shape. |
AddPolyline(PointCollection, Style, Geometry, Nullable<Rect>)
Adds a Polyline to the associated chart using with the given points.
public void AddPolyline(PointCollection points, Style style, Geometry clip, Rect? clipBounds)
Parameter | Type | Description |
---|---|---|
points | System.Windows.Media.PointCollection | The points that make up the shape. |
style | System.Windows.Style | The System.Windows.Style to be applied to the shape. |
clip | System.Windows.Media.Geometry | The clipping geometry to be used by the shape. |
clipBounds | System.Nullable<System.Windows.Rect> | The clipping bounds of the shape. |
AddShape(Shape)
Adds the shape to the associated chart.
public void AddShape(Shape shape)
Parameter | Type | Description |
---|---|---|
shape | System.Windows.Shapes.Shape | The shape to add. |
AddVerticalBaseline(Double)
Adds a vertical baseline to the associated chart.
public void AddVerticalBaseline(double x)
Parameter | Type | Description |
---|---|---|
x | System.Double | The X-coordinate of the baseline. |
GetXAxis(Type)
Gets an IMicroXYAxis associated with the specified type for use along the X-axis.
public IMicroXYAxis GetXAxis(Type type)
Parameter | Type | Description |
---|---|---|
type | System.Type | The type of axis. |
Returns
- IMicroXYAxis:
An IMicroXYAxis associated with the specified type for use along the X-axis.
GetYAxis(Type)
Gets an IMicroXYAxis associated with the specified type for use along the Y-axis.
public IMicroXYAxis GetYAxis(Type type)
Parameter | Type | Description |
---|---|---|
type | System.Type | The type of axis. |
Returns
- IMicroXYAxis:
An IMicroXYAxis associated with the specified type for use along the Y-axis.
Plot()
Plots the series and ranges on the associated chart.
public void Plot()
StartHotTracking(Point)
Starts the hot tracking.
public void StartHotTracking(Point position)
Parameter | Type | Description |
---|---|---|
position | System.Windows.Point | The position of the mouse cursor. |
StopHotTracking()
Stops the hot tracking.
public void StopHotTracking()
UpdateHotTracking(Point)
Updates the hot tracking.
public void UpdateHotTracking(Point position)
Parameter | Type | Description |
---|---|---|
position | System.Windows.Point | The position of the mouse cursor. |
Inherited Members
- System.Object.ToString()
- System.Object.Equals(System.Object)
- System.Object.Equals(System.Object, System.Object)
- System.Object.ReferenceEquals(System.Object, System.Object)
- System.Object.GetHashCode()
- System.Object.GetType()
- System.Object.MemberwiseClone()