com.sygem.swing.colorchooser
Class XWindowSwatchData

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

public class XWindowSwatchData
extends java.lang.Object
implements SwatchData

Describes a set of X-Window swatches - colors used by the X windowing system.

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
XWindowSwatchData()
           
 
Method Summary
 java.awt.Dimension getDimension()
          Returns the number of Swatches this data set contains.
 java.lang.String[] getNames()
          Returns the names associated with the raw Swatch data.
 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

XWindowSwatchData

public XWindowSwatchData()
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 the names associated with the raw Swatch data. These strings will be used as Tooltips on the Swatch data window.

Specified by:
getNames in interface SwatchData
Returns:
A String array containing the color names.

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.