ij.plugin
Class Colors

java.lang.Object
  extended byij.plugin.Colors
All Implemented Interfaces:
java.util.EventListener, java.awt.event.ItemListener, PlugIn

public class Colors
extends java.lang.Object
implements PlugIn, java.awt.event.ItemListener

This plugin implements most of the Edit/Options/Colors command.


Field Summary
static java.lang.String[] colors
           
 
Constructor Summary
Colors()
           
 
Method Summary
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)
           
 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

colors

public static final java.lang.String[] colors
Constructor Detail

Colors

public Colors()
Method Detail

run

public void run(java.lang.String arg)
Description copied from interface: PlugIn
This method is called when the plugin is loaded. 'arg', which may be blank, is the argument specified for this plugin in IJ_Props.txt.

Specified by:
run in interface PlugIn

getColorName

public static java.lang.String getColorName(java.awt.Color c,
                                            java.lang.String defaultName)

getColor

public static java.awt.Color getColor(java.lang.String name,
                                      java.awt.Color defaultColor)

itemStateChanged

public void itemStateChanged(java.awt.event.ItemEvent e)
Specified by:
itemStateChanged in interface java.awt.event.ItemListener