Class Axes


  • public final class Axes
    extends java.lang.Object
    Static utility methods related to instances of Axis class.
    Author:
    Grzegorz Kruk
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void bindBounds​(javafx.scene.chart.ValueAxis<?> axis, javafx.scene.chart.ValueAxis<?> observable)
      Binds lower and upper bound of given axis to the specified observable axis.
      static boolean hasBoundedRange​(Axis axis)
      Indicates if the given axis lower and/or upper bound property is bound.
      static boolean hasBoundedRange​(javafx.scene.chart.ValueAxis<?> axis)
      Indicates if the given axis lower and/or upper bound property is bound.
      static boolean isCategoryAxis​(Axis axis)
      Returns true if given axis is an instance of CategoryAxis.
      static void unbindBounds​(javafx.scene.chart.ValueAxis<?> axis)
      Unbinds lower and upper bound of given axis.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • bindBounds

        public static void bindBounds​(javafx.scene.chart.ValueAxis<?> axis,
                                      javafx.scene.chart.ValueAxis<?> observable)
        Binds lower and upper bound of given axis to the specified observable axis.
        Parameters:
        axis - axis whose lower/upper bound should be bound
        observable - the target axis
        Throws:
        java.lang.NullPointerException - if either axis is null TODO: found bug if axis and observable axis are slightly different (e.g. one longer or shifted w.r.t. the other) This function the forces the axis of observable (basechart) even if the 'axis' extends beyond that
      • hasBoundedRange

        public static boolean hasBoundedRange​(Axis axis)
        Indicates if the given axis lower and/or upper bound property is bound.
        Parameters:
        axis - the tested axis
        Returns:
        true if either lower or upper bound is bound
      • hasBoundedRange

        public static boolean hasBoundedRange​(javafx.scene.chart.ValueAxis<?> axis)
        Indicates if the given axis lower and/or upper bound property is bound.
        Parameters:
        axis - the tested axis
        Returns:
        true if either lower or upper bound is bound
      • isCategoryAxis

        public static boolean isCategoryAxis​(Axis axis)
        Returns true if given axis is an instance of CategoryAxis.
        Parameters:
        axis - the axis to test
        Returns:
        true if given axis is an instance of CategoryAxis.
      • unbindBounds

        public static void unbindBounds​(javafx.scene.chart.ValueAxis<?> axis)
        Unbinds lower and upper bound of given axis.
        Parameters:
        axis - axis whose lower and upper bound should be unbound
        Throws:
        java.lang.NullPointerException - if the given axis is null