org.das2.graph.DasColorBar
Axis that converts to RGB color instead of horizontal or vertical
position.
DasColorBar( Datum min, Datum max, boolean log )
Create an color bar object, relating data and color.
DasColorBar( Datum min, Datum max, int orientation, boolean log )
Create an color bar object, relating data and color.
PROPERTY_TYPE
handle for the property "type".
PROPERTY_FILL_COLOR
handle for the property fillColor.
PROP_SPECIALCOLORS
PROP_SHOWCOLORBAR
getActiveRegion
getActiveRegion( ) → java.awt.Shape
Returns:
java.awt.Shape
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
getAxisBounds
getAxisBounds( ) → java.awt.Rectangle
Returns:
java.awt.Rectangle
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
getColorBarColumn
getColorBarColumn( org.das2.graph.DasColumn column ) → org.das2.graph.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 on old javadoc]
[view source]
getFillColor
getFillColor( ) → java.awt.Color
get the color used to indicate fill, often gray or a transparent
white. Note all instances use the same fillColor.
Returns:
the fill color.
[search for examples]
[view on GitHub]
[view on old javadoc]
[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 on old javadoc]
[view source]
getIndexColorModel
getIndexColorModel( ) → java.awt.image.IndexColorModel
return the color model so that indexed color model can be used.
Returns:
the color model
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
getSpecialColors
getSpecialColors( ) → String
Returns:
java.lang.String
[search for examples]
[view on GitHub]
[view on old javadoc]
[view source]
getType
getType( ) → org.das2.graph.DasColorBar.Type
return the type of colorbar (e.g. DasColorBar.Type.GRAYSCALE or DasColorBar.Type.APL_RAINBOW_BLACK0)
Returns:
the type of colorbar
[search for examples]
[view on GitHub]
[view on old javadoc]
[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 on old javadoc]
[view source]
isShowColorBar
isShowColorBar( ) → boolean
Returns:
boolean
[search for examples]
[view on GitHub]
[view on old javadoc]
[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 on old javadoc]
[view source]
setFillColor
setFillColor( java.awt.Color fillColor ) → void
set the color used to indicate fill, often gray or a transparent
white. Note all instances use the same fillColor.
Parameters
fillColor - the new fill color.
Returns:
void (returns nothing)
[search for examples]
[view on GitHub]
[view on old javadoc]
[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 on old javadoc]
[view source]
setSpecialColors
setSpecialColors( String specialColors ) → void
set this to a comma-delineated list of name:value pairs,
Parameters
specialColors - a String
Returns:
void (returns nothing)
[search for examples]
[view on GitHub]
[view on old javadoc]
[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 on old javadoc]
[view source]