|
||||||||||
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. |
java.awt.color.ColorSpace |
getColorSpace()
Returns the ColorSpace used by this ColorSliderModel. |
float |
getComponent(int componentIndex)
Gets a value of an individual component. |
int |
getComponentCount()
Returns the number of components used by this ColorSliderModel. |
float[] |
getComponents()
Gets all component values. |
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 |
setColorSpace(java.awt.color.ColorSpace newValue)
Changes the ColorSpace used by this ColorSliderModel. |
void |
setComponent(int componentIndex,
float newValue)
Sets a value for an individual component. |
void |
unconfigureSlider(javax.swing.JSlider slider)
Unconfigures a JSlider. |
Method Detail |
---|
java.awt.color.ColorSpace getColorSpace()
void setColorSpace(java.awt.color.ColorSpace newValue)
newValue
- ColorSpace.int getComponentCount()
javax.swing.BoundedRangeModel getBoundedRangeModel(int componentIndex)
componentIndex
- .
int getInterpolatedRGB(int componentIndex, float componentValue)
componentIndex
- componentValue
-
void setComponent(int componentIndex, float newValue)
componentIndex
- newValue
- float getComponent(int componentIndex)
componentIndex
-
float[] getComponents()
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
- .
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |