Class ScatterMultiColorList

java.lang.Object
org.jzy3d.plot3d.primitives.Drawable
org.jzy3d.plot3d.primitives.ScatterMultiColorList
All Implemented Interfaces:
IMultiColorable, IGLRenderer, ISortableDraw
Direct Known Subclasses:
AWTScatterMultiColorList, ConcurrentScatterMultiColorList

public class ScatterMultiColorList extends Drawable implements IMultiColorable
A scatter plot supporting a List as input.
Author:
Martin Pernollet
  • Field Details

    • coordinates

      protected List<Coord3d> coordinates
    • width

      protected float width
    • mapper

      protected ColorMapper mapper
  • Constructor Details

    • ScatterMultiColorList

      public ScatterMultiColorList(ColorMapper mapper)
    • ScatterMultiColorList

      public ScatterMultiColorList(List<Coord3d> coordinates, ColorMapper mapper)
    • ScatterMultiColorList

      public ScatterMultiColorList(List<Coord3d> coordinates, ColorMapper mapper, float width)
  • Method Details

    • clear

      public void clear()
    • draw

      public void draw(IPainter painter)
      Description copied from class: Drawable
      Call OpenGL2 routines for rendering the object.
      Specified by:
      draw in interface IGLRenderer
      Specified by:
      draw in class Drawable
    • doDrawPoints

      protected void doDrawPoints(IPainter painter)
    • applyGeometryTransform

      public void applyGeometryTransform(Transform transform)
      Specified by:
      applyGeometryTransform in class Drawable
    • updateBounds

      public void updateBounds()
      Specified by:
      updateBounds in class Drawable
    • setData

      public void setData(List<Coord3d> coordinates)
      Set the coordinates of the point.
      Parameters:
      xyz - point's coordinates
    • getData

      public List<Coord3d> getData()
    • add

      public void add(Coord3d c)
    • getColorMapper

      public ColorMapper getColorMapper()
      Description copied from interface: IMultiColorable
      Get the colormapper.
      Specified by:
      getColorMapper in interface IMultiColorable
    • setColorMapper

      public void setColorMapper(ColorMapper mapper)
      Description copied from interface: IMultiColorable
      Set the colormapper that will be used by the Drawable, instead of using precomputed colors.
      Specified by:
      setColorMapper in interface IMultiColorable
    • setWidth

      public void setWidth(float width)
      Set the width of the point.
      Parameters:
      width - point's width