Class AbstrCartGrid2DFactory<Obj extends CartesianGrid2D>

All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
CartesianGrid2DFactory

public abstract class AbstrCartGrid2DFactory<Obj extends CartesianGrid2D> extends AnimationObject2DFactory<Obj>
Abstract Factory for CartesianGrid2D objects.

In addition to controlling the stacking order (z-order) and visibility, this factory will configure a grid's parameters: the grid spacing, The factory parameters this factory provides are the same as the parameters provided by its subclass CartesianGrid2DFactory:

  • Constructor Details

    • AbstrCartGrid2DFactory

      protected AbstrCartGrid2DFactory(Animation2D a2d)
      Constructor.
      Parameters:
      a2d - the animation
  • Method Details

    • initObject

      protected void initObject(Obj object)
      Description copied from class: NamedObjectFactory
      Initialize an object. This method will call the methods for the object necessary to initialize it based on how the factory was configured, and is called by createObject() and createObjects unless these methods are overridden. The default method does nothing. Subclasses that override this method to provide subclass-specific initializations must start with the statement "super.initObject(object);".
      Overrides:
      initObject in class AnimationObject2DFactory<Obj extends CartesianGrid2D>
      Parameters:
      object - the object to initialize