com.metsci.glimpse.painter.plot
Class XYLinePainter

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.plot.XYLinePainter
All Implemented Interfaces:
GlimpsePainter

public class XYLinePainter
extends GlimpseDataPainter2D

Plots a simple x-y lineplot. Provides options for modifying line thickness and color.

Author:
ulman

Field Summary
 
Fields inherited from class com.metsci.glimpse.painter.base.GlimpsePainterImpl
BYTES_PER_FLOAT, logger
 
Constructor Summary
XYLinePainter()
           
 
Method Summary
 void dispose(javax.media.opengl.GLContext context)
           
 void paintTo(javax.media.opengl.GL gl, GlimpseBounds bounds, Axis2D axis)
           
 void setColor(double[] dataZ, ColorMap scale)
           
 void setColor(float[] dataZ, ColorMap scale)
           
 void setData(double[] dataX, double[] dataY)
           
 void setData(float[] dataX, float[] dataY)
           
 void setDataAndColor(double[] dataX, double[] dataY, double[] dataZ, ColorMap scale)
           
 void setDataAndColor(float[] dataX, float[] dataY, float[] dataZ, ColorMap scale)
           
 void setLineColor(float[] rgba)
           
 void setLineColor(float r, float g, float b, float a)
           
 void setLineStipple(boolean activate)
           
 void setLineStipple(int stippleFactor, short stipplePattern)
           
 void setLineThickness(float lineThickness)
           
 void setPointSize(float pointSize)
           
 void showLines(boolean show)
           
 void showPoints(boolean show)
           
 
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

XYLinePainter

public XYLinePainter()
Method Detail

setDataAndColor

public void setDataAndColor(double[] dataX,
                            double[] dataY,
                            double[] dataZ,
                            ColorMap scale)

setDataAndColor

public void setDataAndColor(float[] dataX,
                            float[] dataY,
                            float[] dataZ,
                            ColorMap scale)

setData

public void setData(float[] dataX,
                    float[] dataY)

setData

public void setData(double[] dataX,
                    double[] dataY)

setColor

public void setColor(float[] dataZ,
                     ColorMap scale)

setColor

public void setColor(double[] dataZ,
                     ColorMap scale)

setLineStipple

public void setLineStipple(boolean activate)

setLineStipple

public void setLineStipple(int stippleFactor,
                           short stipplePattern)

setLineThickness

public void setLineThickness(float lineThickness)

setLineColor

public void setLineColor(float[] rgba)

setLineColor

public void setLineColor(float r,
                         float g,
                         float b,
                         float a)

setPointSize

public void setPointSize(float pointSize)

showPoints

public void showPoints(boolean show)

showLines

public void showLines(boolean show)

dispose

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

paintTo

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


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