public final class DefaultGrid 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()
IsDefaultGrid
false
, do not display grid for this axis.isDisplay
in interface IsDefaultGrid
false
, do not display grid for this axis.public String getColorAsString()
IsDefaultScaleLines
getColorAsString
in interface IsDefaultScaleLines
public double getBorderDashOffset()
IsDefaultScaleLines
getBorderDashOffset
in interface IsDefaultScaleLines
public int getBorderWidth()
IsDefaultGrid
getBorderWidth
in interface IsDefaultGrid
public String getBorderColorAsString()
IsDefaultGrid
getBorderColorAsString
in interface IsDefaultGrid
public int getLineWidth()
IsDefaultScaleLines
getLineWidth
in interface IsDefaultScaleLines
public boolean isDrawBorder()
IsDefaultGrid
true
, draw border at the edge between the axis and the chart area.isDrawBorder
in interface IsDefaultGrid
true
, draw border at the edge between the axis and the chart area.public boolean isDrawOnChartArea()
IsDefaultGrid
true
, draw lines on the chart area inside the axis lines.isDrawOnChartArea
in interface IsDefaultGrid
true
, draw lines on the chart area inside the axis lines.public boolean isDrawTicks()
IsDefaultGrid
true
, draw lines beside the ticks in the axis area beside the chart.isDrawTicks
in interface IsDefaultGrid
true
, draw lines beside the ticks in the axis area beside the chart.public int getTickLength()
IsDefaultGrid
getTickLength
in interface IsDefaultGrid
public boolean isOffset()
IsDefaultGrid
true
, grid will be shifted to be between labels. This is set to true
in the bar chart by default.isOffset
in interface IsDefaultGrid
true
, grid will be shifted to be between labels.public boolean isCircular()
IsDefaultGrid
true
, grid are circular (on radar chart only).isCircular
in interface IsDefaultGrid
true
, grid are circular (on radar chart only).public int getZ()
IsDefaultGrid
getZ
in interface IsDefaultGrid
public double getTickBorderDashOffset()
IsDefaultGrid
getTickBorderDashOffset
in interface IsDefaultGrid
public String getTickColorAsString()
IsDefaultGrid
getTickColorAsString
in interface IsDefaultGrid
public int getTickWidth()
IsDefaultGrid
getTickWidth
in interface IsDefaultGrid
public List<Integer> getBorderDash()
IsDefaultScaleLines
getBorderDash
in interface IsDefaultScaleLines