public class LinearTicks extends Ticks<LinearTicks>
Constructor and Description |
---|
LinearTicks() |
Modifier and Type | Method and Description |
---|---|
Boolean |
getBeginAtZero() |
BigDecimal |
getFixedStepSize() |
BigDecimal |
getMax() |
BigDecimal |
getMaxTicksLimit() |
BigDecimal |
getMin() |
BigDecimal |
getStepSize() |
BigDecimal |
getSuggestedMax() |
BigDecimal |
getSuggestedMin() |
LinearTicks |
setBeginAtZero(Boolean beginAtZero)
if true, scale will inclulde 0 if it is not already included.
|
LinearTicks |
setFixedStepSize(BigDecimal fixedStepSize)
User defined fixed step size for the scale.
|
LinearTicks |
setMax(BigDecimal max)
User defined maximum number for the scale, overrides maximum value from
data.
|
LinearTicks |
setMax(int max) |
LinearTicks |
setMaxTicksLimit(BigDecimal maxTicksLimit)
Maximum number of ticks and gridlines to show.
|
LinearTicks |
setMin(BigDecimal min)
User defined minimum number for the scale, overrides minimum value from
data.
|
LinearTicks |
setMin(int min) |
LinearTicks |
setStepSize(BigDecimal stepSize)
if defined, it can be used along with the min and the max to give a
custom number of steps.
|
LinearTicks |
setStepSize(double stepSize) |
LinearTicks |
setStepSize(int stepSize) |
LinearTicks |
setSuggestedMax(BigDecimal suggestedMax)
User defined maximum number for the scale, overrides maximum value except
for if it is lower than the maximum value.
|
LinearTicks |
setSuggestedMin(BigDecimal suggestedMin)
User defined minimum number for the scale, overrides minimum value except
for if it is higher than the minimum value.
|
getAutoSkip, getAutoSkipPadding, getCallback, getDisplay, getFontColor, getFontFamily, getFontSize, getFontStyle, getLabelOffset, getMaxRotation, getMinRotation, getMirror, getPadding, getReverse, setAutoSkip, setAutoSkipPadding, setCallback, setDisplay, setFontColor, setFontFamily, setFontSize, setFontStyle, setLabelOffset, setMaxRotation, setMinRotation, setMirror, setPadding, setReverse
public Boolean getBeginAtZero()
setBeginAtZero(Boolean)
public LinearTicks setBeginAtZero(Boolean beginAtZero)
if true, scale will inclulde 0 if it is not already included.
Default -
public BigDecimal getMin()
setMin(BigDecimal)
public LinearTicks setMin(int min)
setMin(BigDecimal)
public LinearTicks setMin(BigDecimal min)
User defined minimum number for the scale, overrides minimum value from data.
Default -
public BigDecimal getMax()
setMax(BigDecimal)
public LinearTicks setMax(int max)
setMax(BigDecimal)
public LinearTicks setMax(BigDecimal max)
User defined maximum number for the scale, overrides maximum value from data.
Default -
public BigDecimal getMaxTicksLimit()
setMaxTicksLimit(BigDecimal)
public LinearTicks setMaxTicksLimit(BigDecimal maxTicksLimit)
Maximum number of ticks and gridlines to show. If not defined, it will limit to 11 ticks but will show all gridlines.
Default 11
public BigDecimal getFixedStepSize()
setFixedStepSize(BigDecimal)
public LinearTicks setFixedStepSize(BigDecimal fixedStepSize)
User defined fixed step size for the scale. If set, the scale ticks will be enumerated by multiple of stepSize, having one tick per increment. If not set, the ticks are labeled automatically using the nice numbers algorithm.
Default -
public BigDecimal getStepSize()
setStepSize(BigDecimal)
public LinearTicks setStepSize(double stepSize)
setStepSize(BigDecimal)
public LinearTicks setStepSize(int stepSize)
setStepSize(BigDecimal)
public LinearTicks setStepSize(BigDecimal stepSize)
if defined, it can be used along with the min and the max to give a custom number of steps. See the example below.
Default -
public BigDecimal getSuggestedMax()
setSuggestedMax(BigDecimal)
public LinearTicks setSuggestedMax(BigDecimal suggestedMax)
User defined maximum number for the scale, overrides maximum value except for if it is lower than the maximum value.
Default -
public BigDecimal getSuggestedMin()
setSuggestedMin(BigDecimal)
public LinearTicks setSuggestedMin(BigDecimal suggestedMin)
User defined minimum number for the scale, overrides minimum value except for if it is higher than the minimum value.
Default -
Copyright © 2020. All rights reserved.