Class XYZandColor
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----XYZandColor
- class XYZandColor
- extends Panel
This class contains the set of XYZ labels and the component indicating
the current RGB color.
-
compColor
- resulting RGB color
-
labXYZ
- set of XYZ labels
-
XYZandColor(RGBCoord, XYZSet)
- Constructs the container for the XYZ labels and the resulting
color component.
-
insets()
- Overrides the default insets() method.
-
minimumSize()
- Overrides the default minimumSize() method.
-
preferredSize()
- Overrides the default preferredSize() method.
-
update()
- Updates the labels and the resulting color.
labXYZ
LabelXYZ labXYZ
- set of XYZ labels
compColor
CompColor compColor
- resulting RGB color
XYZandColor
public XYZandColor(RGBCoord rgb,
XYZSet xyz)
- Constructs the container for the XYZ labels and the resulting
color component.
- Parameters:
- rgb - RGB color coordinates.
- xyz - RGB-XYZ converter.
update
public void update()
- Updates the labels and the resulting color.
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