Class SelectableScatter
- java.lang.Object
-
- org.jzy3d.plot3d.primitives.Drawable
-
- org.jzy3d.plot3d.primitives.Scatter
-
- org.jzy3d.plot3d.primitives.selectable.SelectableScatter
-
- All Implemented Interfaces:
ISingleColorable,IGLRenderer,ISortableDraw,Selectable
public class SelectableScatter extends Scatter implements ISingleColorable, Selectable
A Scatter that supports an "highlighted status" to change selected point color- Author:
- Martin Pernollet
-
-
Field Summary
Fields Modifier and Type Field Description protected ColorhighlightColorprotected boolean[]isHighlightedprotected Coord3d[]projection-
Fields inherited from class org.jzy3d.plot3d.primitives.Scatter
colors, coordinates, rgb, 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 SelectableScatter(Coord3d[] coordinates, Color[] colors)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddraw(IPainter painter)Call OpenGL2 routines for rendering the object.Coord3d[]getData()ColorgetHighlightColor()booleangetHighlighted(int id)Polygon2dgetHull2d()List<Coord3d>getLastProjection()Coord3d[]getProjection()voidproject(IPainter painter, Camera cam)voidresetHighlighting()voidsetData(Coord3d[] coordinates)Set the coordinates of the point.voidsetHighlightColor(Color highlightColor)voidsetHighlighted(int id, boolean value)-
Methods inherited from class org.jzy3d.plot3d.primitives.Scatter
applyGeometryTransform, clear, doDrawPoints, getColor, getColors, getCoordinates, getWidth, setColor, setColors, setData, setWidth, 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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.jzy3d.colors.ISingleColorable
getColor, setColor
-
-
-
-
Method Detail
-
draw
public void draw(IPainter painter)
Description copied from class:DrawableCall OpenGL2 routines for rendering the object.- Specified by:
drawin interfaceIGLRenderer- Overrides:
drawin classScatter
-
project
public void project(IPainter painter, Camera cam)
- Specified by:
projectin interfaceSelectable
-
getProjection
public Coord3d[] getProjection()
-
getHighlightColor
public Color getHighlightColor()
-
setHighlightColor
public void setHighlightColor(Color highlightColor)
-
setHighlighted
public void setHighlighted(int id, boolean value)
-
getHighlighted
public boolean getHighlighted(int id)
-
resetHighlighting
public void resetHighlighting()
-
setData
public void setData(Coord3d[] coordinates)
Set the coordinates of the point.
-
getHull2d
public Polygon2d getHull2d()
- Specified by:
getHull2din interfaceSelectable
-
getLastProjection
public List<Coord3d> getLastProjection()
- Specified by:
getLastProjectionin interfaceSelectable
-
-