Class GFill

java.lang.Object
com.iizix.prop.GFill
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
GFillGradient, GFillPattern, GFillSolid

public abstract class GFill extends Object implements 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 Type
    Class
    Description
    static enum 
    The fill type.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final GFill
    The default fill: solid transparent.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract GFill
    Clones this instance.
    abstract boolean
    Checks if two fill objects are equal.
    final String
    Gets the fill as a String in the form described below.
    abstract GFill.Type
    Gets the fill type.
    final String
    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 Details

    • DEFAULT

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

    • GFill

      public GFill()
  • Method Details

    • 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(Object o)
      Checks if two fill objects are equal.
      Overrides:
      equals in class Object
    • clone

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

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

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