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 reference
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
FieldsModifier and TypeFieldDescriptionprotected floatprotected IColorMapperUpdatePolicyprotected GraphFields inherited from class ColorMapper
colormap, factor, max, min -
Constructor Summary
ConstructorsConstructorDescriptionOrderingStrategyScoreColorMapper(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:ColorMapperA 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:
preDrawin classColorMapper
-
getNumCoordinates
-
getColor
Description copied from class:ColorMappercall a colormap with a three dimensions coordinate- Overrides:
getColorin classColorMapper
-