Class TimeShadedPointPainter
- java.lang.Object
-
- com.metsci.glimpse.core.painter.base.GlimpsePainterBase
-
- com.metsci.glimpse.core.painter.shape.ShadedPointPainter
-
- com.metsci.glimpse.core.painter.shape.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
-
-
Constructor Summary
Constructors Constructor Description TimeShadedPointPainter(Axis1D colorAxis, Axis1D sizeAxis)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
displayTimeRange(double startTime, double endTime)
Sets the selected range of times which will be displayed by this painter.void
displayTimeRange(Epoch epoch, TimeStamp startTime, TimeStamp endTime)
Sets the selected range of times which will be displayed by this painter.void
useColorAttribData(FloatBuffer attributeBuffer)
void
useSizeAttribData(FloatBuffer attributeBuffer)
void
useTimeAttribData(FloatBuffer attributeBuffer)
Assigns a time value to each point painted by the time painter.void
useVertexPositionData(FloatBuffer positionBuffer)
-
Methods inherited from class com.metsci.glimpse.core.painter.shape.ShadedPointPainter
doPaintTo, setConstantPointColor, setConstantPointSize, setDiscardAboveColor, setDiscardAboveSize, setDiscardBelowColor, setDiscardBelowSize, useColorScale, useConstantColor, useConstantSize, useSizeScale, useVariableColor, useVariableSize
-
Methods inherited from class com.metsci.glimpse.core.painter.base.GlimpsePainterBase
dispose, getAxis1D, getAxis2D, getBounds, getGL3, isDisposed, isVisible, paintTo, requireAxis1D, requireAxis2D, setLookAndFeel, setVisible
-
-
-
-
Constructor Detail
-
TimeShadedPointPainter
public TimeShadedPointPainter(Axis1D colorAxis, Axis1D sizeAxis) throws IOException
- Throws:
IOException
-
-
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 viaEpoch#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.
-
useVertexPositionData
public void useVertexPositionData(FloatBuffer positionBuffer)
- Overrides:
useVertexPositionData
in classShadedPointPainter
-
useColorAttribData
public void useColorAttribData(FloatBuffer attributeBuffer)
- Overrides:
useColorAttribData
in classShadedPointPainter
-
useSizeAttribData
public void useSizeAttribData(FloatBuffer attributeBuffer)
- Overrides:
useSizeAttribData
in classShadedPointPainter
-
-