public class AxesGridLines extends Object implements Serializable
Constructor and Description |
---|
AxesGridLines() |
Modifier and Type | Method and Description |
---|---|
String |
encode()
Write the common ticks options of axes
|
List<Number> |
getBorderDash()
Gets the borderDash
|
Number |
getBorderDashOffset()
Gets the borderDashOffset
|
Object |
getColor()
Gets the color
|
Object |
getLineWidth()
Gets the lineWidth
|
Number |
getTickMarkLength()
Gets the tickMarkLength
|
List<Number> |
getZeroLineBorderDash()
Gets the zeroLineBorderDash
|
Number |
getZeroLineBorderDashOffset()
Gets the zeroLineBorderDashOffset
|
String |
getZeroLineColor()
Gets the zeroLineColor
|
Number |
getZeroLineWidth()
Gets the zeroLineWidth
|
boolean |
isDisplay()
Gets the display
|
boolean |
isDrawBorder()
Gets the drawBorder
|
boolean |
isDrawOnChartArea()
Gets the drawOnChartArea
|
boolean |
isDrawTicks()
Gets the drawTicks
|
boolean |
isOffsetGridLines()
Gets the offsetGridLines
|
void |
setBorderDash(List<Number> borderDash)
Sets the borderDash
|
void |
setBorderDashOffset(Number borderDashOffset)
Sets the borderDashOffset
|
void |
setColor(Object color)
Sets the color
|
void |
setDisplay(boolean display)
Sets the display
|
void |
setDrawBorder(boolean drawBorder)
Sets the drawBorder
|
void |
setDrawOnChartArea(boolean drawOnChartArea)
Sets the drawOnChartArea
|
void |
setDrawTicks(boolean drawTicks)
Sets the drawTicks
|
void |
setLineWidth(Object lineWidth)
Sets the lineWidth
|
void |
setOffsetGridLines(boolean offsetGridLines)
Sets the offsetGridLines
|
void |
setTickMarkLength(Number tickMarkLength)
Sets the tickMarkLength
|
void |
setZeroLineBorderDash(List<Number> zeroLineBorderDash)
Sets the zeroLineBorderDash
|
void |
setZeroLineBorderDashOffset(Number zeroLineBorderDashOffset)
Sets the zeroLineBorderDashOffset
|
void |
setZeroLineColor(String zeroLineColor)
Sets the zeroLineColor
|
void |
setZeroLineWidth(Number zeroLineWidth)
Sets the zeroLineWidth
|
public boolean isDisplay()
public void setDisplay(boolean display)
display
- If false, do not display grid lines for this axis.public Object getColor()
public void setColor(Object color)
color
- The color of the grid lines.
If specified as an array, the first color applies to the first grid line, the second to the second grid line and so on.public void setBorderDash(List<Number> borderDash)
borderDash
- Length and spacing of dashes on grid lines.public Number getBorderDashOffset()
public void setBorderDashOffset(Number borderDashOffset)
borderDashOffset
- Offset for line dashes.public Object getLineWidth()
public void setLineWidth(Object lineWidth)
lineWidth
- Stroke width of grid lines.public boolean isDrawBorder()
public void setDrawBorder(boolean drawBorder)
drawBorder
- If true, draw border at the edge between the axis and the chart area.public boolean isDrawOnChartArea()
public void setDrawOnChartArea(boolean drawOnChartArea)
drawOnChartArea
- 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 lines are drawn.public boolean isDrawTicks()
public void setDrawTicks(boolean drawTicks)
drawTicks
- If true, draw lines beside the ticks in the axis area beside the chart.public Number getTickMarkLength()
public void setTickMarkLength(Number tickMarkLength)
tickMarkLength
- Length in pixels that the grid lines will draw into the axis area.public Number getZeroLineWidth()
public void setZeroLineWidth(Number zeroLineWidth)
zeroLineWidth
- Stroke width of the grid line for the first index (index 0).public String getZeroLineColor()
public void setZeroLineColor(String zeroLineColor)
zeroLineColor
- Stroke color of the grid line for the first index (index 0).public List<Number> getZeroLineBorderDash()
public void setZeroLineBorderDash(List<Number> zeroLineBorderDash)
zeroLineBorderDash
- Length and spacing of dashes of the grid line for the first index (index 0).public Number getZeroLineBorderDashOffset()
public void setZeroLineBorderDashOffset(Number zeroLineBorderDashOffset)
zeroLineBorderDashOffset
- Offset for line dashes of the grid line for the first index (index 0).public boolean isOffsetGridLines()
public void setOffsetGridLines(boolean offsetGridLines)
offsetGridLines
- If true, grid lines will be shifted to be between labels.
This is set to true in the bar chart by default.public String encode() throws IOException
IOException
- If an I/O error occursCopyright © 2020. All rights reserved.