Class NamedColorProfile
java.lang.Object
org.apache.xmlgraphics.java2d.color.profile.NamedColorProfile
Simplified in-memory representation of an ICC named color profile.
-
Constructor Summary
ConstructorsConstructorDescriptionNamedColorProfile
(String profileName, String copyright, NamedColorSpace[] namedColors, RenderingIntent intent) Creates a new named color profile. -
Method Summary
Modifier and TypeMethodDescriptionReturns the profile copyright.getNamedColor
(String name) Returns a named color.Returns the array of named colors.Returns the profile name.Returns the color profile's rendering intent.toString()
-
Constructor Details
-
NamedColorProfile
public NamedColorProfile(String profileName, String copyright, NamedColorSpace[] namedColors, RenderingIntent intent) Creates a new named color profile.- Parameters:
profileName
- the profile namecopyright
- the copyrightnamedColors
- the array of named colorsintent
- the rendering intent
-
-
Method Details
-
getRenderingIntent
Returns the color profile's rendering intent.- Returns:
- the rendering intent
(See
ICC_Profile
.ic*)
-
getNamedColors
Returns the array of named colors.- Returns:
- the array of named colors
-
getNamedColor
Returns a named color.- Parameters:
name
- the color name- Returns:
- the named color (or null if it is not available)
-
getProfileName
Returns the profile name.- Returns:
- the profile name
-
getCopyright
Returns the profile copyright.- Returns:
- the profile copyright
-
toString
-