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
A Scatter that supports an "highlighted status" to change selected point color
- Author:
- Martin Pernollet
-
Field Summary
FieldsFields inherited from class org.jzy3d.plot3d.primitives.Scatter
colors, coordinates, rgb, widthFields inherited from class org.jzy3d.plot3d.primitives.Drawable
bbox, boundingBoxColor, boundingBoxDisplayed, displayed, hasListeners, legend, legendDisplayed, listeners, spaceTransformer, transform, transformBefore -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCall OpenGL2 routines for rendering the object.Coord3d[]getData()booleangetHighlighted(int id) Coord3d[]voidvoidvoidSet 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, updateBoundsMethods 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, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.jzy3d.colors.ISingleColorable
getColor, setColor
-
Field Details
-
isHighlighted
protected boolean[] isHighlighted -
highlightColor
-
projection
-
-
Constructor Details
-
SelectableScatter
-
-
Method Details
-
draw
Description copied from class:DrawableCall OpenGL2 routines for rendering the object.- Specified by:
drawin interfaceIGLRenderer- Overrides:
drawin classScatter
-
project
- Specified by:
projectin interfaceSelectable
-
getProjection
-
getHighlightColor
-
setHighlightColor
-
setHighlighted
public void setHighlighted(int id, boolean value) -
getHighlighted
public boolean getHighlighted(int id) -
resetHighlighting
public void resetHighlighting() -
setData
Set the coordinates of the point. -
getData
-
getHull2d
- Specified by:
getHull2din interfaceSelectable
-
getLastProjection
- Specified by:
getLastProjectionin interfaceSelectable
-