Class ColorProperty


  • public final class ColorProperty
    extends Property
    Class for properties that wrap Color values
    • Method Detail

      • getColor

        public java.awt.Color getColor​(FOUserAgent foUserAgent)
        Returns an AWT instance of this color
        Overrides:
        getColor in class Property
        Parameters:
        foUserAgent - FOP user agent
        Returns:
        float the AWT color represented by this ColorType instance
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class Property
      • getColorProperty

        public ColorProperty getColorProperty()
        Can't convert to any other types
        Returns:
        this.colorType
      • 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:
        this.colorType cast as an Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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