Class GFill

  • All Implemented Interfaces:
    java.lang.Cloneable
    Direct Known Subclasses:
    GFillGradient, GFillPattern, GFillSolid

    public abstract class GFill
    extends java.lang.Object
    implements java.lang.Cloneable
    Abstract class to defines how to fill a shape. Four types of fills can be used: solid, linear gradient, radial gradient and pattern.
    Author:
    Christopher Mindus
    • Nested Class Summary

      Nested Classes 
      Modifier and TypeClassDescription
      static class GFill.Type
      The fill type.
    • Field Summary

      Fields 
      Modifier and TypeFieldDescription
      static GFillDEFAULT
      The default fill: solid transparent.
    • Constructor Summary

      Constructors 
      ConstructorDescription
      GFill() 
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and TypeMethodDescription
      abstract GFillclone()
      Clones this instance.
      abstract booleanequals​(java.lang.Object o)
      Checks if two fill objects are equal.
      java.lang.StringgetString()
      Gets the fill as a String in the form described below.
      abstract GFill.TypegetType()
      Gets the fill type.
      java.lang.StringtoString()
      Returns a string representation of this class instance and its values.
      • Methods inherited from class java.lang.Object

        finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • DEFAULT

        public static final GFill DEFAULT
        The default fill: solid transparent.
    • Constructor Detail

      • GFill

        public GFill()
    • Method Detail

      • getType

        public abstract GFill.Type getType()
        Gets the fill type.
        Returns:
        One of the types SOLID, LINEAR_GRADIENT, RADIAL_GRADIENT or PATTERN.
      • equals

        public abstract boolean equals​(java.lang.Object o)
        Checks if two fill objects are equal.
        Overrides:
        equals in class java.lang.Object
      • clone

        public abstract GFill clone()
        Clones this instance.
        Overrides:
        clone in class java.lang.Object
        Returns:
        As GFillGradient is immutable, cloning will return "this".
      • getString

        public final java.lang.String getString()
        Gets the fill as a String in the form described below.
        Returns:
        the String as described above.
      • toString

        public final java.lang.String toString()
        Returns a string representation of this class instance and its values.
        Overrides:
        toString in class java.lang.Object
        Returns:
        a string representation of this class instance.