Package org.jzy3d.plot3d.primitives
Class ScatterMultiColor
java.lang.Object
org.jzy3d.plot3d.primitives.Drawable
org.jzy3d.plot3d.primitives.ScatterMultiColor
- All Implemented Interfaces:
IMultiColorable,IGLRenderer,ISortableDraw
- Direct Known Subclasses:
AWTScatterMultiColor,ConcurrentScatterMultiColor
A scatter plot supporting a colormap for shading each dot color and alpha.
- Author:
- Martin Pernollet
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Color[]protected Coord3d[]protected ColorMapperprotected floatFields inherited from class org.jzy3d.plot3d.primitives.Drawable
bbox, boundingBoxColor, boundingBoxDisplayed, displayed, hasListeners, legend, legendDisplayed, listeners, spaceTransformer, transform, transformBefore -
Constructor Summary
ConstructorsConstructorDescriptionScatterMultiColor(Coord3d[] coordinates, Color[] colors, ColorMapper mapper) ScatterMultiColor(Coord3d[] coordinates, Color[] colors, ColorMapper mapper, float width) ScatterMultiColor(Coord3d[] coordinates, ColorMapper mapper) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyGeometryTransform(Transform transform) voidclear()protected voiddoDrawPoints(IPainter painter) voidCall OpenGL2 routines for rendering the object.Get the colormapper.Coord3d[]getData()voidsetColorMapper(ColorMapper mapper) Set the colormapper that will be used by the Drawable, instead of using precomputed colors.voidvoidSet the coordinates of the point.voidsetWidth(float width) Set the width of the point.voidMethods 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 Details
-
coordinates
-
colors
-
width
protected float width -
mapper
-
-
Constructor Details
-
ScatterMultiColor
-
ScatterMultiColor
-
ScatterMultiColor
-
-
Method Details
-
clear
public void clear() -
draw
Description copied from class:DrawableCall OpenGL2 routines for rendering the object.- Specified by:
drawin interfaceIGLRenderer- Specified by:
drawin classDrawable
-
doDrawPoints
-
applyGeometryTransform
- Specified by:
applyGeometryTransformin classDrawable
-
updateBounds
public void updateBounds()- Specified by:
updateBoundsin classDrawable
-
setData
Set the coordinates of the point.- Parameters:
xyz- point's coordinates
-
getData
-
setColors
-
getColorMapper
Description copied from interface:IMultiColorableGet the colormapper.- Specified by:
getColorMapperin interfaceIMultiColorable
-
setColorMapper
Description copied from interface:IMultiColorableSet the colormapper that will be used by the Drawable, instead of using precomputed colors.- Specified by:
setColorMapperin interfaceIMultiColorable
-
setWidth
public void setWidth(float width) Set the width of the point.- Parameters:
width- point's width
-