Class NCnameProperty


  • public class NCnameProperty
    extends Property
    Class for handling NC Name objects
    • Constructor Detail

      • NCnameProperty

        public NCnameProperty​(java.lang.String ncName)
        Constructor
        Parameters:
        ncName - string representing the ncName
    • Method Detail

      • getColor

        public java.awt.Color getColor​(FOUserAgent foUserAgent)
        If a system color, return the corresponding value.
        Overrides:
        getColor in class Property
        Parameters:
        foUserAgent - Reference to FOP user agent - keeps track of cached ColorMaps for ICC colors
        Returns:
        Color object corresponding to the NCName
      • getString

        public java.lang.String getString()
        Description copied from class: Property
        This method expects to be overridden by subclasses.
        Overrides:
        getString in class Property
        Returns:
        the name as a String (should be specified with quotes!)
      • getObject

        public java.lang.Object getObject()
        Description copied from class: Property
        This method expects to be overridden by subclasses
        Overrides:
        getObject in class Property
        Returns:
        the name as an Object.
      • getNCname

        public java.lang.String getNCname()
        Description copied from class: Property
        This method expects to be overridden by subclasses
        Overrides:
        getNCname in class Property
        Returns:
        ncName for this
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object