Class StaticTrackPainter

  • All Implemented Interfaces:
    GlimpsePainter

    public class StaticTrackPainter
    extends GlimpsePainterBase

    Displays a static set of tracks with associated timestamp, x position, and y position. Unlike TrackPainter, each track must have an xy position for the same set of timestamps. This allows StaticTrackPainter to be more efficient in this case.

    The set of tracks cannot be modified once StaticTrackPainter is constructed, but a custom time slice of the particles may be displayed via StaticTrackPainter#displayTimeRange(long, long).

    Author:
    ulman
    • Constructor Detail

      • StaticTrackPainter

        public StaticTrackPainter​(TimeStamp[] time,
                                  float[][] xPositions,
                                  float[][] yPositions,
                                  float[][][] colors)
      • StaticTrackPainter

        public StaticTrackPainter​(TimeStamp[] time,
                                  float[][] xPositions,
                                  float[][] yPositions)
      • StaticTrackPainter

        public StaticTrackPainter​(long[] time,
                                  float[][] xPositions,
                                  float[][] yPositions)
      • StaticTrackPainter

        public StaticTrackPainter​(long[] time,
                                  float[][] xPositions,
                                  float[][] yPositions,
                                  float[][][] colors)
        Parameters:
        time - common array of times (each particle must have an x/y position for each time)
        xPositions - square array of x positions indexed as [particleIndex][timeIndex] (second index must match size of time array)
        yPositions - square array of y positions indexed as [particleIndex][timeIndex] (second index must match size of time array)
        colors - color values indexed as [particleIndex][timeIndex][rgba]
    • Method Detail

      • getLineStyle

        public LineStyle getLineStyle()
      • displayTimeRange

        public void displayTimeRange​(long startMillis,
                                     long endMillis)
      • displayTimeRange

        public void displayTimeRange​(TimeStamp startTime,
                                     TimeStamp endTime)