Class OrderingStrategyScoreColorMapper

java.lang.Object
org.jzy3d.colors.ColorMapper
org.jzy3d.colors.OrderingStrategyScoreColorMapper
All Implemented Interfaces:
IColorMappable

public class OrderingStrategyScoreColorMapper extends ColorMapper
A ColorMapper able to compute a coordinate color according to its score computed by the current Graph's AbstractOrderingStrategy. Method preDraw(java.lang.Object) is overriden to compute each
invalid reference
AbstractDrawables
score with the ordering strategy, so that we have a range. As colormapper may be shared by several components of a single Composite, on must provide an update policy to state which objects are allowed to call the re-initilizer preDraw(java.lang.Object) method.
Author:
Martin Pernollet
  • Field Details

  • Constructor Details

  • Method Details

    • preDraw

      public void preDraw(Object o)
      Description copied from class: ColorMapper
      A hook method to implement to prepare colormapper for the current draw call. The input parameter o must be the object calling preDraw. Indeed, the mapper is supposed to be able to check wether preDraw is actually allowed for the caller.
      Overrides:
      preDraw in class ColorMapper
    • getNumCoordinates

      protected int getNumCoordinates(List<Drawable> drawables, boolean onlyBaryCenter)
    • getColor

      public Color getColor(Coord3d coord)
      Description copied from class: ColorMapper
      call a colormap with a three dimensions coordinate
      Overrides:
      getColor in class ColorMapper