org.jzy3d.plot3d.primitives
Class MultiColorScatterList

java.lang.Object
  extended by org.jzy3d.plot3d.primitives.AbstractDrawable
      extended by org.jzy3d.plot3d.primitives.MultiColorScatterList
All Implemented Interfaces:
IMultiColorable, IGLRenderer, ISortableDraw

public class MultiColorScatterList
extends AbstractDrawable
implements IMultiColorable

A scatter plot supporting a List as input.

Author:
Martin Pernollet

Field Summary
protected  List<Coord3d> coordinates
           
protected  ColorMapper mapper
           
protected  float width
           
 
Fields inherited from class org.jzy3d.plot3d.primitives.AbstractDrawable
bbox, displayed, hasListeners, legend, legendDisplayed, listeners, transform
 
Constructor Summary
MultiColorScatterList(List<Coord3d> coordinates, ColorMapper mapper)
           
MultiColorScatterList(List<Coord3d> coordinates, ColorMapper mapper, float width)
           
 
Method Summary
 void clear()
           
 void draw(javax.media.opengl.GL2 gl, javax.media.opengl.glu.GLU glu, Camera cam)
          Call OpenGL2 routines for rendering the object.
 void enableColorBar(ITickProvider provider, ITickRenderer renderer)
           
 ColorMapper getColorMapper()
          Get the colormapper.
 List<Coord3d> getData()
           
 void setColorMapper(ColorMapper mapper)
          Set the colormapper that will be used by the Drawable, instead of using precomputed colors.
 void setData(List<Coord3d> coordinates)
          Set the coordinates of the point.
 void setWidth(float width)
          Set the width of the point.
 
Methods inherited from class org.jzy3d.plot3d.primitives.AbstractDrawable
addDrawableListener, call, call, callWithAlphaFactor, dispose, fireDrawableChanged, fireDrawableChanged, getBarycentre, getBounds, getDistance, getLegend, getLongestDistance, getShortestDistance, getTransform, hasLegend, isDisplayed, isLegendDisplayed, negative, removeDrawableListener, setDisplayed, setLegend, setLegendDisplayed, setTransform, toString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

coordinates

protected List<Coord3d> coordinates

width

protected float width

mapper

protected ColorMapper mapper
Constructor Detail

MultiColorScatterList

public MultiColorScatterList(List<Coord3d> coordinates,
                             ColorMapper mapper)

MultiColorScatterList

public MultiColorScatterList(List<Coord3d> coordinates,
                             ColorMapper mapper,
                             float width)
Method Detail

clear

public void clear()

enableColorBar

public void enableColorBar(ITickProvider provider,
                           ITickRenderer renderer)

draw

public void draw(javax.media.opengl.GL2 gl,
                 javax.media.opengl.glu.GLU glu,
                 Camera cam)
Description copied from class: AbstractDrawable
Call OpenGL2 routines for rendering the object.

Specified by:
draw in interface IGLRenderer
Specified by:
draw in class AbstractDrawable
Parameters:
gl - GL2 context
glu - GLU context
cam - a reference to a shooting Camera.

setData

public void setData(List<Coord3d> coordinates)
Set the coordinates of the point.

Parameters:
xyz - point's coordinates

getData

public List<Coord3d> getData()

getColorMapper

public ColorMapper getColorMapper()
Description copied from interface: IMultiColorable
Get the colormapper.

Specified by:
getColorMapper in interface IMultiColorable

setColorMapper

public void setColorMapper(ColorMapper mapper)
Description copied from interface: IMultiColorable
Set the colormapper that will be used by the Drawable, instead of using precomputed colors.

Specified by:
setColorMapper in interface IMultiColorable

setWidth

public void setWidth(float width)
Set the width of the point.

Parameters:
width - point's width