org.das2.graph
Class DasColorBar.Type

java.lang.Object
  extended by org.das2.graph.DasColorBar.Type
All Implemented Interfaces:
Displayable, Enumeration
Enclosing class:
DasColorBar

public static final class DasColorBar.Type
extends java.lang.Object
implements Enumeration, Displayable


Field Summary
static DasColorBar.Type COLOR_WEDGE
           
static DasColorBar.Type GRAYSCALE
           
static DasColorBar.Type INVERSE_GRAYSCALE
           
static DasColorBar.Type WRAPPED_COLOR_WEDGE
           
 
Method Summary
 int getColorCount()
           
 java.awt.image.BufferedImage getHorizontalScaledImage(int width, int height)
           
 javax.swing.Icon getListIcon()
          An icon can be provided that will be shown in a list along with the textual description of the element.
 java.lang.String getListLabel()
          return a String that will help the user identify this item when choosing from a list.
 int getRGB(int index)
           
 java.awt.image.BufferedImage getVerticalScaledImage(int width, int height)
           
 void maybeInitializeIcon()
           
static DasColorBar.Type parse(java.lang.String s)
           
 java.lang.String toString()
          Type-safe Enumerations implementing this interface should override the toString() method to return a String that will be helpful to the user when choosing this as an option from a list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

COLOR_WEDGE

public static final DasColorBar.Type COLOR_WEDGE

GRAYSCALE

public static final DasColorBar.Type GRAYSCALE

INVERSE_GRAYSCALE

public static final DasColorBar.Type INVERSE_GRAYSCALE

WRAPPED_COLOR_WEDGE

public static final DasColorBar.Type WRAPPED_COLOR_WEDGE
Method Detail

getListIcon

public javax.swing.Icon getListIcon()
Description copied from interface: Enumeration
An icon can be provided that will be shown in a list along with the textual description of the element. This method should return null if there is no icon available.

Specified by:
getListIcon in interface Displayable
Specified by:
getListIcon in interface Enumeration

maybeInitializeIcon

public void maybeInitializeIcon()

toString

public java.lang.String toString()
Description copied from interface: Enumeration
Type-safe Enumerations implementing this interface should override the toString() method to return a String that will be helpful to the user when choosing this as an option from a list.

Specified by:
toString in interface Enumeration
Overrides:
toString in class java.lang.Object

getListLabel

public java.lang.String getListLabel()
Description copied from interface: Displayable
return a String that will help the user identify this item when choosing from a list.

Specified by:
getListLabel in interface Displayable

getColorCount

public int getColorCount()

getRGB

public int getRGB(int index)

getHorizontalScaledImage

public java.awt.image.BufferedImage getHorizontalScaledImage(int width,
                                                             int height)

getVerticalScaledImage

public java.awt.image.BufferedImage getVerticalScaledImage(int width,
                                                           int height)

parse

public static DasColorBar.Type parse(java.lang.String s)