public class CartesianChartGrid extends ChartElementPresenter
RadCartesianChartView
. Adds major and minor lines, connected to each Major and Minor tick of each axis.Modifier and Type | Field and Description |
---|---|
CartesianChartGridModel |
grid |
static int |
LINE_COLOR_PROPERTY_KEY |
static int |
MAJOR_LINES_THICKNESS_PROPERTY_KEY |
static int |
MAJOR_LINES_VISIBILITY_PROPERTY_KEY |
static int |
MAJOR_X_LINE_DASH_ARRAY_PROPERTY_KEY |
static int |
MAJOR_X_LINE_RENDER_MODE_PROPERTY_KEY |
static int |
MAJOR_Y_LINE_DASH_ARRAY_PROPERTY_KEY |
static int |
MAJOR_Y_LINE_RENDER_MODE_PROPERTY_KEY |
static int |
STRIP_LINES_VISIBILITY_PROPERTY_KEY |
static int |
VERTICAL_LINE_COLOR_PROPERTY_KEY |
Constructor and Description |
---|
CartesianChartGrid()
Initializes a new instance of the
CartesianChartGrid class. |
Modifier and Type | Method and Description |
---|---|
int |
getLineColor()
Gets the color of the grid lines.
|
float |
getLineThickness()
Gets the line thickness for the major lines.
|
int |
getMajorLinesVisibility()
Gets the visibility of the major grid lines.
|
float[] |
getMajorXLineDashArray()
Gets or sets the dash array used to define each major X line.
|
int |
getMajorXLinesRenderMode()
Gets the render mode of the major X lines.
|
float[] |
getMajorYLineDashArray()
Gets or sets the dash array used to define each major Y line.
|
int |
getMajorYLinesRenderMode()
Gets the render mode of the major Y lines.
|
int |
getStripLinesVisibility()
Gets the
GridLineVisibility of the grid stripes. |
int |
getVerticalLineColor() |
float |
getVerticalLineThickness()
Gets the line thickness for the vertical lines.
|
ObservableCollection<Paint> |
getXStripeBrushes()
Gets the
ObservableCollection of brushes used to display x-axis stripes. |
ObservableCollection<Paint> |
getYStripeBrushes()
Gets the
ObservableCollection of brushes used to display y-axis stripes. |
void |
render(Canvas canvas)
Used to render the current presenter instance onto the passed canvas object.
|
void |
setHorizontalAxis(Axis axis) |
void |
setLineColor(int color)
Sets the line color of the grid lines.
|
void |
setLineThickness(float lineThickness)
Sets the line thickness for the major lines.
|
void |
setMajorLinesVisibility(int value)
Sets the visibility of the major grid lines.
|
void |
setMajorXLineDashArray(float[] value)
Sets the dash pattern for the major X lines.
|
void |
setMajorXLinesRenderMode(int value)
Sets the render mode of the major X lines.
|
void |
setMajorYLineDashArray(float[] value)
Sets the dash pattern for the major Y lines.
|
void |
setMajorYLinesRenderMode(int value)
Sets the render mode of the major Y lines.
|
void |
setStripLinesVisibility(int value)
Sets the
GridLineVisibility of the grid stripes. |
void |
setVerticalAxis(Axis axis) |
void |
setVerticalLineColor(int value) |
void |
setVerticalLineThickness(float lineThickness)
Sets the line thickness for the vertical lines.
|
attach, detach, getCanApplyPalette, getChart, getCollectionIndex, getPalette, getZIndex, invalidatePalette, onPaletteInvalidated, onPaletteUpdated, requestLayout, requestRender, setZIndex, updatePalette
getPaletteFamily, getPaletteFamilyCore, isLoaded, isPaletteApplied, isVisible, measureContent, paletteFamily, postRender, refreshNode, setCanApplyPalette, setPaletteFamily, setVisible, setVisible
getValue, resetPropertyValue, setValue, setValue
public static final int MAJOR_LINES_THICKNESS_PROPERTY_KEY
public static final int MAJOR_LINES_VISIBILITY_PROPERTY_KEY
public static final int STRIP_LINES_VISIBILITY_PROPERTY_KEY
public static final int LINE_COLOR_PROPERTY_KEY
public static final int VERTICAL_LINE_COLOR_PROPERTY_KEY
public static final int MAJOR_X_LINE_DASH_ARRAY_PROPERTY_KEY
public static final int MAJOR_Y_LINE_DASH_ARRAY_PROPERTY_KEY
public static final int MAJOR_X_LINE_RENDER_MODE_PROPERTY_KEY
public static final int MAJOR_Y_LINE_RENDER_MODE_PROPERTY_KEY
public CartesianChartGridModel grid
public CartesianChartGrid()
CartesianChartGrid
class.public void setHorizontalAxis(Axis axis)
public void setVerticalAxis(Axis axis)
public int getLineColor()
public void setLineColor(int color)
color
- The new line color.public int getVerticalLineColor()
public void setVerticalLineColor(int value)
public int getMajorLinesVisibility()
GridLineVisibility
public void setMajorLinesVisibility(int value)
value
- The new visibility.GridLineVisibility
public float[] getMajorXLineDashArray()
public void setMajorXLineDashArray(float[] value)
value
- A float array that represents the line dash pattern.public float[] getMajorYLineDashArray()
public void setMajorYLineDashArray(float[] value)
value
- A float array that represents the line dash pattern.public int getMajorXLinesRenderMode()
GridLineRenderMode
.GridLineRenderMode
public void setMajorXLinesRenderMode(int value)
value
- The X lines GridLineRenderMode
.GridLineRenderMode
public int getMajorYLinesRenderMode()
GridLineRenderMode
.GridLineRenderMode
public void setMajorYLinesRenderMode(int value)
value
- The Y lines GridLineRenderMode
.GridLineRenderMode
public int getStripLinesVisibility()
GridLineVisibility
of the grid stripes.GridLineVisibility
of the grid stripes.public void setStripLinesVisibility(int value)
GridLineVisibility
of the grid stripes.value
- The new visibility.public ObservableCollection<Paint> getXStripeBrushes()
ObservableCollection
of brushes used to display x-axis stripes.public ObservableCollection<Paint> getYStripeBrushes()
ObservableCollection
of brushes used to display y-axis stripes.public float getLineThickness()
public void setLineThickness(float lineThickness)
lineThickness
- new line thickness.public float getVerticalLineThickness()
public void setVerticalLineThickness(float lineThickness)
lineThickness
- new vertical line thickness.public void render(Canvas canvas)
PresenterBase
render
in class PresenterBase
canvas
- the canvas onto which the presenter is to be rendered.