Class FillImpl.ConstantFill

  • All Implemented Interfaces:
    Fill
    Enclosing class:
    FillImpl

    public abstract static class FillImpl.ConstantFill
    extends Object
    implements Fill
    • Constructor Summary

      Constructors 
      Constructor Description
      ConstantFill()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void accept​(StyleVisitor visitor)  
      Object accept​(TraversingStyleVisitor visitor, Object data)
      calls the visit method of a StyleVisitor
      void setBackgroundColor​(Expression backgroundColor)  
      void setColor​(Expression color)
      This parameter gives the solid color that will be used for a Fill.
      The color value is RGB-encoded using two hexidecimal digits per primary-color component, in the order Red, Green, Blue, prefixed with the hash (#) sign.
      void setGraphicFill​(Graphic graphicFill)
      This parameter indicates that a stipple-fill repeated graphic will be used and specifies the fill graphic to use.
      void setOpacity​(Expression opacity)
      This specifies the level of translucency to use when rendering the fill.
      • Methods inherited from class Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ConstantFill

        public ConstantFill()
    • Method Detail

      • setColor

        public void setColor​(Expression color)
        Description copied from interface: Fill
        This parameter gives the solid color that will be used for a Fill.
        The color value is RGB-encoded using two hexidecimal digits per primary-color component, in the order Red, Green, Blue, prefixed with the hash (#) sign. The hexidecimal digits beetween A and F may be in either upper or lower case. For example, full red is encoded as "#ff0000" (with no quotation marks).
        Specified by:
        setColor in interface Fill
        Parameters:
        color - solid color that will be used for a Fill
      • setBackgroundColor

        public void setBackgroundColor​(Expression backgroundColor)
      • setOpacity

        public void setOpacity​(Expression opacity)
        Description copied from interface: Fill
        This specifies the level of translucency to use when rendering the fill.
        The value is encoded as a floating-point value between 0.0 and 1.0 with 0.0 representing totally transparent and 1.0 representing totally opaque, with a linear scale of translucency for intermediate values.
        For example, "0.65" would represent 65% opacity.
        Specified by:
        setOpacity in interface Fill
      • setGraphicFill

        public void setGraphicFill​(Graphic graphicFill)
        Description copied from interface: Fill
        This parameter indicates that a stipple-fill repeated graphic will be used and specifies the fill graphic to use.
        Specified by:
        setGraphicFill in interface Fill
      • accept

        public Object accept​(TraversingStyleVisitor visitor,
                             Object data)
        Description copied from interface: Fill
        calls the visit method of a StyleVisitor
        Specified by:
        accept in interface Fill
        Parameters:
        visitor - the style visitor