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).
| Constructor and Description |
|---|
StaticTrackPainter(long[] time,
float[][] xPositions,
float[][] yPositions) |
StaticTrackPainter(long[] time,
float[][] xPositions,
float[][] yPositions,
float[][][] colors) |
StaticTrackPainter(TimeStamp[] time,
float[][] xPositions,
float[][] yPositions) |
StaticTrackPainter(TimeStamp[] time,
float[][] xPositions,
float[][] yPositions,
float[][][] colors) |
| Modifier and Type | Method and Description |
|---|---|
void |
displayTimeRange(long startMillis,
long endMillis) |
void |
displayTimeRange(TimeStamp startTime,
TimeStamp endTime) |
void |
doPaintTo(GlimpseContext context) |
LineStyle |
getLineStyle() |
dispose, getAxis1D, getAxis2D, getBounds, getGL3, isDisposed, isVisible, paintTo, requireAxis1D, requireAxis2D, setLookAndFeel, setVisiblepublic StaticTrackPainter(TimeStamp[] time, float[][] xPositions, float[][] yPositions, float[][][] colors)
public StaticTrackPainter(TimeStamp[] time, float[][] xPositions, float[][] yPositions)
public StaticTrackPainter(long[] time,
float[][] xPositions,
float[][] yPositions)
public StaticTrackPainter(long[] time,
float[][] xPositions,
float[][] yPositions,
float[][][] colors)
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]public LineStyle getLineStyle()
public void displayTimeRange(long startMillis,
long endMillis)
public void doPaintTo(GlimpseContext context)
Copyright © 2018 Metron, Inc.. All rights reserved.