Class JDFColorPool

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, IStreamWriter, org.w3c.dom.Element, org.w3c.dom.ElementTraversal, org.w3c.dom.events.EventTarget, org.w3c.dom.Node, org.w3c.dom.NodeList, org.w3c.dom.TypeInfo

    public class JDFColorPool
    extends JDFAutoColorPool
    See Also:
    Serialized Form
    • Constructor Detail

      • JDFColorPool

        public JDFColorPool​(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
                            java.lang.String qualifiedName)
                     throws org.w3c.dom.DOMException
        Constructor for JDFColorPool
        Parameters:
        myOwnerDocument -
        qualifiedName -
        Throws:
        org.w3c.dom.DOMException
      • JDFColorPool

        public JDFColorPool​(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
                            java.lang.String myNamespaceURI,
                            java.lang.String qualifiedName)
                     throws org.w3c.dom.DOMException
        Constructor for JDFColorPool
        Parameters:
        myOwnerDocument -
        myNamespaceURI -
        qualifiedName -
        Throws:
        org.w3c.dom.DOMException
      • JDFColorPool

        public JDFColorPool​(org.apache.xerces.dom.CoreDocumentImpl myOwnerDocument,
                            java.lang.String myNamespaceURI,
                            java.lang.String qualifiedName,
                            java.lang.String myLocalName)
                     throws org.w3c.dom.DOMException
        Constructor for JDFColorPool
        Parameters:
        myOwnerDocument -
        myNamespaceURI -
        qualifiedName -
        myLocalName -
        Throws:
        org.w3c.dom.DOMException
    • Method Detail

      • toString

        public java.lang.String toString()
        toString
        Overrides:
        toString in class KElement
        Returns:
        String
        See Also:
        Object.toString()
      • removeColor

        public void removeColor​(java.lang.String strColorName)
        Parameters:
        strColorName -
      • hasDuplicateColors

        @Deprecated
        public boolean hasDuplicateColors()
        Deprecated.
        use getDuplicateColors()==null
        does this ColorPool have Color elements with identical Name or RawName eattributes return false if no Color elements with identical Name or RawName tags exist
        Returns:
      • getDuplicateColors

        public VString getDuplicateColors()
        does this ColorPool have Color elements with identical Name or RawName eattributes return false if no Color elements with identical Name or RawName tags exist
        Returns:
      • getColorWithName

        public JDFColor getColorWithName​(java.lang.String colorName)
        Get the Color Element with Name=name
        Parameters:
        colorName - the name of the color
        Returns:
        JDFColor the color with the matching name, or null if no matching element exists
      • getColorWith8BitName

        public JDFColor getColorWith8BitName​(java.lang.String rawName)
        Get the Color Element with RawName=rawName or Name=rawName in the momentary encoding
        Parameters:
        rawName - the 8 bit representation of the rawName of the color
        Returns:
        JDFColor the color with the matching name, null if no matching element exists
      • getColorWithRawName

        public JDFColor getColorWithRawName​(java.lang.String rawName)
        Get the Color Element with RawName=rawName
        Parameters:
        rawName - the 8 bit representation of the rawName of the color
        Returns:
        JDFColor the color with the matching name or null if no matching element exists
      • appendColorWithName

        public JDFColor appendColorWithName​(java.lang.String colorName,
                                            java.lang.String rawName)
        Append a Color Element with RawName=rawName and Name = Name
        Parameters:
        colorName - the name of the color
        rawName - he 8 bit representation of the rawName of the color
        Returns:
        JDFColor the color with the matching name, or null f no matching element exists
      • getCreateColorWithName

        public JDFColor getCreateColorWithName​(java.lang.String colorName,
                                               java.lang.String rawName)
        Get an existing or append a Color Element with RawName=rawName and Name = Name
        Parameters:
        colorName - the name of the color
        rawName - he 8 bit representation of the rawName of the color
        Returns:
        JDFColor the color with the matching name or null JDFColor if no matching element exists