Module xaos.ui.plot

Class TimeAxis

  • All Implemented Interfaces:
    Styleable, EventTarget

    public class TimeAxis
    extends NumberAxis
    An axis that interpret numerical data as milliseconds and format them as HOURS:MINUTES:SECONDS.MILLISECONDS.
    Author:
    claudio.rosati@esss.se
    • Constructor Detail

      • TimeAxis

        public TimeAxis()
        Create a a non-auto-ranging NumberAxis with time values as major tickmark label in default format HOURS:MINUTES:SECONDS.MILLISECONDS.

        Will default to MILLISECONDS from epoch if TIMEFROMEPOCH values are not given for axis (type long or BigDecimal).

      • TimeAxis

        public TimeAxis​(double lowerBound,
                        double upperBound,
                        double tickUnit)
        Create a non-auto-ranging NumberAxis with the given upper bound, lower bound and tick unit
        Parameters:
        lowerBound - The lower bound for this axis, i.e. min plottable value.
        upperBound - The upper bound for this axis, i.e. max plottable value.
        tickUnit - The tick unit, i.e. space between tickmarks.
      • TimeAxis

        public TimeAxis​(String axisLabel,
                        double lowerBound,
                        double upperBound,
                        double tickUnit)
        Create a non-auto-ranging NumberAxis with the given upper bound, lower bound, tick unit and axis label.
        Parameters:
        axisLabel - The name to display for this axis.
        lowerBound - The lower bound for this axis, i.e. min plottable value.
        upperBound - The upper bound for this axis, i.e. max plottable value.
        tickUnit - The tick unit, i.e. space between tickmarks.