processing.app.tools
Class ColorSelector
java.lang.Object
processing.app.tools.ColorSelector
- All Implemented Interfaces:
- java.lang.Runnable, java.util.EventListener, javax.swing.event.DocumentListener, Tool
public class ColorSelector
- extends java.lang.Object
- implements Tool, 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).
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ColorSelector
public ColorSelector()
getMenuTitle
public java.lang.String getMenuTitle()
- Specified by:
getMenuTitle
in interface Tool
init
public void init(Editor editor)
- Specified by:
init
in interface Tool
run
public void run()
- Specified by:
run
in interface java.lang.Runnable
- Specified by:
run
in interface Tool
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