Package org.jzy3d.plot3d.primitives
Class ScatterMultiColorList
- java.lang.Object
-
- org.jzy3d.plot3d.primitives.Drawable
-
- org.jzy3d.plot3d.primitives.ScatterMultiColorList
-
- All Implemented Interfaces:
IMultiColorable
,IGLRenderer
,ISortableDraw
- Direct Known Subclasses:
AWTScatterMultiColorList
,ConcurrentScatterMultiColorList
public class ScatterMultiColorList extends Drawable implements IMultiColorable
A scatter plot supporting a Listas input. - Author:
- Martin Pernollet
-
-
Field Summary
Fields Modifier and Type Field Description protected List<Coord3d>
coordinates
protected ColorMapper
mapper
protected float
width
-
Fields inherited from class org.jzy3d.plot3d.primitives.Drawable
bbox, boundingBoxColor, boundingBoxDisplayed, displayed, hasListeners, legend, legendDisplayed, listeners, spaceTransformer, transform, transformBefore
-
-
Constructor Summary
Constructors Constructor Description ScatterMultiColorList(List<Coord3d> coordinates, ColorMapper mapper)
ScatterMultiColorList(List<Coord3d> coordinates, ColorMapper mapper, float width)
ScatterMultiColorList(ColorMapper mapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(Coord3d c)
void
applyGeometryTransform(Transform transform)
void
clear()
protected void
doDrawPoints(IPainter painter)
void
draw(IPainter painter)
Call OpenGL2 routines for rendering the object.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.void
updateBounds()
-
Methods inherited from class org.jzy3d.plot3d.primitives.Drawable
addDrawableListener, asWireframeable, dispose, doDrawBoundsIfDisplayed, doTransform, fireDrawableChanged, fireDrawableChanged, getBarycentre, getBoundingBoxColor, getBounds, getDistance, getLegend, getLongestDistance, getShortestDistance, getSpaceTransformer, getTransform, getTransformBefore, hasLegend, isBoundingBoxDisplayed, isDisplayed, isLegendDisplayed, removeDrawableListener, setBoundingBoxColor, setBoundingBoxDisplayed, setDisplayed, setLegend, setLegendDisplayed, setSpaceTransformer, setTransform, setTransformBefore, toString, toString
-
-
-
-
Field Detail
-
width
protected float width
-
mapper
protected ColorMapper mapper
-
-
Constructor Detail
-
ScatterMultiColorList
public ScatterMultiColorList(ColorMapper mapper)
-
ScatterMultiColorList
public ScatterMultiColorList(List<Coord3d> coordinates, ColorMapper mapper)
-
ScatterMultiColorList
public ScatterMultiColorList(List<Coord3d> coordinates, ColorMapper mapper, float width)
-
-
Method Detail
-
clear
public void clear()
-
draw
public void draw(IPainter painter)
Description copied from class:Drawable
Call OpenGL2 routines for rendering the object.- Specified by:
draw
in interfaceIGLRenderer
- Specified by:
draw
in classDrawable
-
doDrawPoints
protected void doDrawPoints(IPainter painter)
-
applyGeometryTransform
public void applyGeometryTransform(Transform transform)
- Specified by:
applyGeometryTransform
in classDrawable
-
updateBounds
public void updateBounds()
- Specified by:
updateBounds
in classDrawable
-
setData
public void setData(List<Coord3d> coordinates)
Set the coordinates of the point.- Parameters:
xyz
- point's coordinates
-
add
public void add(Coord3d c)
-
getColorMapper
public ColorMapper getColorMapper()
Description copied from interface:IMultiColorable
Get the colormapper.- Specified by:
getColorMapper
in interfaceIMultiColorable
-
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 interfaceIMultiColorable
-
setWidth
public void setWidth(float width)
Set the width of the point.- Parameters:
width
- point's width
-
-