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, dispose, getBarycentre, getBounds, getDistance, getFace, getLongestDistance, getShortestDistance, getTransform, hasFace, isDisplayed, isFace2dDisplayed, removeDrawableListener, setDisplayed, setLegend, setLegendDisplayed, setTransform, toString, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MultiColorScatterList
public MultiColorScatterList(java.util.List<Coord3d> coordinates,
ColorMapper mapper)
MultiColorScatterList
public MultiColorScatterList(java.util.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.GL gl,
javax.media.opengl.glu.GLU glu,
Camera cam)
- Description copied from class:
AbstractDrawable
- Call OpenGL routines for rendering the object.
- Specified by:
draw
in interface IGLRenderer
- Specified by:
draw
in class AbstractDrawable
- Parameters:
gl
- GL contextglu
- GLU contextcam
- a reference to a shooting Camera.
setData
public void setData(java.util.List<Coord3d> coordinates)
- Set the coordinates of the point.
- Parameters:
xyz
- point's coordinates
getData
public java.util.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