org.jzy3d.plot3d.primitives
Class MultiColorScatterList
java.lang.Object
org.jzy3d.plot3d.primitives.AbstractDrawable
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
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 |
coordinates
protected List<Coord3d> coordinates
width
protected float width
mapper
protected ColorMapper mapper
MultiColorScatterList
public MultiColorScatterList(List<Coord3d> coordinates,
ColorMapper mapper)
MultiColorScatterList
public MultiColorScatterList(List<Coord3d> coordinates,
ColorMapper mapper,
float width)
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 contextglu
- GLU contextcam
- 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