ch.randelshofer.quaqua.colorchooser
Class ColorTrackImageProducer
java.lang.Object
java.awt.image.MemoryImageSource
ch.randelshofer.quaqua.colorchooser.ColorTrackImageProducer
- All Implemented Interfaces:
- java.awt.image.ImageProducer
public class ColorTrackImageProducer
- extends java.awt.image.MemoryImageSource
ColorTrackImageProducer creates the image for the track of a
color slider.
- Version:
- $Id: ColorTrackImageProducer.java 363 2010-11-21 17:41:04Z wrandelshofer $
- Author:
- Werner Randelshofer
- See Also:
ColorSliderUI
Constructor Summary |
ColorTrackImageProducer(int w,
int h,
int trackBuffer,
boolean isHorizontal)
Creates a new instance. |
Methods inherited from class java.awt.image.MemoryImageSource |
addConsumer, isConsumer, newPixels, newPixels, newPixels, newPixels, newPixels, removeConsumer, requestTopDownLeftRightResend, setAnimated, setFullBufferUpdates, startProduction |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ColorTrackImageProducer
public ColorTrackImageProducer(int w,
int h,
int trackBuffer,
boolean isHorizontal)
- Creates a new instance.
getWidth
public int getWidth()
getHeight
public int getHeight()
markAsDirty
public void markAsDirty()
needsGeneration
public boolean needsGeneration()
regenerateColorTrack
public void regenerateColorTrack()
generateColorTrack
public void generateColorTrack()
setColorSliderModel
public void setColorSliderModel(ColorSliderModel colorizer)
setColorComponentIndex
public void setColorComponentIndex(int index)
componentChanged
public void componentChanged(int index)