Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.batik.ext.awt
Class ColorSpaceHintKey  view ColorSpaceHintKey download ColorSpaceHintKey.java

java.lang.Object
  extended byjava.awt.RenderingHints.Key
      extended byorg.apache.batik.ext.awt.ColorSpaceHintKey

public final class ColorSpaceHintKey
extends java.awt.RenderingHints.Key

TranscodingHint as to what the destination of the drawing is.

Version:
$Id: ColorSpaceHintKey.java,v 1.3 2004/08/18 07:13:41 vhardy Exp $

Field Summary
static java.lang.String PROPERTY_COLORSPACE
           
static java.lang.Object VALUE_COLORSPACE_AGREY
          Notice to source that we only want Greyscale data with an alpha channel.
static java.lang.Object VALUE_COLORSPACE_ALPHA
          Notice to source that we only want an alpha channel.
static java.lang.Object VALUE_COLORSPACE_ALPHA_CONVERT
          Notice to source that we only want an alpha channel.
static java.lang.Object VALUE_COLORSPACE_ARGB
          Notice to source that we prefer an Alpha RGB Image.
static java.lang.Object VALUE_COLORSPACE_GREY
          Notice to source that we only want Greyscale data (no Alpha).
static java.lang.Object VALUE_COLORSPACE_RGB
          Notice to source that we will not use Alpha Channel but we still want RGB data.
 
Fields inherited from class java.awt.RenderingHints.Key
 
Constructor Summary
(package private) ColorSpaceHintKey(int number)
          Note that this is package private.
 
Method Summary
 boolean isCompatibleValue(java.lang.Object val)
          Returns true if the specified value is compatible with this key, and false otherwise.
 
Methods inherited from class java.awt.RenderingHints.Key
equals, hashCode, intKey
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VALUE_COLORSPACE_ARGB

public static java.lang.Object VALUE_COLORSPACE_ARGB
Notice to source that we prefer an Alpha RGB Image.


VALUE_COLORSPACE_RGB

public static java.lang.Object VALUE_COLORSPACE_RGB
Notice to source that we will not use Alpha Channel but we still want RGB data.


VALUE_COLORSPACE_GREY

public static java.lang.Object VALUE_COLORSPACE_GREY
Notice to source that we only want Greyscale data (no Alpha).


VALUE_COLORSPACE_AGREY

public static java.lang.Object VALUE_COLORSPACE_AGREY
Notice to source that we only want Greyscale data with an alpha channel.


VALUE_COLORSPACE_ALPHA

public static java.lang.Object VALUE_COLORSPACE_ALPHA
Notice to source that we only want an alpha channel. The source should simply render alpha (no conversion)


VALUE_COLORSPACE_ALPHA_CONVERT

public static java.lang.Object VALUE_COLORSPACE_ALPHA_CONVERT
Notice to source that we only want an alpha channel. The source should follow the SVG spec for how to convert ARGB, RGB, Grey and AGrey to just an Alpha channel.


PROPERTY_COLORSPACE

public static final java.lang.String PROPERTY_COLORSPACE
See Also:
Constant Field Values
Constructor Detail

ColorSpaceHintKey

ColorSpaceHintKey(int number)
Note that this is package private.

Method Detail

isCompatibleValue

public boolean isCompatibleValue(java.lang.Object val)
Description copied from class: java.awt.RenderingHints.Key
Returns true if the specified value is compatible with this key, and false otherwise.