Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://www.astro.louisville.edu/software/astroimagej/imagej/api/ij/plugin/Colors.html
Дата изменения: Thu Dec 2 23:03:11 2010 Дата индексирования: Mon Oct 1 21:46:48 2012 Кодировка: Поисковые слова: hawaii |
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ij.plugin.Colors
public class Colors
This plugin implements most of the Edit/Options/Colors command.
Field Summary | |
---|---|
static java.lang.String[] |
colors
|
Constructor Summary | |
---|---|
Colors()
|
Method Summary | |
---|---|
static java.lang.String |
colorToString(java.awt.Color color)
Converts a Color into a string ("red", "green", #aa55ff, etc.). |
static java.awt.Color |
decode(java.lang.String hexColor,
java.awt.Color defaultColor)
|
static java.awt.Color |
getColor(java.lang.String name,
java.awt.Color defaultColor)
|
static java.lang.String |
getColorName(java.awt.Color c,
java.lang.String defaultName)
|
static java.lang.String |
hexToColor(java.lang.String hex)
Converts a hex color (e.g., "ffff00") into "red", "green", "yellow", etc. |
void |
itemStateChanged(java.awt.event.ItemEvent e)
|
void |
run(java.lang.String arg)
This method is called when the plugin is loaded. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String[] colors
Constructor Detail |
---|
public Colors()
Method Detail |
---|
public void run(java.lang.String arg)
PlugIn
run
in interface PlugIn
public static java.lang.String getColorName(java.awt.Color c, java.lang.String defaultName)
public static java.awt.Color getColor(java.lang.String name, java.awt.Color defaultColor)
public static java.awt.Color decode(java.lang.String hexColor, java.awt.Color defaultColor)
public static java.lang.String hexToColor(java.lang.String hex)
public static java.lang.String colorToString(java.awt.Color color)
public void itemStateChanged(java.awt.event.ItemEvent e)
itemStateChanged
in interface java.awt.event.ItemListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |