Package org.jzy3d.plot3d.primitives
Class Scatter
- java.lang.Object
-
- org.jzy3d.plot3d.primitives.Drawable
-
- org.jzy3d.plot3d.primitives.Scatter
-
- All Implemented Interfaces:
ISingleColorable,IGLRenderer,ISortableDraw
- Direct Known Subclasses:
MonitorScatter,SelectableScatter
public class Scatter extends Drawable implements ISingleColorable
A collection of coordinates rendered as dots. Warning : dots having a width of 1 may not be visible in case HiDPI is ON.- Author:
- Martin Pernollet
-
-
Field Summary
Fields Modifier and Type Field Description Color[]colorsCoord3d[]coordinatesColorrgbfloatwidth-
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 Scatter()Scatter(List<Coord3d> coordinates)Scatter(List<Coord3d> coordinates, Color rgb)Scatter(List<Coord3d> coordinates, Color rgb, float width)Scatter(Coord3d[] coordinates)Scatter(Coord3d[] coordinates, Color rgb)Scatter(Coord3d[] coordinates, Color[] colors)Scatter(Coord3d[] coordinates, Color[] colors, float width)Scatter(Coord3d[] coordinates, Color rgb, float width)Scatter(Coord3ds coords)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapplyGeometryTransform(Transform transform)voidclear()protected voiddoDrawPoints(IPainter painter)voiddraw(IPainter painter)Call OpenGL2 routines for rendering the object.ColorgetColor()Get the color.Color[]getColors()Coord3d[]getCoordinates()Coord3d[]getData()floatgetWidth()voidsetColor(Color color)Set the color.voidsetColors(Color[] colors)voidsetData(List<Coord3d> coordinates)voidsetData(Coord3d[] coordinates)Set the coordinates of the point.voidsetWidth(float width)Set the width of the point.voidupdateBounds()-
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
-
-
-
-
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
-
setData
public void setData(Coord3d[] coordinates)
Set the coordinates of the point.- Parameters:
xyz- point's coordinates
-
updateBounds
public void updateBounds()
- Specified by:
updateBoundsin classDrawable
-
getData
public Coord3d[] getData()
-
setColors
public void setColors(Color[] colors)
-
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
-
getColors
public Color[] getColors()
-
getCoordinates
public Coord3d[] getCoordinates()
-
getWidth
public float getWidth()
-
-