maspack.render.color
Class JetColorMap

java.lang.Object
  extended by maspack.render.color.ColorMapBase
      extended by maspack.render.color.InterpolatingColorMap
          extended by 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

Field Summary
static PropertyList myProps
           
 
Constructor Summary
JetColorMap()
           
JetColorMap(java.awt.Color[] colors)
          Creates a ColorMap that evenly interpolates between the supplied colors.
 
Method Summary
 JetColorMap clone()
          Returns a clone of this composite property.
 JetColorMap copy()
           
 PropertyList getAllPropertyInfo()
          Returns a list giving static information about all properties exported by this object.
 
Methods inherited from class maspack.render.color.InterpolatingColorMap
getColor, getColorArray, getColorString, getColorString, getHSV, getHSV, getRGB, getRGB, setColorArray, setColorString
 
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
 

Field Detail

myProps

public static PropertyList myProps
Constructor Detail

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[])
Method Detail

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