|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.colorchooser.SyntheticImage javax.swing.colorchooser.DefaultHSBChooserPanel.HSBImage
Class for the slider and palette images.
Field Summary | |
protected boolean |
aborted
|
protected float |
b
|
private static int |
BSLIDER
|
private static int |
BSQUARE
|
protected int |
cachedColor
|
protected int |
cachedY
|
(package private) static ColorModel |
cm
|
protected float |
h
|
protected int |
height
|
protected float[] |
hsb
|
private static int |
HSLIDER
|
private static int |
HSQUARE
|
protected boolean |
isDirty
|
static int |
pixMask
|
protected float |
s
|
private static int |
SSLIDER
|
private static int |
SSQUARE
|
protected int |
type
|
protected int |
width
|
Constructor Summary | |
protected |
DefaultHSBChooserPanel.HSBImage(int type,
int width,
int height,
float h,
float s,
float b)
|
Method Summary | |
void |
addConsumer(ImageConsumer ic)
Registers an ImageConsumer with the
ImageProducer for access to the image data
during a later reconstruction of the Image .
|
protected void |
computeRow(int y,
int[] row)
Overriden method from SyntheticImage |
float |
getBrightness()
|
void |
getHSBForLocation(int x,
int y,
float[] hsbArray)
|
float |
getHue()
|
private int |
getRGBForLocation(int x,
int y)
|
float |
getSaturation()
|
boolean |
isConsumer(ImageConsumer ic)
Determines if a specified ImageConsumer
object is currently registered with this
ImageProducer as one of its consumers. |
protected boolean |
isStatic()
|
void |
nextFrame()
|
void |
nextFrame(int param)
|
void |
removeConsumer(ImageConsumer ic)
Removes the specified ImageConsumer object
from the list of consumers currently registered to
receive image data. |
void |
requestTopDownLeftRightResend(ImageConsumer ic)
Requests, on behalf of the ImageConsumer ,
that the ImageProducer attempt to resend
the image data one more time in TOPDOWNLEFTRIGHT order
so that higher quality conversion algorithms which
depend on receiving pixels in order can be used to
produce a better output version of the image. |
void |
setBrightness(float brightness)
|
void |
setHue(float hue)
|
void |
setSaturation(float saturation)
|
void |
setValues(int type,
float h,
float s,
float b)
|
void |
startProduction(ImageConsumer ic)
Registers the specified ImageConsumer object
as a consumer and starts an immediate reconstruction of
the image data which will then be delivered to this
consumer and any other consumer which might have already
been registered with the producer. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected float h
protected float s
protected float b
protected float[] hsb
protected boolean isDirty
protected int cachedY
protected int cachedColor
protected int type
private static final int HSQUARE
private static final int SSQUARE
private static final int BSQUARE
private static final int HSLIDER
private static final int SSLIDER
private static final int BSLIDER
protected int width
protected int height
static final ColorModel cm
public static final int pixMask
protected volatile boolean aborted
Constructor Detail |
protected DefaultHSBChooserPanel.HSBImage(int type, int width, int height, float h, float s, float b)
Method Detail |
public void setValues(int type, float h, float s, float b)
public final void setHue(float hue)
public final void setSaturation(float saturation)
public final void setBrightness(float brightness)
public final float getHue()
public final float getSaturation()
public final float getBrightness()
protected boolean isStatic()
isStatic
in class SyntheticImage
public void nextFrame()
public void addConsumer(ImageConsumer ic)
ImageProducer
ImageConsumer
with the
ImageProducer
for access to the image data
during a later reconstruction of the Image
.
The ImageProducer
may, at its discretion,
start delivering the image data to the consumer
using the ImageConsumer
interface immediately,
or when the next available image reconstruction is triggered
by a call to the startProduction
method.
addConsumer
in interface ImageProducer
addConsumer
in class SyntheticImage
private int getRGBForLocation(int x, int y)
public void getHSBForLocation(int x, int y, float[] hsbArray)
protected void computeRow(int y, int[] row)
computeRow
in class SyntheticImage
public boolean isConsumer(ImageConsumer ic)
ImageProducer
ImageConsumer
object is currently registered with this
ImageProducer
as one of its consumers.
isConsumer
in interface ImageProducer
ic
- the specified ImageConsumer
true
if the specified
ImageConsumer
is registered with
this ImageProducer
;
false
otherwise.public void removeConsumer(ImageConsumer ic)
ImageProducer
ImageConsumer
object
from the list of consumers currently registered to
receive image data. It is not considered an error
to remove a consumer that is not currently registered.
The ImageProducer
should stop sending data
to this consumer as soon as is feasible.
removeConsumer
in interface ImageProducer
ic
- the specified ImageConsumer
public void startProduction(ImageConsumer ic)
ImageProducer
ImageConsumer
object
as a consumer and starts an immediate reconstruction of
the image data which will then be delivered to this
consumer and any other consumer which might have already
been registered with the producer. This method differs
from the addConsumer method in that a reproduction of
the image data should be triggered as soon as possible.
startProduction
in interface ImageProducer
ic
- the specified ImageConsumer
ImageProducer.addConsumer(java.awt.image.ImageConsumer)
public void nextFrame(int param)
public void requestTopDownLeftRightResend(ImageConsumer ic)
ImageProducer
ImageConsumer
,
that the ImageProducer
attempt to resend
the image data one more time in TOPDOWNLEFTRIGHT order
so that higher quality conversion algorithms which
depend on receiving pixels in order can be used to
produce a better output version of the image. The
ImageProducer
is free to
ignore this call if it cannot resend the data in that
order. If the data can be resent, the
ImageProducer
should respond by executing
the following minimum set of ImageConsumer
method calls:
ic.setHints(TOPDOWNLEFTRIGHT | < otherhints >); ic.setPixels(...); // As many times as needed ic.imageComplete();
requestTopDownLeftRightResend
in interface ImageProducer
ic
- the specified ImageConsumer
ImageConsumer.setHints(int)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |