Class CompSliders

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

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

See Also:
SliderListener, UpdatableComponentImpl

Variable Index

 o slider1
slider component
 o slider2
slider component
 o slider3
slider component
 o spaceID
current color space code

Constructor Index

 o CompSliders(Game)
Constructs updatable component that contains 3 slider controls.

Method Index

 o insets()
Overrides the default insets() method.
 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 that implements UpdatableComponentIfc.

Variables

 o spaceID
 int spaceID
current color space code

 o slider1
 Slider slider1
slider component

 o slider2
 Slider slider2
slider component

 o slider3
 Slider slider3
slider component

Constructors

 o CompSliders
 public CompSliders(Game parent)
Constructs updatable component that contains 3 slider controls. The sliders are initialized according to the current color space.

Parameters:
parent - parent applet reference

Methods

 o update
 public void update()
Self-update method that implements UpdatableComponentIfc.

Overrides:
update in class UpdatableComponentImpl
See Also:
UpdatableComponentIfc
 o sliderAdjusted
 public void sliderAdjusted(int sliderID,
                            int value)
This method implements one of the SliderListener interface methods. This integer-value method is called for RGB color space only.

Parameters:
sliderID - indicates which slider control has been adjusted.
value - the new value of the slider control.
 o sliderAdjusted
 public void sliderAdjusted(int sliderID,
                            float value)
This method implements one of the SliderListener interface methods. This f.p.-value method is called for HSV, YIQ and LAB color spaces.

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
 o insets
 public Insets insets()
Overrides the default insets() method.

Returns:
new Insets
Overrides:
insets in class Container