Class CompRGBDither

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

class CompRGBDither
extends UpdatableComponentImpl
implements DitherPanelListener
This class produces an updatable component that contains 2 dither-panel controls.

See Also:
UpdatableComponentImpl

Variable Index

 o rb_plane
Red-blue dither-panel control
 o rg_plane
Red-green dither-panel control

Constructor Index

 o CompRGBDither(FrameRGB)
Constructs updatable component that contains 2 dither-panel controls.

Method Index

 o minimumSize()
Overrides the default minimumSize() method.
 o preferredSize()
Overrides the default preferredSize() method.
 o update()
Self-update method.
 o updateState(int, int, int)
This method implements the DitherPanelListener interface.

Variables

 o rg_plane
 DitherPlane rg_plane
Red-green dither-panel control

 o rb_plane
 DitherPlane rb_plane
Red-blue dither-panel control

Constructors

 o CompRGBDither
 public CompRGBDither(FrameRGB parent)
Constructs updatable component that contains 2 dither-panel 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 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 updateState
 public void updateState(int ditherID,
                         int x,
                         int y)
This method implements the DitherPanelListener interface.

Parameters:
ditherID - index of the dither-panel control that has received user input.
x - the x-coordinate of the event
y - the y-coordinate of the event