|
JHotDraw 7.3.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ColorSliderModel
ColorSliderModel.
Colors are represented as arrays of color components represented as BoundedRangeModel's. Each BoundedRangeModel can be visualized using a JSlider having a ColorSliderUI.
Method Summary | |
---|---|
void |
addChangeListener(javax.swing.event.ChangeListener l)
|
void |
configureSlider(int componentIndex,
javax.swing.JSlider slider)
Configures a JSlider. |
javax.swing.BoundedRangeModel |
getBoundedRangeModel(int componentIndex)
Returns the BoundedRangeModel used for the specified component index. |
java.awt.Color |
getColor()
Returns the color value of the model. |
ColorSystem |
getColorSystem()
Returns the ColorSystem used by this ColorSliderModel. |
int |
getComponentCount()
Returns the number of components used by this ColorSliderModel. |
float |
getComponentValue(int componentIndex)
Gets a value of an individual component. |
CompositeColor |
getCompositeColor()
Returns a CompositeColor representing the current value of the ColorSliderModel. |
int |
getInterpolatedRGB(int componentIndex,
float componentValue)
Returns an RGB value based on the value of the specified component index and value, based on the values of all other components of the model. |
void |
removeChangeListener(javax.swing.event.ChangeListener l)
|
void |
setColor(java.awt.Color newValue)
Sets the color value of the model. |
void |
setColorSystem(ColorSystem newValue)
Changes the ColorSystem used by this ColorSliderModel. |
void |
setComponentValue(int componentIndex,
float newValue)
Sets a value for an individual component. |
void |
setCompositeColor(CompositeColor newValue)
Sets the composite color value of the model. |
void |
unconfigureSlider(javax.swing.JSlider slider)
Unconfigures a JSlider. |
Method Detail |
---|
ColorSystem getColorSystem()
void setColorSystem(ColorSystem newValue)
newValue
- ColorSystem.int getComponentCount()
javax.swing.BoundedRangeModel getBoundedRangeModel(int componentIndex)
componentIndex
- .
CompositeColor getCompositeColor()
void setCompositeColor(CompositeColor newValue)
newValue
- .int getInterpolatedRGB(int componentIndex, float componentValue)
componentIndex
- componentValue
-
void setComponentValue(int componentIndex, float newValue)
componentIndex
- newValue
- float getComponentValue(int componentIndex)
componentIndex
-
void addChangeListener(javax.swing.event.ChangeListener l)
void removeChangeListener(javax.swing.event.ChangeListener l)
void configureSlider(int componentIndex, javax.swing.JSlider slider)
void unconfigureSlider(javax.swing.JSlider slider)
java.awt.Color getColor()
void setColor(java.awt.Color newValue)
newValue
- .
|
Copyright 1996-2009 (c) by the authors and contributors of the JHotDraw project. Some rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |