org.das2.components.propertyeditor.Displayable

Type-safe enumerations that are used as property types that are editable with a PropertyEditor should implement this interface.


drawListIcon

drawListIcon( java.awt.Graphics2D g, int x, int y ) → void

implement this to provide nice drawing of icon on printing graphics context.

Parameters

g - the graphics context.
x - the x position, typically 0.
y - the y position, typically 0.

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getListIcon

getListIcon( ) → javax.swing.Icon

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, or a roughly 16x16 pixel icon.

Returns:

the icon.

[search for examples] [view on GitHub] [view on old javadoc] [view source]


getListLabel

getListLabel( ) → String

return a String that will help the user identify this item when choosing from a list.

Returns:

the list label.

[search for examples] [view on GitHub] [view on old javadoc] [view source]