processing.app.tools
Class ColorSelector

java.lang.Object
  extended by processing.app.tools.ColorSelector
All Implemented Interfaces:
java.util.EventListener, javax.swing.event.DocumentListener

public class ColorSelector
extends java.lang.Object
implements javax.swing.event.DocumentListener

Color selector tool for the Tools menu.

Using the keyboard shortcuts, you can copy/paste the values for the colors and paste them into your program. We didn't do any sort of auto-insert of colorMode() or fill() or stroke() code cuz we couldn't decide on a good way to do this.. your contributions welcome).


Nested Class Summary
 class ColorSelector.ColorRange
           
 class ColorSelector.ColorSlider
           
 
Constructor Summary
ColorSelector(Editor editor)
           
 
Method Summary
 void changedUpdate(javax.swing.event.DocumentEvent e)
           
 void insertUpdate(javax.swing.event.DocumentEvent e)
           
 void removeUpdate(javax.swing.event.DocumentEvent e)
           
 void show()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColorSelector

public ColorSelector(Editor editor)
Method Detail

show

public void show()

changedUpdate

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

removeUpdate

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

insertUpdate

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