public final class DefaultChartGrid extends Object implements IsDefaultGrid
| Modifier and Type | Method and Description |
|---|---|
String |
getBorderColorAsString()
If set, used as the color of the border line.
If unset, the first color option is resolved and used. |
List<Integer> |
getBorderDash()
Returns the line dash pattern used when stroking lines, using an array of values which specify alternating lengths of lines and gaps which describe the pattern.
|
double |
getBorderDashOffset()
Returns the line dash pattern offset.
|
int |
getBorderWidth()
If set, used as the width of the border line.
If unset, the first lineWidth option is resolved and used. |
String |
getColorAsString()
Returns the color of lines.
|
int |
getLineWidth()
Returns the width of lines.
|
double |
getTickBorderDashOffset()
Returns the offset for the line dash of the tick mark.
|
String |
getTickColorAsString()
Returns the color of the tick line.
|
int |
getTickLength()
Returns the length in pixels that the grid will draw in the the axis area.
|
int |
getTickWidth()
Returns the width of the tick mark in pixels.
The first element if set as array. |
int |
getZ()
Returns z-index of grid layer.
Values less than or equals to 0 are drawn under data sets, greater than 0 on top. |
boolean |
isCircular()
If
true, grid are circular (on radar chart only). |
boolean |
isDisplay()
If
false, do not display grid for this axis. |
boolean |
isDrawBorder()
If
true, draw border at the edge between the axis and the chart area. |
boolean |
isDrawOnChartArea()
If
true, draw lines on the chart area inside the axis lines.This is useful when there are multiple axes and you need to control which grid are drawn. |
boolean |
isDrawTicks()
If
true, draw lines beside the ticks in the axis area beside the chart. |
boolean |
isOffset()
If
true, grid will be shifted to be between labels. |
public boolean isDisplay()
IsDefaultGridfalse, do not display grid for this axis.isDisplay in interface IsDefaultGridfalse, do not display grid for this axis.public String getColorAsString()
IsDefaultScaleLinesgetColorAsString in interface IsDefaultScaleLinespublic double getBorderDashOffset()
IsDefaultScaleLinesgetBorderDashOffset in interface IsDefaultScaleLinespublic int getBorderWidth()
IsDefaultGridgetBorderWidth in interface IsDefaultGridpublic String getBorderColorAsString()
IsDefaultGridgetBorderColorAsString in interface IsDefaultGridpublic int getLineWidth()
IsDefaultScaleLinesgetLineWidth in interface IsDefaultScaleLinespublic boolean isDrawBorder()
IsDefaultGridtrue, draw border at the edge between the axis and the chart area.isDrawBorder in interface IsDefaultGridtrue, draw border at the edge between the axis and the chart area.public boolean isDrawOnChartArea()
IsDefaultGridtrue, draw lines on the chart area inside the axis lines.isDrawOnChartArea in interface IsDefaultGridtrue, draw lines on the chart area inside the axis lines.public boolean isDrawTicks()
IsDefaultGridtrue, draw lines beside the ticks in the axis area beside the chart.isDrawTicks in interface IsDefaultGridtrue, draw lines beside the ticks in the axis area beside the chart.public int getTickLength()
IsDefaultGridgetTickLength in interface IsDefaultGridpublic boolean isOffset()
IsDefaultGridtrue, grid will be shifted to be between labels. This is set to true in the bar chart by default.isOffset in interface IsDefaultGridtrue, grid will be shifted to be between labels.public boolean isCircular()
IsDefaultGridtrue, grid are circular (on radar chart only).isCircular in interface IsDefaultGridtrue, grid are circular (on radar chart only).public int getZ()
IsDefaultGridgetZ in interface IsDefaultGridpublic double getTickBorderDashOffset()
IsDefaultGridgetTickBorderDashOffset in interface IsDefaultGridpublic String getTickColorAsString()
IsDefaultGridgetTickColorAsString in interface IsDefaultGridpublic int getTickWidth()
IsDefaultGridgetTickWidth in interface IsDefaultGridpublic List<Integer> getBorderDash()
IsDefaultScaleLinesgetBorderDash in interface IsDefaultScaleLines