Class CompColor
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----UpdatableComponentImpl
|
+----CompColor
- public class CompColor
- extends UpdatableComponentImpl
This class produces a component that represents RGB color
as a colored rectangle.
- See Also:
- UpdatableComponentImpl
-
CompColor(RGBCoord)
- Constructs colored rectangle component with argument.
-
insets()
- Overrides the default insets() method.
-
minimumSize()
- Overrides the default minimumSize() method.
-
preferredSize()
- Overrides the default preferredSize() method.
-
update()
- Self-update method.
-
update(Graphics)
- Overrides the default update(Graphics) method
in order not to clear screen to avoid flicker.
CompColor
public CompColor(RGBCoord rgbc)
- Constructs colored rectangle component with argument.
- Parameters:
- rgbc - reference to RGB coordinates.
- See Also:
- RGBCoord
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
insets
public Insets insets()
- Overrides the default insets() method.
- Returns:
- new Insets
- Overrides:
- insets in class Container
update
public void update(Graphics g)
- Overrides the default update(Graphics) method
in order not to clear screen to avoid flicker.
- Overrides:
- update in class Component