icc
Class RestrictedICCProfile

java.lang.Object
  |
  +--icc.RestrictedICCProfile
Direct Known Subclasses:
MatrixBasedRestrictedProfile, MonochromeInputRestrictedProfile

public abstract class RestrictedICCProfile
extends java.lang.Object

This profile is constructed by parsing an ICCProfile and is the profile actually applied to the image.

See Also:
jj2000.j2k.icc.ICCProfile

Field Summary
protected static int BLUE
          Component index
 ICCXYZType[] colorant
          Colorant data
protected static java.lang.String eol
           
protected static int GRAY
          Component index
protected static int GREEN
          Component index
static int kMonochromeInput
          input type enumerator
static int kThreeCompInput
          input type enumerator
protected static int RED
          Component index
 ICCCurveType[] trc
          Curve data
 
Constructor Summary
protected RestrictedICCProfile(ICCCurveType gcurve)
          Construct the common state of all gray RestrictedICCProfiles
protected RestrictedICCProfile(ICCCurveType rcurve, ICCCurveType gcurve, ICCCurveType bcurve, ICCXYZType rcolorant, ICCXYZType gcolorant, ICCXYZType bcolorant)
          Construct the common state of all 3 component RestrictedICCProfiles
 
Method Summary
static RestrictedICCProfile createInstance(ICCCurveType gcurve)
          Factory method for creating a RestrictedICCProfile from gray curve data.
static RestrictedICCProfile createInstance(ICCCurveType rcurve, ICCCurveType gcurve, ICCCurveType bcurve, ICCXYZType rcolorant, ICCXYZType gcolorant, ICCXYZType bcolorant)
          Factory method for creating a RestrictedICCProfile from 3 component curve and colorant data.
abstract  int getType()
          Returns the appropriate input type enum.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

eol

protected static final java.lang.String eol

GRAY

protected static final int GRAY
Component index

See Also:
Constant Field Values

RED

protected static final int RED
Component index

See Also:
Constant Field Values

GREEN

protected static final int GREEN
Component index

See Also:
Constant Field Values

BLUE

protected static final int BLUE
Component index

See Also:
Constant Field Values

kMonochromeInput

public static final int kMonochromeInput
input type enumerator

See Also:
Constant Field Values

kThreeCompInput

public static final int kThreeCompInput
input type enumerator

See Also:
Constant Field Values

trc

public ICCCurveType[] trc
Curve data


colorant

public ICCXYZType[] colorant
Colorant data

Constructor Detail

RestrictedICCProfile

protected RestrictedICCProfile(ICCCurveType gcurve)
Construct the common state of all gray RestrictedICCProfiles

Parameters:
gcurve - curve data

RestrictedICCProfile

protected RestrictedICCProfile(ICCCurveType rcurve,
                               ICCCurveType gcurve,
                               ICCCurveType bcurve,
                               ICCXYZType rcolorant,
                               ICCXYZType gcolorant,
                               ICCXYZType bcolorant)
Construct the common state of all 3 component RestrictedICCProfiles

Parameters:
rcurve - red curve
gcurve - green curve
bcurve - blue curve
rcolorant - red colorant
gcolorant - green colorant
bcolorant - blue colorant
Method Detail

createInstance

public static RestrictedICCProfile createInstance(ICCCurveType rcurve,
                                                  ICCCurveType gcurve,
                                                  ICCCurveType bcurve,
                                                  ICCXYZType rcolorant,
                                                  ICCXYZType gcolorant,
                                                  ICCXYZType bcolorant)
Factory method for creating a RestrictedICCProfile from 3 component curve and colorant data.

Parameters:
rcurve - red curve
gcurve - green curve
bcurve - blue curve
rcolorant - red colorant
gcolorant - green colorant
bcolorant - blue colorant
Returns:
MatrixBasedRestrictedProfile

createInstance

public static RestrictedICCProfile createInstance(ICCCurveType gcurve)
Factory method for creating a RestrictedICCProfile from gray curve data.

Parameters:
gcurve - gray curve
Returns:
MonochromeInputRestrictedProfile

getType

public abstract int getType()
Returns the appropriate input type enum.