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
-
rb_plane
- Red-blue dither-panel control
-
rg_plane
- Red-green dither-panel control
-
CompRGBDither(FrameRGB)
- Constructs updatable component that contains 2 dither-panel controls.
-
minimumSize()
- Overrides the default minimumSize() method.
-
preferredSize()
- Overrides the default preferredSize() method.
-
update()
- Self-update method.
-
updateState(int, int, int)
- This method implements the DitherPanelListener interface.
rg_plane
DitherPlane rg_plane
- Red-green dither-panel control
rb_plane
DitherPlane rb_plane
- Red-blue dither-panel control
CompRGBDither
public CompRGBDither(FrameRGB parent)
- Constructs updatable component that contains 2 dither-panel controls.
- Parameters:
- parent - parent frame reference
update
public void update()
- Self-update method. It is called when the component has to be updated.
- Overrides:
- update in class UpdatableComponentImpl
minimumSize
public Dimension minimumSize()
- Overrides the default minimumSize() method.
- Returns:
- new Dimension
- Overrides:
- minimumSize in class Container
preferredSize
public Dimension preferredSize()
- Overrides the default preferredSize() method.
- Returns:
- new Dimension
- Overrides:
- preferredSize in class Container
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