|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jzy3d.colors.ColorMapper
public class ColorMapper
A ColorMapper
is a IColorMappable
and a IColorMap
at the same time.
It allows getting a color from a Coord3d instead of attaching a IColorMap
to a IColorMappable
object.
Constructor Summary | |
---|---|
ColorMapper(ColorMapper colormapper,
Color factor)
|
|
ColorMapper(IColorMap colormap,
float zmin,
float zmax)
|
|
ColorMapper(IColorMap colormap,
float zmin,
float zmax,
Color factor)
|
Method Summary | |
---|---|
Color |
getColor(Coord3d coord)
|
Color |
getColor(float v)
|
IColorMap |
getColorMap()
|
Range |
getRange()
|
Scale |
getScale()
|
float |
getZMax()
Retrieve the upper value boundary for a IColorMap . |
float |
getZMin()
Retrieve the lower value boundary for a IColorMap . |
void |
setRange(Range range)
|
void |
setScale(Scale range)
|
void |
setZMax(float value)
Set the upper value boundary for a IColorMap . |
void |
setZMin(float value)
Set the lower value boundary for a IColorMap . |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ColorMapper(IColorMap colormap, float zmin, float zmax)
public ColorMapper(IColorMap colormap, float zmin, float zmax, Color factor)
public ColorMapper(ColorMapper colormapper, Color factor)
Method Detail |
---|
public Color getColor(Coord3d coord)
public Color getColor(float v)
public IColorMap getColorMap()
public float getZMin()
IColorMappable
IColorMap
.
getZMin
in interface IColorMappable
public float getZMax()
IColorMappable
IColorMap
.
getZMax
in interface IColorMappable
public void setZMin(float value)
IColorMappable
IColorMap
.
setZMin
in interface IColorMappable
value
- the minimum Z valuepublic void setZMax(float value)
IColorMappable
IColorMap
.
setZMax
in interface IColorMappable
value
- the maximum Z valuepublic void setRange(Range range)
public Range getRange()
public void setScale(Scale range)
public Scale getScale()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |