Class CompHSVSliders

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----UpdatableComponentImpl
                                   |
                                   +----CompHSVSliders

class CompHSVSliders
extends UpdatableComponentImpl
implements SliderListener
This class produces an updatable component that contains a set of 3 HSV sliders.

See Also:
SliderListener, UpdatableComponentImpl

Variable Index

 o sliderH
Hue slider control.
 o sliderS
Saturation slider control.
 o sliderV
Brightness slider control.

Constructor Index

 o CompHSVSliders(FrameHSV)
Constructs updatable component that contains 3 HSV slider controls.

Method Index

 o minimumSize()
Overrides the default minimumSize() method.
 o preferredSize()
Overrides the default preferredSize() method.
 o sliderAdjusted(int, float)
This method implements one of the SliderListener interface methods.
 o sliderAdjusted(int, int)
This method implements one of the SliderListener interface methods.
 o update()
Self-update method.

Variables

 o sliderH
 Slider sliderH
Hue slider control.

 o sliderS
 Slider sliderS
Saturation slider control.

 o sliderV
 Slider sliderV
Brightness slider control.

Constructors

 o CompHSVSliders
 public CompHSVSliders(FrameHSV parent)
Constructs updatable component that contains 3 HSV slider controls.

Parameters:
parent - parent frame reference

Methods

 o update
 public void update()
Self-update method. It is called when the component has to be updated.

Overrides:
update in class UpdatableComponentImpl
 o sliderAdjusted
 public void sliderAdjusted(int sliderID,
                            float value)
This method implements one of the SliderListener interface methods.

Parameters:
sliderID - indicates which slider control has been adjusted.
value - the new value of the slider control.
 o sliderAdjusted
 public void sliderAdjusted(int sliderID,
                            int value)
This method implements one of the SliderListener interface methods.

Parameters:
sliderID - indicates which slider control has been adjusted.
value - the new value of the slider control.
 o minimumSize
 public Dimension minimumSize()
Overrides the default minimumSize() method.

Returns:
new Dimension
Overrides:
minimumSize in class Container
 o preferredSize
 public Dimension preferredSize()
Overrides the default preferredSize() method.

Returns:
new Dimension
Overrides:
preferredSize in class Container