maspack.render.color
Class JetColorMap
java.lang.Object
maspack.render.color.ColorMapBase
maspack.render.color.InterpolatingColorMap
maspack.render.color.JetColorMap
- All Implemented Interfaces:
- java.lang.Cloneable, CompositeProperty, HasProperties, ColorMap, Clonable, Scannable
public class JetColorMap
- extends InterpolatingColorMap
Colormap that implements Matlab's default "jet" interpolation.
More generally, it interpolates between a given list of colors
- Author:
- Antonio
Constructor Summary |
JetColorMap()
|
JetColorMap(java.awt.Color[] colors)
Creates a ColorMap that evenly interpolates between
the supplied colors. |
Methods inherited from class maspack.render.color.ColorMapBase |
getColor3Value, getColor4Value, getProperty, getPropertyHost, getPropertyInfo, getSubClasses, isWritable, scan, setPropertyHost, setPropertyInfo, write |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
myProps
public static PropertyList myProps
JetColorMap
public JetColorMap()
JetColorMap
public JetColorMap(java.awt.Color[] colors)
- Creates a ColorMap that evenly interpolates between
the supplied colors.
- See Also:
InterpolatingColorMap.setColorArray(Color[])
getAllPropertyInfo
public PropertyList getAllPropertyInfo()
- Description copied from interface:
HasProperties
- Returns a list giving static information about all properties exported by
this object.
- Specified by:
getAllPropertyInfo
in interface HasProperties
- Overrides:
getAllPropertyInfo
in class InterpolatingColorMap
- Returns:
- static information for all exported properties
copy
public JetColorMap copy()
- Specified by:
copy
in class InterpolatingColorMap
clone
public JetColorMap clone()
- Description copied from interface:
CompositeProperty
- Returns a clone of this composite property.
- Specified by:
clone
in interface CompositeProperty
- Specified by:
clone
in interface Clonable
- Overrides:
clone
in class InterpolatingColorMap
- Returns:
- clone of this property