public class AxisStyle extends AbstractConfigurationObject
Constructor and Description |
---|
AxisStyle() |
Modifier and Type | Method and Description |
---|---|
Color |
getAlternateGridColor() |
Color |
getGridLineColor() |
Number |
getGridLineWidth() |
Style |
getLabels() |
Color |
getLineColor() |
Number |
getLineWidth() |
TickIntervalStyle |
getMinorTickInterval() |
Style |
getSubtitle() |
Color |
getTickColor() |
Number |
getTickWidth() |
Style |
getTitle() |
void |
setAlternateGridColor(Color alternateGridColor)
Sets the alternate grid color.
|
void |
setGridLineColor(Color gridLineColor)
Sets the color of the grid lines extending the ticks across the plot
area.
|
void |
setGridLineWidth(Number gridLineWidth)
Sets the width of the grid lines extending the ticks across the plot
area.
|
void |
setLabels(Style style)
Sets the style for labels
|
void |
setLineColor(Color lineColor)
Sets the color of the line marking the axis itself.
|
void |
setLineWidth(Number lineWidth)
Sets the width of the line marking the axis itself.
|
void |
setMinorTickInterval(TickIntervalStyle minorTickInterval)
Sets the tick interval in scale units for the minor ticks.
|
void |
setSubtitle(Style style)
Sets the subtitle style
|
void |
setTickColor(Color tickColor)
Sets the color for the main tick marks.
|
void |
setTickWidth(Number tickWidth)
Sets the pixel width of the major tick marks.
|
void |
setTitle(Style style)
Sets the title style
|
public TickIntervalStyle getMinorTickInterval()
setMinorTickInterval(TickIntervalStyle)
public void setMinorTickInterval(TickIntervalStyle minorTickInterval)
TickIntervalStyle.AUTO
, the minor tick interval is
calculated as a fifth of the tickInterval. If null, minor ticks are not
shown.
On logarithmic axes, the unit is the power of the value. For example,
setting the minor tick interval to 1 puts one tick on each of 0.1, 1, 10,
100 etc. Setting the minor tick interval to 0.1 produces 9 ticks between
1 and 10, 10 and 100 etc. A minor tick interval of
TickIntervalStyle.AUTO
on a log axis results in a best guess,
attempting to enter approximately 5 minor ticks between each major tick.
Defaults to null.minorTickInterval
- public Color getLineColor()
setLineColor(Color)
public void setLineColor(Color lineColor)
lineColor
- public Number getLineWidth()
setLineWidth(Number)
public void setLineWidth(Number lineWidth)
lineWidth
- public Number getTickWidth()
setTickWidth(Number)
public void setTickWidth(Number tickWidth)
tickWidth
- public Color getTickColor()
setTickColor(Color)
public void setTickColor(Color tickColor)
tickColor
- public Style getTitle()
public void setTitle(Style style)
style
- public Style getSubtitle()
public void setSubtitle(Style style)
style
- Subtitle stylepublic Style getLabels()
public void setLabels(Style style)
style
- Labels stylepublic Number getGridLineWidth()
setGridLineWidth(Number)
public void setGridLineWidth(Number gridLineWidth)
gridLineWidth
- public Color getAlternateGridColor()
setAlternateGridColor(Color)
public void setAlternateGridColor(Color alternateGridColor)
alternateGridColor
- public Color getGridLineColor()
setGridLineColor(Color)
public void setGridLineColor(Color gridLineColor)
gridLineColor
- Color of grid linesCopyright © 2022. All rights reserved.