Class GFXFillAttr


  • public class GFXFillAttr
    extends GFXAttr
    • Constructor Detail

      • GFXFillAttr

        public GFXFillAttr()
        Default constructor.

        Creates a new Fill attribute with default settings.

      • GFXFillAttr

        public GFXFillAttr​(GFXFillAttr oSource)
        Copy constructor.

        Creates a new Fill attribute with the same settings as the source attribute.

        Parameters:
        oSource - - Fill attribute to copy
      • GFXFillAttr

        public GFXFillAttr​(int nNewStyle,
                           int lNewShade,
                           GFXColour oNewColour,
                           GFXColour oNewColourBg)
        Constructor.

        Creates a new Fill attribute with the specified settings.

        Parameters:
        nNewStyle - - The style setting for this attribute
        lNewShade - - The shade setting for this attribute
        oNewColour - - The foreground colour to be used
        oNewColourBg - - The background colour to be used
    • Method Detail

      • defaultFill

        public static GFXFillAttr defaultFill()
        Get a default Fill Attribute.

        This will return a Fill Attribute with the following settings:

                 Style                     = solid
                 Shade scale       = maximum
                 Foreground colour = white
                 Background colour = white
         
        Returns:
        A Fill Attribute with default settings
      • blackFill

        public static GFXFillAttr blackFill()
        Get a black filled Fill Attribute.

        This will return a Fill Attribute with the following settings:

                 Style                     = solid
                 Shade scale       = maximum
                 Foreground colour = black
                 Background colour = black
         
        Returns:
        A Fill Attribute with Black fill settings
      • whiteFill

        public static GFXFillAttr whiteFill()
        Get a white filled Fill Attribute.

        This will return a Fill Attribute with the following settings:

                 Style                     = solid
                 Shade scale       = maximum
                 Foreground colour = white
                 Background colour = white
         
        Returns:
        A Fill Attribute with White fill settings
      • lightGrayFill

        public static GFXFillAttr lightGrayFill()
        Get a light gray filled Fill Attribute.

        This will return a Fill Attribute with the following settings:

                 Style                     = solid
                 Shade scale       = maximum
                 Foreground colour = light gray
                 Background colour = light gray
         
        Returns:
        A Fill Attribute with Light Gray fill settings
      • grayFill

        public static GFXFillAttr grayFill()
        Get a gray filled Fill Attribute.

        This will return a Fill Attribute with the following settings:

                 Style                     = solid
                 Shade scale       = maximum
                 Foreground colour = gray
                 Background colour = gray
         
        Returns:
        A Fill Attribute with Gray fill settings
      • darkGrayFill

        public static GFXFillAttr darkGrayFill()
        Get a dark gray filled Fill Attribute.

        This will return a Fill Attribute with the following settings:

                 Style                     = solid
                 Shade scale       = maximum
                 Foreground colour = dark gray
                 Background colour = dark gray
         
        Returns:
        A Fill Attribute with Dark Gray fill settings
      • noFill

        public static GFXFillAttr noFill()
        Get a Fill Attribute with no fill.

        This will return a Fill Attribute with the following settings:

                 Style                     = none
                 Shade scale       = maximum
                 Foreground colour = black
                 Background colour = black
         
        Returns:
        A Fill Attribute with no fill settings
      • copyFrom

        public void copyFrom​(GFXFillAttr oSource)
        Assigment operator.

        Replace all attribute settings with those from the source object.

        Parameters:
        oSource - - Source attribute object to copy.