org.jhotdraw.color
Class ColorTrackImageProducer
- java.lang.Object
-
- java.awt.image.MemoryImageSource
-
- org.jhotdraw.color.ColorTrackImageProducer
-
- All Implemented Interfaces:
- java.awt.image.ImageProducer
public class ColorTrackImageProducer extends java.awt.image.MemoryImageSourceColorTrackImageProducer creates the image for the track of a color slider.- See Also:
ColorSliderUI
-
-
Constructor Summary
Constructors Constructor and Description ColorTrackImageProducer(int w, int h, int trackBuffer, boolean isHorizontal)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidcomponentChanged(int index)voidgenerateColorTrack()intgetHeight()intgetWidth()voidmarkAsDirty()booleanneedsGeneration()voidregenerateColorTrack()voidsetColorComponentIndex(int index)voidsetColorSliderModel(ColorSliderModel colorizer)
-
-
-
Constructor Detail
-
ColorTrackImageProducer
public ColorTrackImageProducer(int w, int h, int trackBuffer, boolean isHorizontal)Creates a new instance.
-
-
Method Detail
-
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)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG