|
JHotDraw 7.2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jhotdraw.color.AbstractColorSystem
org.jhotdraw.color.CMYKICCColorSystem
public class CMYKICCColorSystem
A ColorSystem for CMYK color components (cyan, magenta, yellow, black) in a color space defined by a ICC color profile (International Color Consortium).
XXX - This does not work. I think this is because of Java bug #4760025 at http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4760025 but maybe I am doing something in the wrong way.
| Constructor Summary | |
|---|---|
CMYKICCColorSystem()
Creates a new instance. |
|
CMYKICCColorSystem(java.io.InputStream iccProfile)
Creates a new instance. |
|
| Method Summary | |
|---|---|
int |
getComponentCount()
Returns the number of color components used by the color system. |
void |
read(java.io.InputStream iccProfile)
|
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 |
|---|
public CMYKICCColorSystem()
public CMYKICCColorSystem(java.io.InputStream iccProfile)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public void read(java.io.InputStream iccProfile)
throws java.io.IOException
java.io.IOException
public float[] toComponents(int r,
int g,
int b,
float[] component)
toComponents in class AbstractColorSystempublic int toRGB(float... component)
ColorSystem
component - The color components.
public int getComponentCount()
ColorSystem
|
Copyright 1996-2009 (c) by the authors and contributors of the JHotDraw project. Some rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||