JHotDraw 7.2

org.jhotdraw.color
Class AbstractColorSystem

java.lang.Object
  extended by org.jhotdraw.color.AbstractColorSystem
All Implemented Interfaces:
ColorSystem
Direct Known Subclasses:
CMYKICCColorSystem, CMYKNominalColorSystem, HSLRGBColorSystem, HSLRYBColorSystem, HSVRGBColorSystem, HSVRYBColorSystem, RGBColorSystem

public abstract class AbstractColorSystem
extends java.lang.Object
implements ColorSystem

Abstract super class for ColorSystem's.

Version:
1.0 May 22, 2005 Created.
Author:
Werner Randelshofer

Constructor Summary
AbstractColorSystem()
           
 
Method Summary
 float[] toComponents(int rgb, float[] components)
          Converts the specified color components to RGB.
abstract  float[] toComponents(int r, int g, int b, float[] components)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jhotdraw.color.ColorSystem
getComponentCount, toRGB
 

Constructor Detail

AbstractColorSystem

public AbstractColorSystem()
Method Detail

toComponents

public float[] toComponents(int rgb,
                            float[] components)
Description copied from interface: ColorSystem
Converts the specified color components to RGB.

Specified by:
toComponents in interface ColorSystem
Parameters:
rgb - value.
components - A component array for reuse.
Returns:
color components for the rgb value.

toComponents

public abstract float[] toComponents(int r,
                                     int g,
                                     int b,
                                     float[] components)

Copyright 1996-2009 (c) by the authors and contributors of the JHotDraw project.
Some rights reserved.