org.das2.graph.DasColorBar
Axis that converts to RGB color instead of horizontal or vertical
position.
PROPERTY_TYPE
handle for the property "type".
PROPERTY_FILL_COLOR
handle for the property fillColor.
PROP_SHOWCOLORBAR
getColorBarColumn
getColorBarColumn( org.das2.graph.DasColumn column ) → DasColumn
return a column suitable for the colorbar, based on the spectrogram
column.
Parameters
column - the column for the spectrogram described.
Returns:
the new column.
search for examples
view on GitHub
view source
getFillColorIndex
getFillColorIndex( ) → int
return the index of the fill color in the indexed color model.
Returns:
the index of the fill color
search for examples
view on GitHub
view source
getIndexColorModel
getIndexColorModel( ) → IndexColorModel
return the color model so that indexed color model can be used.
Returns:
the color model
search for examples
view on GitHub
view source
indexColorTransform
indexColorTransform( double data, Units units ) → int
convert the double to an indexed color.
Parameters
data - a data value
units - the units of the given data value.
Returns:
the index into the color table.
See Also:
getIndexColorModel()
search for examples
view on GitHub
view source
isShowColorBar
isShowColorBar( ) → boolean
Returns:
boolean
search for examples
view on GitHub
view source
rgbTransform
rgbTransform( double data, Units units ) → int
convert the double to an RGB color.
Parameters
data - a data value
units - the units of the given data value.
Returns:
the combined RGB components
See Also:
Color#Color(int)
search for examples
view on GitHub
view source
setShowColorBar
setShowColorBar( boolean showColorBar ) → void
when set to false, this is basically an ordinary axis. Autoplot uses
this to support StackedHistogram mode.
Parameters
showColorBar - true if the colorbar should be drawn.
Returns:
void (returns nothing)
search for examples
view on GitHub
view source
setType
setType( org.das2.graph.DasColorBar.Type type ) → void
set the type of colorbar
Parameters
type - type of colorbar (e.g. DasColorBar.Type.GRAYSCALE or DasColorBar.Type.APL_RAINBOW_BLACK0)
Returns:
void (returns nothing)
search for examples
view on GitHub
view source