Class TimeShadedPointPainter

  • All Implemented Interfaces:
    GlimpsePainter

    public class TimeShadedPointPainter
    extends ShadedPointPainter
    A Scatterplot point painter which associates a time with each data point. A subset of the points can be displayed based on these time values.
    Author:
    ulman
    • Method Detail

      • displayTimeRange

        public void displayTimeRange​(Epoch epoch,
                                     TimeStamp startTime,
                                     TimeStamp endTime)
        Sets the selected range of times which will be displayed by this painter. The Epoch argument is used to convert from absolute TimeStamps to relative times. It is generally provided by a {@ StackedTimePlot2D}. The same Epoch should be used to fill the point time values in the data buffer passed to #useTimeAttribData(FloatBuffer).
      • displayTimeRange

        public void displayTimeRange​(double startTime,
                                     double endTime)
        Sets the selected range of times which will be displayed by this painter. Times should generally be provided via Epoch#fromTimeStamp(TimeStamp).
      • useTimeAttribData

        public void useTimeAttribData​(FloatBuffer attributeBuffer)
        Assigns a time value to each point painted by the time painter. Points must be added in increasing time order for time selection to function.