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 Scatter
colors, coordinates, rgb, widthFields inherited from class 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 Scatter
applyGeometryTransform, clear, doDrawPoints, getColor, getColors, getCoordinates, getWidth, setColor, setColors, setData, setWidth, updateBoundsMethods inherited from class 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 Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ISingleColorable
getColor, setColor
-
Field Details
-
isHighlighted
protected boolean[] isHighlighted -
highlightColor
-
projection
-
-
Constructor Details
-
SelectableScatter
-
-
Method Details
-
draw
-
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
-
getData
-
getHull2d
- Specified by:
getHull2din interfaceSelectable
-
getLastProjection
- Specified by:
getLastProjectionin interfaceSelectable
-