Package org.jzy3d.plot3d.primitives
Class ScatterPoint
- java.lang.Object
-
- org.jzy3d.plot3d.primitives.Drawable
-
- org.jzy3d.plot3d.primitives.ScatterPoint
-
- All Implemented Interfaces:
ISingleColorable,IGLRenderer,ISortableDraw
- Direct Known Subclasses:
ConcurrentScatterPoint
public class ScatterPoint extends Drawable implements ISingleColorable
Experimental 3d object.- Author:
- Martin Pernollet
-
-
Field Summary
Fields Modifier and Type Field Description List<LightPoint>pointsfloatwidth-
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 ScatterPoint()ScatterPoint(List<LightPoint> points, float width)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(LightPoint point)voidapplyGeometryTransform(Transform transform)voidclear()protected voiddoDrawPoints(IPainter painter)voiddraw(IPainter painter)Call OpenGL2 routines for rendering the object.ColorgetColor()Get the color.List<LightPoint>getData()voidsetColor(Color color)Set the color.voidsetPoints(List<LightPoint> points)voidsetWidth(float width)Set the width of the point.voidupdateBounds()-
Methods inherited from class org.jzy3d.plot3d.primitives.Drawable
addDrawableListener, dispose, doDrawBoundsIfDisplayed, doTransform, fireDrawableChanged, fireDrawableChanged, getBarycentre, getBoundingBoxColor, getBounds, getDistance, getLegend, getLongestDistance, getShortestDistance, getSpaceTransformer, getTransform, getTransformBefore, hasLegend, isBoundingBoxDisplayed, isDisplayed, isLegendDisplayed, negative, removeDrawableListener, setBoundingBoxColor, setBoundingBoxDisplayed, setDisplayed, setLegend, setLegendDisplayed, setSpaceTransformer, setTransform, setTransformBefore, toString, toString
-
-
-
-
Field Detail
-
points
public List<LightPoint> points
-
width
public float width
-
-
Constructor Detail
-
ScatterPoint
public ScatterPoint()
-
ScatterPoint
public ScatterPoint(List<LightPoint> points, float width)
-
-
Method Detail
-
clear
public void clear()
-
draw
public void draw(IPainter painter)
Description copied from class:DrawableCall OpenGL2 routines for rendering the object.- Specified by:
drawin interfaceIGLRenderer- Specified by:
drawin classDrawable
-
doDrawPoints
protected void doDrawPoints(IPainter painter)
-
applyGeometryTransform
public void applyGeometryTransform(Transform transform)
- Specified by:
applyGeometryTransformin classDrawable
-
add
public void add(LightPoint point)
-
setPoints
public void setPoints(List<LightPoint> points)
-
updateBounds
public void updateBounds()
- Specified by:
updateBoundsin classDrawable
-
getData
public List<LightPoint> getData()
-
setColor
public void setColor(Color color)
Description copied from interface:ISingleColorableSet the color.- Specified by:
setColorin interfaceISingleColorable- Parameters:
color- the color
-
getColor
public Color getColor()
Description copied from interface:ISingleColorableGet the color.- Specified by:
getColorin interfaceISingleColorable- Returns:
- color the color.
-
setWidth
public void setWidth(float width)
Set the width of the point.- Parameters:
width- point's width
-
-