|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectij.plugin.Colors
public class Colors
This plugin implements most of the Edit/Options/Colors command.
| Field Summary | |
|---|---|
static String[] |
colors
|
| Constructor Summary | |
|---|---|
Colors()
|
|
| Method Summary | |
|---|---|
static String |
colorToString(Color color)
Converts a Color into a string ("red", "green", #aa55ff, etc.). |
static String |
colorToString2(Color color)
Converts a Color into a string ("Red", "Green", #aa55ff, etc.). |
static Color |
decode(String hexColor,
Color defaultColor)
|
static int |
getBlue(String hexColor)
|
static Color |
getColor(String name,
Color defaultColor)
|
static String |
getColorName(Color c,
String defaultName)
|
static String[] |
getColors(String... moreColors)
|
static int |
getGreen(String hexColor)
|
static int |
getRed(String hexColor)
|
static String |
hexToColor(String hex)
Converts a hex color (e.g., "ffff00") into "red", "green", "yellow", etc. |
static String |
hexToColor2(String hex)
Converts a hex color (e.g., "ffff00") into "Red", "Green", "Yellow", etc. |
void |
itemStateChanged(ItemEvent e)
|
void |
run(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 String[] colors
| Constructor Detail |
|---|
public Colors()
| Method Detail |
|---|
public void run(String arg)
PlugIn
run in interface PlugIn
public static String getColorName(Color c,
String defaultName)
public static Color getColor(String name,
Color defaultColor)
public static Color decode(String hexColor,
Color defaultColor)
public static int getRed(String hexColor)
public static int getGreen(String hexColor)
public static int getBlue(String hexColor)
public static String hexToColor(String hex)
public static String hexToColor2(String hex)
public static String colorToString(Color color)
public static String colorToString2(Color color)
public void itemStateChanged(ItemEvent e)
itemStateChanged in interface ItemListenerpublic static String[] getColors(String... moreColors)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||