com.sygem.swing.colorchooser
Interface CustomColorDataSource


public interface CustomColorDataSource

This interface specifies the methods required to implement a data source for the Custom Colors window. Custom colors can be stored using whatever mechanism you choose.

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

Version:
1.0

Method Summary
 java.awt.Color getColor(int pos)
          Retrieves the Custom Color at position pos.
 void setColor(int pos, java.awt.Color color)
          Sets the custom color at position pos.
 

Method Detail

getColor

public java.awt.Color getColor(int pos)
Retrieves the Custom Color at position pos. Positions start from 1, and go up to 16. This method should never return null, even if a color has not been stored at the requested location.

Parameters:
pos - The position of the color to be retrieved
Returns:
The custom color to the requested position

setColor

public void setColor(int pos,
                     java.awt.Color color)
Sets the custom color at position pos.

Parameters:
pos - The position to store the custom color
color - The color to be stored


Copyright © 2004 SyGem Software. All Rights Reserved.