public abstract class ColorPipetteBase extends java.lang.Object implements ColorPipette
Disposable.Parent
Modifier and Type | Field and Description |
---|---|
protected javax.swing.JComponent |
myParent |
protected java.awt.Robot |
myRobot |
Constructor and Description |
---|
ColorPipetteBase(javax.swing.JComponent parent,
ColorListener colorListener) |
Modifier and Type | Method and Description |
---|---|
void |
cancelPipette() |
static boolean |
canUseMacPipette() |
void |
dispose()
Usually not invoked directly, see class javadoc.
|
java.awt.Color |
getColor() |
protected java.awt.Color |
getInitialColor() |
protected java.awt.Dialog |
getOrCreatePickerDialog() |
protected java.awt.Dialog |
getPickerDialog() |
protected java.awt.Color |
getPixelColor(java.awt.Point location) |
boolean |
imageUpdate(java.awt.Image image,
int i,
int i1,
int i2,
int i3,
int i4) |
protected void |
notifyListener(java.awt.Color c,
int delayMillis) |
void |
pickAndClose() |
protected void |
setColor(java.awt.Color color) |
void |
setInitialColor(java.awt.Color initialColor) |
java.awt.Dialog |
show() |
protected java.awt.Point |
updateLocation() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isAvailable
protected final javax.swing.JComponent myParent
protected final java.awt.Robot myRobot
public ColorPipetteBase(javax.swing.JComponent parent, ColorListener colorListener)
public static boolean canUseMacPipette()
public void pickAndClose()
pickAndClose
in interface ColorPipette
protected java.awt.Color getPixelColor(java.awt.Point location)
protected java.awt.Color getInitialColor()
public void setInitialColor(java.awt.Color initialColor)
setInitialColor
in interface ColorPipette
protected void setColor(java.awt.Color color)
public java.awt.Color getColor()
getColor
in interface ColorPipette
public java.awt.Dialog show()
show
in interface ColorPipette
protected java.awt.Point updateLocation()
protected java.awt.Dialog getPickerDialog()
protected java.awt.Dialog getOrCreatePickerDialog()
protected void notifyListener(java.awt.Color c, int delayMillis)
public boolean imageUpdate(java.awt.Image image, int i, int i1, int i2, int i3, int i4)
imageUpdate
in interface java.awt.image.ImageObserver
public void cancelPipette()
cancelPipette
in interface ColorPipette
public void dispose()
Disposable
dispose
in interface Disposable