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.


Variable Index

 o compColor
resulting RGB color
 o labXYZ
set of XYZ labels

Constructor Index

 o XYZandColor(RGBCoord, XYZSet)
Constructs the container for the XYZ labels and the resulting color component.

Method Index

 o insets()
Overrides the default insets() method.
 o minimumSize()
Overrides the default minimumSize() method.
 o preferredSize()
Overrides the default preferredSize() method.
 o update()
Updates the labels and the resulting color.

Variables

 o labXYZ
 LabelXYZ labXYZ
set of XYZ labels

 o compColor
 CompColor compColor
resulting RGB color

Constructors

 o 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.

Methods

 o update
 public void update()
Updates the labels and the resulting color.

 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