| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private List | |
| private final ChartLayoutAnimator | |
| private ObjectProperty | |
| private final ReadOnlyDoubleWrapper | categorySpacing
This is the gap between one category and the next along this axis |
| private boolean | |
| private Object | |
| private DoubleProperty | endMargin
The margin between the last tick mark and the axis end |
| private final DoubleProperty | firstCategoryPos
This is the position of the first category along this axis |
| private BooleanProperty | gapStartAndEnd
If this is true then half the space between ticks is left at the start and end |
| private ListChangeListener | |
| private DoubleProperty | startMargin
The margin between the axis start and the first tick-mark |
| Access | Constructor and Description |
|---|---|
| public | |
| public | CategoryAxis(ObservableList<String>
List of the categories for this axis categories)Create a category axis with the given categories. |
| Modifier and Type | Method and Description |
|---|---|
| protected Object | Returns: Range information, this is implementation dependentThe length of the axis in screen coordinates length)Implements abstract javafx. This calculates the categories based on the data provided to invalidateRange() method. |
| private double | |
| private double | |
| private double | |
| 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. Calculate a list of all the data values for each tick mark in range |
| public final ReadOnlyDoubleProperty | |
| private void | |
| public final DoubleProperty | |
| public final BooleanProperty | |
| pack-priv final List | |
| public final ObservableList | Returns: ObservableList of categories for this axis.Returns a |
| public final double | |
| public static List | Returns: theCssMetaDataHides javafx. Gets the |
| public List | getCssMetaData()
Overrides javafx. Implements javafx. This method should delegate to |
| public double | Returns: display position or Double.NaN if value not one of the categoriesThe data value to work out display position for value)Implements abstract javafx. Get the display position along this axis for a given value. |
| private String | |
| public final double | |
| protected Object | Returns: A range object that can be passed to setRange() and calculateTickValues()Implements abstract javafx. Called to get the current axis range. |
| public final double | |
| 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 String | 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. Get the data value for the given display position on this axis. |
| public double | Returns: always Double.NaN for CategoryAxisImplements abstract javafx. Get the display position of the zero line along this axis. |
| public void | invalidateRange(List<String>
The current set of all data that needs to be plotted on this axis data)Overrides javafx. Called when data has changed and the range may not be valid any more. |
| 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 Dimension2D | Returns: size of tick mark label for given valuetick mark value value, Object range to use during calculations range)Overrides javafx. Measure the size of the label for given tick mark value. |
| public final void | setCategories(ObservableList<String>
the ordered list of categories plotted on this axis value)The ordered list of categories plotted on this axis. |
| public final void | |
| 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 | |
| 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 String | 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. |
| allDataCategories | back to summary |
|---|---|
| private List<String> allDataCategories | |
| animator | back to summary |
|---|---|
| private final ChartLayoutAnimator animator | |
| categories | back to summary |
|---|---|
| private ObjectProperty<ObservableList<String>> categories | |
| categorySpacing | back to summary |
|---|---|
| private final ReadOnlyDoubleWrapper categorySpacing This is the gap between one category and the next along this axis | |
| changeIsLocal | back to summary |
|---|---|
| private boolean changeIsLocal | |
| currentAnimationID | back to summary |
|---|---|
| private Object currentAnimationID | |
| endMargin | back to summary |
|---|---|
| private DoubleProperty endMargin The margin between the last tick mark and the axis end | |
| firstCategoryPos | back to summary |
|---|---|
| private final DoubleProperty firstCategoryPos This is the position of the first category along this axis | |
| gapStartAndEnd | back to summary |
|---|---|
| private BooleanProperty gapStartAndEnd If this is true then half the space between ticks is left at the start and end | |
| itemsListener | back to summary |
|---|---|
| private ListChangeListener<String> itemsListener | |
| startMargin | back to summary |
|---|---|
| private DoubleProperty startMargin The margin between the axis start and the first tick-mark | |
| CategoryAxis | back to summary |
|---|---|
| public CategoryAxis() Create a auto-ranging category axis with an empty list of categories. | |
| CategoryAxis | back to summary |
|---|---|
| public CategoryAxis(ObservableList<String> categories) Create a category axis with the given categories. This will not auto-range but be fixed with the given categories.
| |
| autoRange | back to summary |
|---|---|
| protected Object autoRange(double length) Implements abstract javafx. This calculates the categories based on the data provided to invalidateRange() method. This must not effect the state of the axis, changing any properties 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. | |
| calculateNewFirstPos | back to summary |
|---|---|
| private double calculateNewFirstPos(double length, double catSpacing) | |
| calculateNewSpacing | back to summary |
|---|---|
| private double calculateNewSpacing(double length, List<String> categories) | |
| calculateRequiredSize | back to summary |
|---|---|
| private double calculateRequiredSize(boolean axisVertical, double tickLabelRotation) | |
| calculateTickValues | back to summary |
|---|---|
| protected List Implements abstract javafx. Calculate a list of all the data values for each tick mark in range
| |
| categorySpacingProperty | back to summary |
|---|---|
| public final ReadOnlyDoubleProperty categorySpacingProperty() | |
| checkAndRemoveDuplicates | back to summary |
|---|---|
| private void checkAndRemoveDuplicates(String category) | |
| endMarginProperty | back to summary |
|---|---|
| public final DoubleProperty endMarginProperty() | |
| gapStartAndEndProperty | back to summary |
|---|---|
| public final BooleanProperty gapStartAndEndProperty() | |
| getAllDataCategories | back to summary |
|---|---|
| pack-priv final List | |
| getCategories | back to summary |
|---|---|
| public final ObservableList Returns a
| |
| getCategorySpacing | back to summary |
|---|---|
| public final double getCategorySpacing() | |
| 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(String value) Implements abstract javafx. Get the display position along this axis for a given value. If the value is not equal to any of the categories, Double.NaN is returned | |
| getDuplicate | back to summary |
|---|---|
| private String getDuplicate() | |
| getEndMargin | back to summary |
|---|---|
| public final double getEndMargin() | |
| getRange | back to summary |
|---|---|
| protected Object getRange() Implements abstract javafx. Called to get the current axis range. | |
| getStartMargin | back to summary |
|---|---|
| public final double getStartMargin() | |
| getTickMarkLabel | back to summary |
|---|---|
| protected String getTickMarkLabel(String value) Implements abstract javafx. Get the string label name for a tick mark with the given value | |
| getValueForDisplay | back to summary |
|---|---|
| public String getValueForDisplay(double displayPosition) Implements abstract javafx. Get 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. Get the display position of the zero line along this axis. As there is no concept of zero on a CategoryAxis this is always Double.NaN.
| |
| invalidateRange | back to summary |
|---|---|
| public void invalidateRange(List<String> data) Overrides javafx. Called when data has changed and the range may not be valid any more. 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. | |
| isGapStartAndEnd | back to summary |
|---|---|
| public final boolean isGapStartAndEnd() | |
| isValueOnAxis | back to summary |
|---|---|
| public boolean isValueOnAxis(String value) Implements abstract javafx. Checks if the given value is plottable on this axis | |
| measureTickMarkSize | back to summary |
|---|---|
| protected Dimension2D measureTickMarkSize(String value, Object range) Overrides javafx. Measure the size of the label for given tick mark value. This uses the font that is set for the tick marks
| |
| setCategories | back to summary |
|---|---|
| public final void setCategories(ObservableList<String> value) The ordered list of categories plotted on this axis. This is set automatically
based on the charts data if autoRanging is true. If the application sets the categories
then auto ranging is turned off. If there is an attempt to add duplicate entry into this list,
an
| |
| setEndMargin | back to summary |
|---|---|
| public final void setEndMargin(double value) | |
| setGapStartAndEnd | back to summary |
|---|---|
| public final void setGapStartAndEnd(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. | |
| setStartMargin | back to summary |
|---|---|
| public final void setStartMargin(double value) | |
| startMarginProperty | back to summary |
|---|---|
| public final DoubleProperty startMarginProperty() | |
| toNumericValue | back to summary |
|---|---|
| public double toNumericValue(String 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 String 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. | |
| 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 |
| END_MARGIN | back to summary |
|---|---|
| private static final CssMetaData<CategoryAxis, Number> END_MARGIN | |
| GAP_START_AND_END | back to summary |
|---|---|
| private static final CssMetaData<CategoryAxis, Boolean> GAP_START_AND_END | |
| START_MARGIN | back to summary |
|---|---|
| private static final CssMetaData<CategoryAxis, Number> START_MARGIN | |
| STYLEABLES | back to summary |
|---|---|
| private static final List<CssMetaData<? extends Styleable, ?>> STYLEABLES | |
| StyleableProperties | back to summary |
|---|---|
| private StyleableProperties() | |