org.ujac.print
Interface ColorRegistry

All Known Implementing Classes:
DocumentHandler

public interface ColorRegistry

Name: ColorRegistry
Description: An interface for color registries.

Author:
lauerc

Method Summary
 Color getColor(String colorName)
          Gets a color from the color registry.
 void registerColor(String colorName, Color color)
          Registers the given color for the also given name.
 

Method Detail

registerColor

void registerColor(String colorName,
                   Color color)
Registers the given color for the also given name.

Parameters:
colorName - The color name.
color - The color to register.

getColor

Color getColor(String colorName)
Gets a color from the color registry.

Parameters:
colorName - The color name.
Returns:
The color from the color registry or null.


Copyright © 2003-2004 UJAC.org. All Rights Reserved.