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 Color
highlightColor
protected boolean[]
isHighlighted
protected 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 void
draw(IPainter painter)
Call OpenGL2 routines for rendering the object.Coord3d[]
getData()
Color
getHighlightColor()
boolean
getHighlighted(int id)
Polygon2d
getHull2d()
List<Coord3d>
getLastProjection()
Coord3d[]
getProjection()
void
project(IPainter painter, Camera cam)
void
resetHighlighting()
void
setData(Coord3d[] coordinates)
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
-
-
-
-
Method Detail
-
draw
public void draw(IPainter painter)
Description copied from class:Drawable
Call OpenGL2 routines for rendering the object.- Specified by:
draw
in interfaceIGLRenderer
- Overrides:
draw
in classScatter
-
project
public void project(IPainter painter, Camera cam)
- Specified by:
project
in 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:
getHull2d
in interfaceSelectable
-
getLastProjection
public List<Coord3d> getLastProjection()
- Specified by:
getLastProjection
in interfaceSelectable
-
-