org.das2.util.DesktopColorChooserPanel

Panel for picking colors off the desktop and maintaining a list of colors. This is one of the most confusing dialogs, and needs to be either well- documented or re-done. TODO: that. 1. click "Pick from Desktop" 2. press S which selects the color 3. clicking on another GUI will cause focus to be lost. 4. or clicking on the stop button will stop.

DesktopColorChooserPanel( )


colorIcon

colorIcon( java.awt.Color iconColor, int w, int h ) → Icon

return an icon block with the color and size.

Parameters

iconColor - the color
w - the width in pixels
h - the height in pixels

Returns:

an icon.

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


getDisplayName

getDisplayName( ) → String

Returns:

java.lang.String

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


getLargeDisplayIcon

getLargeDisplayIcon( ) → Icon

Returns:

javax.swing.Icon

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


getSmallDisplayIcon

getSmallDisplayIcon( ) → Icon

Returns:

javax.swing.Icon

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


main

main( java.lang.String[] args ) → void

Parameters

args - a java.lang.String[]

Returns:

void (returns nothing)

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


toHexString

toHexString( java.awt.Color c ) → String

Parameters

c - a Color

Returns:

java.lang.String

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


updateChooser

updateChooser( ) → void

Returns:

void (returns nothing)

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