Class PolygonPainterSimple
- java.lang.Object
-
- com.metsci.glimpse.core.painter.base.GlimpsePainterBase
-
- com.metsci.glimpse.core.painter.shape.PolygonPainterSimple
-
- All Implemented Interfaces:
GlimpsePainter
public class PolygonPainterSimple extends GlimpsePainterBase
A simpler/alternate implementation ofPolygonPainter
which allows arbitrary polygons to be turned on and off.- Author:
- osborn
-
-
Constructor Summary
Constructors Constructor Description PolygonPainterSimple()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
addPolygon(long time, float[] dataX, float[] dataY, float[] color)
void
clear()
void
doDispose(GlimpseContext context)
void
doPaintTo(GlimpseContext context)
void
setShowAll()
void
setShowAllTimeRange()
void
setShowNone()
void
setShowOff(int[] ids)
void
setShowOn(int[] ids)
void
setTimeRangeToDraw(long startTime, long endTime)
-
Methods inherited from class com.metsci.glimpse.core.painter.base.GlimpsePainterBase
dispose, getAxis1D, getAxis2D, getBounds, getGL3, isDisposed, isVisible, paintTo, requireAxis1D, requireAxis2D, setLookAndFeel, setVisible
-
-
-
-
Method Detail
-
setShowOn
public void setShowOn(int[] ids)
-
setShowOff
public void setShowOff(int[] ids)
-
setShowAll
public void setShowAll()
-
setShowNone
public void setShowNone()
-
setTimeRangeToDraw
public void setTimeRangeToDraw(long startTime, long endTime)
-
setShowAllTimeRange
public void setShowAllTimeRange()
-
clear
public void clear()
-
addPolygon
public int addPolygon(long time, float[] dataX, float[] dataY, float[] color)
-
doPaintTo
public void doPaintTo(GlimpseContext context)
-
doDispose
public void doDispose(GlimpseContext context)
-
-