| Modifier and Type | Class and Description |
|---|---|
| public static class | NumberAxis.
Default number formatter for NumberAxis, this stays in sync with auto-ranging and formats values appropriately. |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final ChartLayoutAnimator | |
| private Object | |
| private final StringProperty | |
| private final NumberAxis. | |
| private BooleanProperty | forceZeroInRange
When true zero is always included in the visible range. |
| private DoubleProperty | tickUnit
The value between each major tick mark in data units. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | NumberAxis(double
The lower bound for this axis, i.e. min plottable value lowerBound, double The upper bound for this axis, i.e. max plottable value upperBound, double The tick unit, i.e. space between tickmarks tickUnit)Creates a non-auto-ranging NumberAxis with the given upper bound, lower bound and tick unit. |
| public | NumberAxis(String
The name to display for this axis axisLabel, double The lower bound for this axis, i.e. min plottable value lowerBound, double The upper bound for this axis, i.e. max plottable value upperBound, double The tick unit, i.e. space between tickmarks tickUnit)Creates a non-auto-ranging NumberAxis with the given lower bound, upper bound and tick unit. |
| Modifier and Type | Method and Description |
|---|---|
| protected Object | Returns: The calculated rangeThe min data value that needs to be plotted on this axis minValue, double The max data value that needs to be plotted on this axis maxValue, double The length of the axis in display coordinates length, double The approximate average size a label takes along the axis labelSize)Overrides javafx. Called to set the upper and lower bound and anything else that needs to be auto-ranged. |
| protected List | Returns: List of data values where to draw minor tick marksImplements abstract javafx. Calculates a list of the data values for every minor tick mark |
| protected List | Returns: A list of tick marks that fit along the axis if it was the given lengthThe length of the axis in display units length, Object A range object returned from autoRange() range)Implements abstract javafx. Calculates a list of all the data values for each tick mark in range |
| public final BooleanProperty | |
| public static List | Returns: theCssMetaDataHides javafx. Gets the |
| public List | getCssMetaData()
Overrides javafx. Implements javafx. This method should delegate to |
| protected Object | Returns: A range object that can be passed to setRange() and calculateTickValues()Implements abstract javafx. Called to get the current axis range. |
| protected String | Returns: A formatted string for the given valueThe value to format into a tick label string value)Implements abstract javafx. Get the string label name for a tick mark with the given value. |
| public final double | |
| public final boolean | |
| protected Dimension2D | Returns: size of tick mark label for given valuetick mark value value, Object range to use during calculations range)Overrides javafx. Measures the size of the label for a given tick mark value. |
| private Dimension2D | Returns: size of tick mark label for given valuetick mark value value, double The text rotation rotation, String The number formatter numFormatter)Measures the size of the label for a given tick mark value. |
| public final void | |
| protected void | setRange(Object
A range object returned from autoRange() range, boolean If true animate the change in range animate)Implements abstract javafx. Called to set the current axis range to the given range. |
| public final void | |
| public final DoubleProperty |
| animator | back to summary |
|---|---|
| private final ChartLayoutAnimator animator | |
| currentAnimationID | back to summary |
|---|---|
| private Object currentAnimationID | |
| currentFormatterProperty | back to summary |
|---|---|
| private final StringProperty currentFormatterProperty | |
| defaultFormatter | back to summary |
|---|---|
| private final NumberAxis. | |
| forceZeroInRange | back to summary |
|---|---|
| private BooleanProperty forceZeroInRange When true zero is always included in the visible range. This only has effect if auto-ranging is on. | |
| tickUnit | back to summary |
|---|---|
| private DoubleProperty tickUnit The value between each major tick mark in data units. This is automatically set if we are auto-ranging. | |
| NumberAxis | back to summary |
|---|---|
| public NumberAxis() Creates an auto-ranging NumberAxis. | |
| NumberAxis | back to summary |
|---|---|
| public NumberAxis(double lowerBound, double upperBound, double tickUnit) Creates a non-auto-ranging NumberAxis with the given upper bound, lower bound and tick unit.
| |
| NumberAxis | back to summary |
|---|---|
| public NumberAxis(String axisLabel, double lowerBound, double upperBound, double tickUnit) Creates a non-auto-ranging NumberAxis with the given lower bound, upper bound and tick unit.
| |
| autoRange | back to summary |
|---|---|
| protected Object autoRange(double minValue, double maxValue, double length, double labelSize) Overrides javafx. Called to set the upper and lower bound and anything else that needs to be auto-ranged.
| |
| calculateMinorTickMarks | back to summary |
|---|---|
| protected List Implements abstract javafx. Calculates a list of the data values for every minor tick mark | |
| calculateTickValues | back to summary |
|---|---|
| protected List Implements abstract javafx. Calculates a list of all the data values for each tick mark in range | |
| forceZeroInRangeProperty | back to summary |
|---|---|
| public final BooleanProperty forceZeroInRangeProperty() | |
| getClassCssMetaData | back to summary |
|---|---|
| public static List Hides javafx. Gets the
| |
| getCssMetaData | back to summary |
|---|---|
| public List Overrides javafx. Implements javafx. Doc from javafx. This method should delegate to
| |
| getRange | back to summary |
|---|---|
| protected Object getRange() Implements abstract javafx. Called to get the current axis range. | |
| getTickMarkLabel | back to summary |
|---|---|
| protected String getTickMarkLabel(Number value) Implements abstract javafx. Get the string label name for a tick mark with the given value. | |
| getTickUnit | back to summary |
|---|---|
| public final double getTickUnit() | |
| isForceZeroInRange | back to summary |
|---|---|
| public final boolean isForceZeroInRange() | |
| measureTickMarkSize | back to summary |
|---|---|
| protected Dimension2D measureTickMarkSize(Number value, Object range) Overrides javafx. Measures the size of the label for a given tick mark value. This uses the font that is set for the tick marks.
| |
| measureTickMarkSize | back to summary |
|---|---|
| private Dimension2D measureTickMarkSize(Number value, double rotation, String numFormatter) Measures the size of the label for a given tick mark value. This uses the font that is set for the tick marks.
| |
| setForceZeroInRange | back to summary |
|---|---|
| public final void setForceZeroInRange(boolean value) | |
| setRange | back to summary |
|---|---|
| protected void setRange(Object range, boolean animate) Implements abstract javafx. Called to set the current axis range to the given range. If isAnimating() is true then this method should animate the range to the new range. | |
| setTickUnit | back to summary |
|---|---|
| public final void setTickUnit(double value) | |
| tickUnitProperty | back to summary |
|---|---|
| public final DoubleProperty tickUnitProperty() | |
| Modifier and Type | Field and Description |
|---|---|
| private DecimalFormat | |
| private String | |
| private String |
| Access | Constructor and Description |
|---|---|
| public | DefaultFormatter(final NumberAxis
The axis to format tick marks for axis)Construct a DefaultFormatter for the given NumberAxis |
| public | DefaultFormatter(NumberAxis
The axis to format tick marks for axis, String The prefix to append to the start of formatted number, can be null if not needed prefix, String The suffix to append to the end of formatted number, can be null if not needed suffix)Construct a DefaultFormatter for the given NumberAxis with a prefix and/or suffix. |
| Modifier and Type | Method and Description |
|---|---|
| public Number | Returns: a Number representation of the string passed in.Implements abstract javafx. Converts the string provided into a Number defined by the this converter. |
| public String | Returns: a string representation of the object passed in.Implements abstract javafx. Converts the object provided into its string form. |
| private String | |
| private String |
| formatter | back to summary |
|---|---|
| private DecimalFormat formatter | |
| prefix | back to summary |
|---|---|
| private String prefix | |
| suffix | back to summary |
|---|---|
| private String suffix | |
| DefaultFormatter | back to summary |
|---|---|
| public DefaultFormatter(final NumberAxis axis) Construct a DefaultFormatter for the given NumberAxis
| |
| DefaultFormatter | back to summary |
|---|---|
| public DefaultFormatter(NumberAxis axis, String prefix, String suffix) Construct a DefaultFormatter for the given NumberAxis with a prefix and/or suffix.
| |
| fromString | back to summary |
|---|---|
| public Number fromString(String string) Implements abstract javafx. Converts the string provided into a Number defined by the this converter. Format of the string and type of the resulting object is defined by this converter.
| |
| toString | back to summary |
|---|---|
| public String toString(Number object) Implements abstract javafx. Converts the object provided into its string form. Format of the returned string is defined by this converter.
| |
| toString | back to summary |
|---|---|
| private String toString(Number object, String numFormatter) | |
| toString | back to summary |
|---|---|
| private String toString(Number object, DecimalFormat formatter) | |
| Modifier and Type | Field and Description |
|---|---|
| private static final List | |
| private static final CssMetaData |
| Access | Constructor and Description |
|---|---|
| private |
| STYLEABLES | back to summary |
|---|---|
| private static final List<CssMetaData<? extends Styleable, ?>> STYLEABLES | |
| TICK_UNIT | back to summary |
|---|---|
| private static final CssMetaData<NumberAxis, Number> TICK_UNIT | |
| StyleableProperties | back to summary |
|---|---|
| private StyleableProperties() | |