JHotDraw 7.4.1

org.jhotdraw.color
Class CMYKNominalColorSystem

java.lang.Object
  extended by org.jhotdraw.color.AbstractColorSystem
      extended by org.jhotdraw.color.CMYKNominalColorSystem
All Implemented Interfaces:
ColorSystem

public class CMYKNominalColorSystem
extends AbstractColorSystem

A ColorSystem for CMYK color components (cyan, magenta, yellow, black) with nominally converted color components from/to an RGB color model.

This model may not be very useful. It assumes that the color components perfectly absorb the desired wavelenghts.

Version:
$Id: CMYKNominalColorSystem.java 527 2009-06-07 14:28:19Z rawcoder $
Author:
Werner Randelshofer

Constructor Summary
CMYKNominalColorSystem()
          Creates a new instance.
 
Method Summary
 int getComponentCount()
          Returns the number of color components used by the color system.
 float[] toComponents(int r, int g, int b, float[] component)
           
 int toRGB(float... component)
          Converts the specified color components to RGB.
 
Methods inherited from class org.jhotdraw.color.AbstractColorSystem
toComponents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CMYKNominalColorSystem

public CMYKNominalColorSystem()
Creates a new instance.

Method Detail

toComponents

public float[] toComponents(int r,
                            int g,
                            int b,
                            float[] component)
Specified by:
toComponents in class AbstractColorSystem

toRGB

public int toRGB(float... component)
Description copied from interface: ColorSystem
Converts the specified color components to RGB.

Parameters:
component - The color components.
Returns:
rgb value.

getComponentCount

public int getComponentCount()
Description copied from interface: ColorSystem
Returns the number of color components used by the color system.

Returns:
component count.

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