com.metsci.glimpse.painter.shape
Class PolygonPainterSimple

java.lang.Object
  extended by com.metsci.glimpse.painter.base.GlimpsePainterImpl
      extended by com.metsci.glimpse.painter.base.GlimpsePainter2D
          extended by com.metsci.glimpse.painter.base.GlimpseDataPainter2D
              extended by com.metsci.glimpse.painter.shape.PolygonPainterSimple
All Implemented Interfaces:
GlimpsePainter

public class PolygonPainterSimple
extends GlimpseDataPainter2D

A simpler/alternate implementation of PolygonPainter which allows arbitrary polygons to be turned on and off.

Author:
osborn

Field Summary
 
Fields inherited from class com.metsci.glimpse.painter.base.GlimpsePainterImpl
BYTES_PER_FLOAT, logger
 
Constructor Summary
PolygonPainterSimple()
           
 
Method Summary
 int addPolygon(long time, float[] dataX, float[] dataY, float[] color)
           
 void clear()
           
 void dispose(javax.media.opengl.GLContext context)
           
 void paintTo(javax.media.opengl.GL gl, GlimpseBounds bounds, Axis2D axis)
           
 void setShowAll()
           
 void setShowNone()
           
 void setShowOff(int[] ids)
           
 void setShowOn(int[] ids)
           
 void setTimeRangeToDraw(long startTime, long endTime)
           
 
Methods inherited from class com.metsci.glimpse.painter.base.GlimpseDataPainter2D
paintTo
 
Methods inherited from class com.metsci.glimpse.painter.base.GlimpsePainter2D
paintTo
 
Methods inherited from class com.metsci.glimpse.painter.base.GlimpsePainterImpl
dispose, isDisposed, isVisible, paintTo, setErrorHandling, setLookAndFeel, setVisible
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolygonPainterSimple

public PolygonPainterSimple()
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)

clear

public void clear()

addPolygon

public int addPolygon(long time,
                      float[] dataX,
                      float[] dataY,
                      float[] color)

paintTo

public void paintTo(javax.media.opengl.GL gl,
                    GlimpseBounds bounds,
                    Axis2D axis)
Specified by:
paintTo in class GlimpseDataPainter2D

dispose

public void dispose(javax.media.opengl.GLContext context)


Copyright © 2012 Metron, Inc.. All Rights Reserved.