Class ColorProfile

java.lang.Object
org.apache.fop.fo.FONode
org.apache.fop.fo.FObj
org.apache.fop.fo.pagination.ColorProfile
All Implemented Interfaces:
Cloneable, Constants

public class ColorProfile extends FObj
Class modelling the fo:color-profile object. This loads the color profile when needed and resolves a requested color.
  • Constructor Details

    • ColorProfile

      public ColorProfile(FONode parent)
      Base constructor
      Parameters:
      parent - FONode that is the parent of this object
  • Method Details

    • bind

      public void bind(PropertyList pList) throws FOPException
      Bind property values from the property list to the FO node. Must be overridden in all FObj subclasses that have properties applying to it.
      Overrides:
      bind in class FObj
      Parameters:
      pList - the PropertyList where the properties can be found.
      Throws:
      FOPException - if there is a problem binding the values
    • validateChildNode

      protected void validateChildNode(Locator loc, String nsURI, String localName) throws ValidationException
      Checks to make sure, during SAX processing of input document, that the incoming node is valid for this (parent) node (e.g., checking to see that fo:table is not an immediate child of fo:root) called from FOTreeBuilder.startElement(String, String, String, Attributes) before constructing the child FObj.
      XSL 1.0/FOP: EMPTY (no child nodes permitted)
      Overrides:
      validateChildNode in class FONode
      Parameters:
      loc - location in the FO source file
      nsURI - namespace of incoming node
      localName - name of the incoming node (without namespace prefix)
      Throws:
      ValidationException - if incoming node not valid for parent
    • getColorProfileName

      public String getColorProfileName()
      Returns:
      the "color-profile-name" property.
    • getLocalName

      public String getLocalName()
      Returns the local name (i.e. without namespace prefix) of the node
      Specified by:
      getLocalName in class FONode
      Returns:
      the local name of this node
    • getNameId

      public int getNameId()
      Returns the Constants class integer value of this node
      Overrides:
      getNameId in class FONode
      Returns:
      Constants.FO_COLOR_PROFILE
    • getSrc

      public String getSrc()
      Get src attribute
      Returns:
      value of color-profile src attribute
    • getRenderingIntent

      public int getRenderingIntent()
      Get rendering-intent attribute Returned value is one of Constants.EN_AUTO Constants.EN_PERCEPTUAL Constants.EN_RELATIVE_COLOMETRIC Constants.EN_SATURATION Constants.EN_ABSOLUTE_COLORMETRIC
      Returns:
      Rendering intent attribute