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
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Call OpenGL2 routines for rendering the object.Coord3d[]
getData()
boolean
getHighlighted
(int id) Coord3d[]
void
void
void
Set the coordinates of the point.void
setHighlightColor
(Color highlightColor) void
setHighlighted
(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
-
Field Details
-
isHighlighted
protected boolean[] isHighlighted -
highlightColor
-
projection
-
-
Constructor Details
-
SelectableScatter
-
-
Method Details
-
draw
Description copied from class:Drawable
Call OpenGL2 routines for rendering the object.- Specified by:
draw
in interfaceIGLRenderer
- Overrides:
draw
in classScatter
-
project
- Specified by:
project
in 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:
getHull2d
in interfaceSelectable
-
getLastProjection
- Specified by:
getLastProjection
in interfaceSelectable
-