Package org.jzy3d.colors
Class OrderingStrategyScoreColorMapper
java.lang.Object
org.jzy3d.colors.ColorMapper
org.jzy3d.colors.OrderingStrategyScoreColorMapper
- All Implemented Interfaces:
IColorMappable
A
score with the
ordering strategy, so that we have a range.
As colormapper may be shared by several components of a single
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 @link
AbstractDrawables
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 Summary
Modifier and TypeFieldDescriptionprotected float
protected IColorMapperUpdatePolicy
protected Graph
Fields inherited from class org.jzy3d.colors.ColorMapper
colormap, factor, max, min
-
Constructor Summary
ConstructorDescriptionOrderingStrategyScoreColorMapper
(IColorMap colormap, IColorMapperUpdatePolicy policy, Graph sceneGraph, Color factor) -
Method Summary
-
Field Details
-
off
protected float off -
sceneGraph
-
policy
-
-
Constructor Details
-
OrderingStrategyScoreColorMapper
public OrderingStrategyScoreColorMapper(IColorMap colormap, IColorMapperUpdatePolicy policy, Graph sceneGraph, Color factor)
-
-
Method Details
-
preDraw
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 classColorMapper
-
getNumCoordinates
-
getColor
Description copied from class:ColorMapper
call a colormap with a three dimensions coordinate- Overrides:
getColor
in classColorMapper
-