public abstract class PColorSpace extends Dictionary
entries, FORM_TYPE_KEY, inited, isDeleted, isNew, LENGTH_KEY, library, SUBTYPE_KEY, TYPE_KEY| Modifier and Type | Method and Description |
|---|---|
java.awt.Color |
getColor(float[] components)
Gets the colour in RGB represented by the array of colour components
|
abstract java.awt.Color |
getColor(float[] components,
boolean fillAndStroke) |
static PColorSpace |
getColorSpace(Library library,
float n)
Gets the color space for the given n value.
|
static PColorSpace |
getColorSpace(Library library,
java.lang.Object o) |
java.lang.String |
getDescription() |
abstract int |
getNumComponents() |
void |
normaliseComponentsToFloats(int[] in,
float[] out,
float maxval) |
static float[] |
reverse(float[] f) |
static void |
reverseInPlace(float[] f) |
static void |
reverseInPlace(int[] f) |
getEntries, getFloat, getInt, getLibrary, getNumber, getObject, getPObjectReference, init, isDeleted, isNew, setDeleted, setNew, setPObjectReference, toStringpublic abstract int getNumComponents()
public java.lang.String getDescription()
public static PColorSpace getColorSpace(Library library, java.lang.Object o)
library - o - public static PColorSpace getColorSpace(Library library, float n)
library - hash of all library objectsn - number of colours in colour spacepublic java.awt.Color getColor(float[] components)
components - array of component colour datapublic abstract java.awt.Color getColor(float[] components,
boolean fillAndStroke)
public void normaliseComponentsToFloats(int[] in,
float[] out,
float maxval)
public static float[] reverse(float[] f)
f - public static void reverseInPlace(float[] f)
public static void reverseInPlace(int[] f)