| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| protected final DoubleProperty | currentLowerBound
The current value for the lowerBound of this axis (minimum value). |
| pack-priv double | dataMaxValue
This is the maximum current data value and it is used while auto ranging. |
| pack-priv double | dataMinValue
This is the minimum current data value and it is used while auto ranging. |
| private DoubleProperty | lowerBound
The value for the lower bound of this axis (minimum value). |
| private IntegerProperty | minorTickCount
The number of minor tick divisions to be displayed between each major tick mark. |
| private DoubleProperty | minorTickLength
The length of minor tick mark lines. |
| private boolean | |
| private List | minorTickMarkValues
List of the values at which there are minor ticks |
| private final Path | |
| private BooleanProperty | minorTickVisible
true if minor tick marks should be displayed |
| private double | |
| private ReadOnlyDoubleWrapper | scale
The scale factor from data units to visual units |
| private final ObjectProperty | tickLabelFormatter
StringConverter used to format tick mark labels. |
| private DoubleProperty | upperBound
The value for the upper bound of this axis (maximum value). |
| Access | Constructor and Description |
|---|---|
| public | |
| public | ValueAxis(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)Creates a non-auto-ranging ValueAxis with the given lower and upper bound. |
| Modifier and Type | Method and Description |
|---|---|
| protected final Object | Returns: Range information, this is implementation dependentThe length of the axis in screen coordinates length)Implements abstract javafx. This calculates the upper and lower bound based on the data provided to invalidateRange() method. |
| 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)Called to set the upper and lower bound and anything else that needs to be auto-ranged. |
| protected abstract List | Returns: List of data values where to draw minor tick marksCalculates a list of the data values for every minor tick mark |
| protected final double | Returns: new scale to fit the range from lower bound to upper bound in the given display lengthThe display length of the axis length, double The lower bound value lowerBound, double The upper bound value upperBound)Calculates new scale for this axis. |
| public static List | Returns: theCssMetaDataHides javafx. Gets the |
| public List | getCssMetaData()
Overrides javafx. Implements javafx. This method should delegate to |
| public double | Returns: display positionThe data value to work out display position for value)Implements abstract javafx. Gets the display position along this axis for a given value. |
| public final double | |
| public final int | |
| public final double | |
| public final double | |
| public final StringConverter | |
| public final double | |
| public T | Returns: the nearest data value to the given pixel position or null if not on axis;A pixel position on this axis displayPosition)Implements abstract javafx. Gets the data value for the given display position on this axis. |
| public double | Returns: display position or Double.NaN if zero is not in current range;Implements abstract javafx. Gets the display position of the zero line along this axis. |
| public void | invalidateRange(List<T>
The current set of all data that needs to be plotted on this axis data)Overrides javafx. Called when the data has changed and the range may not be valid anymore. |
| public final boolean | |
| public boolean | Returns: true if the given value is plottable on this axisThe value to check if its on axis value)Implements abstract javafx. Checks if the given value is plottable on this axis |
| protected void | layoutChildren()
Overrides javafx. Invoked during the layout pass to layout this axis and all its content. |
| public final DoubleProperty | |
| public final IntegerProperty | |
| public final DoubleProperty | |
| public final BooleanProperty | |
| public final ReadOnlyDoubleProperty | |
| pack-priv ReadOnlyDoubleWrapper | |
| public final void | |
| public final void | |
| public final void | |
| public final void | |
| protected final void | |
| public final void | |
| public final void | |
| public final ObjectProperty | |
| protected void | tickMarksUpdated()
Overrides javafx. Called during layout if the tickmarks have been updated, allowing subclasses to do anything they need to in reaction. |
| public double | Returns: Numeric value for the given data valueThe data value to convert value)Implements abstract javafx. All axis values must be representable by some numeric value. |
| public T | Returns: Data value for given numeric valueThe numeric value to convert value)Implements abstract javafx. All axis values must be representable by some numeric value. |
| private void | |
| public final DoubleProperty |
| currentLowerBound | back to summary |
|---|---|
| protected final DoubleProperty currentLowerBound The current value for the lowerBound of this axis (minimum value). This may be the same as lowerBound or different. It is used by NumberAxis to animate the lowerBound from the old value to the new value. | |
| dataMaxValue | back to summary |
|---|---|
| pack-priv double dataMaxValue This is the maximum current data value and it is used while auto ranging. Package private solely for test purposes | |
| dataMinValue | back to summary |
|---|---|
| pack-priv double dataMinValue This is the minimum current data value and it is used while auto ranging. Package private solely for test purposes | |
| lowerBound | back to summary |
|---|---|
| private DoubleProperty lowerBound The value for the lower bound of this axis (minimum value). This is automatically set if auto ranging is on. | |
| minorTickCount | back to summary |
|---|---|
| private IntegerProperty minorTickCount The number of minor tick divisions to be displayed between each major tick mark. The number of actual minor tick marks will be one less than this. | |
| minorTickLength | back to summary |
|---|---|
| private DoubleProperty minorTickLength The length of minor tick mark lines. Set to 0 to not display minor tick marks. | |
| minorTickMarksDirty | back to summary |
|---|---|
| private boolean minorTickMarksDirty | |
| minorTickMarkValues | back to summary |
|---|---|
| private List<T> minorTickMarkValues List of the values at which there are minor ticks | |
| minorTickPath | back to summary |
|---|---|
| private final Path minorTickPath | |
| minorTickVisible | back to summary |
|---|---|
| private BooleanProperty minorTickVisible true if minor tick marks should be displayed | |
| offset | back to summary |
|---|---|
| private double offset | |
| scale | back to summary |
|---|---|
| private ReadOnlyDoubleWrapper scale The scale factor from data units to visual units | |
| tickLabelFormatter | back to summary |
|---|---|
| private final ObjectProperty<StringConverter<T>> tickLabelFormatter StringConverter used to format tick mark labels. If null a default will be used | |
| upperBound | back to summary |
|---|---|
| private DoubleProperty upperBound The value for the upper bound of this axis (maximum value). This is automatically set if auto ranging is on. | |
| ValueAxis | back to summary |
|---|---|
| public ValueAxis() Creates a auto-ranging ValueAxis. | |
| ValueAxis | back to summary |
|---|---|
| public ValueAxis(double lowerBound, double upperBound) Creates a non-auto-ranging ValueAxis with the given lower and upper bound.
| |
| autoRange | back to summary |
|---|---|
| protected final Object autoRange(double length) Implements abstract javafx. This calculates the upper and lower bound based on the data provided to invalidateRange() method. This must not affect the state of the axis. Any results of the auto-ranging should be returned in the range object. This will we passed to setRange() if it has been decided to adopt this range for this axis. | |
| autoRange | back to summary |
|---|---|
| protected Object autoRange(double minValue, double maxValue, double length, double labelSize) Called to set the upper and lower bound and anything else that needs to be auto-ranged. This must not affect the state of the axis. Any results of the auto-ranging should be returned in the range object. This will we passed to setRange() if it has been decided to adopt this range for this axis.
| |
| calculateMinorTickMarks | back to summary |
|---|---|
| protected abstract List Calculates a list of the data values for every minor tick mark
| |
| calculateNewScale | back to summary |
|---|---|
| protected final double calculateNewScale(double length, double lowerBound, double upperBound) Calculates new scale for this axis. This should not affect any properties of this axis.
| |
| 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
| |
| getDisplayPosition | back to summary |
|---|---|
| public double getDisplayPosition(T value) Implements abstract javafx. Gets the display position along this axis for a given value. If the value is not in the current range, the returned value will be an extrapolation of the display position.
| |
| getLowerBound | back to summary |
|---|---|
| public final double getLowerBound() | |
| getMinorTickCount | back to summary |
|---|---|
| public final int getMinorTickCount() | |
| getMinorTickLength | back to summary |
|---|---|
| public final double getMinorTickLength() | |
| getScale | back to summary |
|---|---|
| public final double getScale() | |
| getTickLabelFormatter | back to summary |
|---|---|
| public final StringConverter | |
| getUpperBound | back to summary |
|---|---|
| public final double getUpperBound() | |
| getValueForDisplay | back to summary |
|---|---|
| public T getValueForDisplay(double displayPosition) Implements abstract javafx. Gets the data value for the given display position on this axis. If the axis is a CategoryAxis this will be the nearest value.
| |
| getZeroPosition | back to summary |
|---|---|
| public double getZeroPosition() Implements abstract javafx. Gets the display position of the zero line along this axis.
| |
| invalidateRange | back to summary |
|---|---|
| public void invalidateRange(List<T> data) Overrides javafx. Called when the data has changed and the range may not be valid anymore. This is only called by the chart if isAutoRanging() returns true. If we are auto ranging it will cause layout to be requested and auto ranging to happen on next layout pass. | |
| isMinorTickVisible | back to summary |
|---|---|
| public final boolean isMinorTickVisible() | |
| isValueOnAxis | back to summary |
|---|---|
| public boolean isValueOnAxis(T value) Implements abstract javafx. Checks if the given value is plottable on this axis
| |
| layoutChildren | back to summary |
|---|---|
| protected void layoutChildren() Overrides javafx. Invoked during the layout pass to layout this axis and all its content.
| |
| lowerBoundProperty | back to summary |
|---|---|
| public final DoubleProperty lowerBoundProperty() | |
| minorTickCountProperty | back to summary |
|---|---|
| public final IntegerProperty minorTickCountProperty() | |
| minorTickLengthProperty | back to summary |
|---|---|
| public final DoubleProperty minorTickLengthProperty() | |
| minorTickVisibleProperty | back to summary |
|---|---|
| public final BooleanProperty minorTickVisibleProperty() | |
| scaleProperty | back to summary |
|---|---|
| public final ReadOnlyDoubleProperty scaleProperty() | |
| scalePropertyImpl | back to summary |
|---|---|
| pack-priv ReadOnlyDoubleWrapper scalePropertyImpl() | |
| setLowerBound | back to summary |
|---|---|
| public final void setLowerBound(double value) | |
| setMinorTickCount | back to summary |
|---|---|
| public final void setMinorTickCount(int value) | |
| setMinorTickLength | back to summary |
|---|---|
| public final void setMinorTickLength(double value) | |
| setMinorTickVisible | back to summary |
|---|---|
| public final void setMinorTickVisible(boolean value) | |
| setScale | back to summary |
|---|---|
| protected final void setScale(double scale) | |
| setTickLabelFormatter | back to summary |
|---|---|
| public final void setTickLabelFormatter(StringConverter<T> value) | |
| setUpperBound | back to summary |
|---|---|
| public final void setUpperBound(double value) | |
| tickLabelFormatterProperty | back to summary |
|---|---|
| public final ObjectProperty | |
| tickMarksUpdated | back to summary |
|---|---|
| protected void tickMarksUpdated() Overrides javafx. Called during layout if the tickmarks have been updated, allowing subclasses to do anything they need to in reaction.
| |
| toNumericValue | back to summary |
|---|---|
| public double toNumericValue(T value) Implements abstract javafx. All axis values must be representable by some numeric value. This gets the numeric value for a given data value.
| |
| toRealValue | back to summary |
|---|---|
| public T toRealValue(double value) Implements abstract javafx. All axis values must be representable by some numeric value. This gets the data value for a given numeric value.
| |
| updateMinorTickPath | back to summary |
|---|---|
| private void updateMinorTickPath(Side side, double length) | |
| upperBoundProperty | back to summary |
|---|---|
| public final DoubleProperty upperBoundProperty() | |
| Modifier and Type | Field and Description |
|---|---|
| private static final CssMetaData | |
| private static final CssMetaData | |
| private static final CssMetaData | |
| private static final List |
| Access | Constructor and Description |
|---|---|
| private |
| MINOR_TICK_COUNT | back to summary |
|---|---|
| private static final CssMetaData<ValueAxis<? extends Number>, Number> MINOR_TICK_COUNT | |
| MINOR_TICK_LENGTH | back to summary |
|---|---|
| private static final CssMetaData<ValueAxis<? extends Number>, Number> MINOR_TICK_LENGTH | |
| MINOR_TICK_VISIBLE | back to summary |
|---|---|
| private static final CssMetaData<ValueAxis<? extends Number>, Boolean> MINOR_TICK_VISIBLE | |
| STYLEABLES | back to summary |
|---|---|
| private static final List<CssMetaData<? extends Styleable, ?>> STYLEABLES | |
| StyleableProperties | back to summary |
|---|---|
| private StyleableProperties() | |