ij.gui
Class ColorChooser

java.lang.Object
  extended by ij.gui.ColorChooser
All Implemented Interfaces:
java.awt.event.AdjustmentListener, java.util.EventListener, javax.swing.event.DocumentListener

public class ColorChooser
extends java.lang.Object
implements javax.swing.event.DocumentListener, java.awt.event.AdjustmentListener

Displays a dialog that allows the user to select a color using three sliders.


Constructor Summary
ColorChooser(java.lang.String title, java.awt.Color initialColor, boolean useHSB)
          Constructs a ColorChooser using the specified title and initial color.
ColorChooser(java.lang.String title, java.awt.Color initialColor, boolean useHSB, javax.swing.JFrame frame)
           
 
Method Summary
 void adjustmentValueChanged(java.awt.event.AdjustmentEvent e)
           
 void changedUpdate(javax.swing.event.DocumentEvent e)
           
 java.awt.Color getColor()
          Displays a color selection dialog and returns the color selected by the user.
 void insertUpdate(javax.swing.event.DocumentEvent e)
           
 void removeUpdate(javax.swing.event.DocumentEvent e)
           
 void textValueChanged(javax.swing.event.DocumentEvent e)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColorChooser

public ColorChooser(java.lang.String title,
                    java.awt.Color initialColor,
                    boolean useHSB)
Constructs a ColorChooser using the specified title and initial color.


ColorChooser

public ColorChooser(java.lang.String title,
                    java.awt.Color initialColor,
                    boolean useHSB,
                    javax.swing.JFrame frame)
Method Detail

getColor

public java.awt.Color getColor()
Displays a color selection dialog and returns the color selected by the user.


textValueChanged

public void textValueChanged(javax.swing.event.DocumentEvent e)

insertUpdate

public void insertUpdate(javax.swing.event.DocumentEvent e)
Specified by:
insertUpdate in interface javax.swing.event.DocumentListener

removeUpdate

public void removeUpdate(javax.swing.event.DocumentEvent e)
Specified by:
removeUpdate in interface javax.swing.event.DocumentListener

changedUpdate

public void changedUpdate(javax.swing.event.DocumentEvent e)
Specified by:
changedUpdate in interface javax.swing.event.DocumentListener

adjustmentValueChanged

public void adjustmentValueChanged(java.awt.event.AdjustmentEvent e)
Specified by:
adjustmentValueChanged in interface java.awt.event.AdjustmentListener