com.sygem.swing.colorchooser
Class RGBSwatchData

java.lang.Object
  extended bycom.sygem.swing.colorchooser.RGBSwatchData
All Implemented Interfaces:
SwatchData

public class RGBSwatchData
extends java.lang.Object
implements SwatchData

Describes a set of RGB (Red, Green & Blue) swatches.

Title: AdvancedColorChooser
Description: A sophisticated Color Chooser dialog
Copyright: Copyright (c) 2004
Company: SyGem Software

Version:
1.0
See Also:
AdvancedColorChooser.addSwatchData(com.sygem.swing.colorchooser.SwatchData)

Constructor Summary
RGBSwatchData()
           
 
Method Summary
 java.awt.Dimension getDimension()
          Returns the number of Swatches this data set contains.
 java.lang.String[] getNames()
          Returns null, as there are no names associated with this Swatch data set.
 int[] getRawValues()
          Returns the raw RGB data for each color - as RGB triplets.
 java.lang.String getTitle()
          Returns the title of this Swatch data set.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RGBSwatchData

public RGBSwatchData()
Method Detail

getDimension

public java.awt.Dimension getDimension()
Returns the number of Swatches this data set contains.

Specified by:
getDimension in interface SwatchData
Returns:
A Dimension object

getNames

public java.lang.String[] getNames()
Returns null, as there are no names associated with this Swatch data set. The RGB values will be used as tooltips for this data set.

Specified by:
getNames in interface SwatchData
Returns:
null

getRawValues

public int[] getRawValues()
Returns the raw RGB data for each color - as RGB triplets.

Specified by:
getRawValues in interface SwatchData
Returns:
An int[] containing the raw color data

getTitle

public java.lang.String getTitle()
Returns the title of this Swatch data set.

Specified by:
getTitle in interface SwatchData
Returns:
The Swatch's title


Copyright © 2004 SyGem Software. All Rights Reserved.