Class ValueTick

    • Field Detail

      • value

        private double value
        The value.
      • tickType

        private TickType tickType
        The tick type (major or minor).
    • Constructor Detail

      • ValueTick

        public ValueTick​(double value,
                         java.lang.String label,
                         TextAnchor textAnchor,
                         TextAnchor rotationAnchor,
                         double angle)
        Creates a new value tick.
        Parameters:
        value - the value.
        label - the label.
        textAnchor - the part of the label that is aligned to the anchor point.
        rotationAnchor - defines the rotation point relative to the label.
        angle - the rotation angle (in radians).
      • ValueTick

        public ValueTick​(TickType tickType,
                         double value,
                         java.lang.String label,
                         TextAnchor textAnchor,
                         TextAnchor rotationAnchor,
                         double angle)
        Creates a new value tick.
        Parameters:
        tickType - the tick type (major or minor, null not permitted).
        value - the value.
        label - the label.
        textAnchor - the part of the label that is aligned to the anchor point.
        rotationAnchor - defines the rotation point relative to the label.
        angle - the rotation angle (in radians).
    • Method Detail

      • getValue

        public double getValue()
        Returns the value.
        Returns:
        The value.
      • getTickType

        public TickType getTickType()
        Returns the tick type (major or minor).
        Returns:
        The tick type.
      • equals

        public boolean equals​(java.lang.Object obj)
        Tests this tick for equality with an arbitrary object.
        Overrides:
        equals in class Tick
        Parameters:
        obj - the object to test (null permitted).
        Returns:
        A boolean.