Class AbstrAnimPath2DFactory<Obj extends AnimationPath2D>

All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
AnimationPath2DFactory

public abstract class AbstrAnimPath2DFactory<Obj extends AnimationPath2D> extends AnimationObject2DFactory<Obj>
Abstract factory for creating AnimationPath2D objects.

Paths are described by a sequence of control points, represented by a cpoint table with an integer key. The parameter cpoint.type has a value that is an enumeration constant whose type is SplinePathBuilder.CPointType As one increments the key, the following transition diagram shows the sequence of allowed values for this type:

UML diagram
The factory parameters this factory provides are the same as the parameters provided by its subclass AnimationPath2DFactory (the documentation for cpoint.type describes which "object" parameters are used for a given type):
See Also:
  • Constructor Details

    • AbstrAnimPath2DFactory

      protected AbstrAnimPath2DFactory(Animation2D a2d)
      Constructor.
      Parameters:
      a2d - the animation associated with this factory
  • Method Details

    • clear

      public void clear()
      Description copied from class: NamedObjectFactory
      Clear all entries and restore to default values. Note: each subclass that implements this method should call super.clear(). Any subclass that defines parameters should call this method in order to restore the parameters to their default values. When an annotation processor is used for some parameters, those parameters can be restored to their default value by calling the parm manager's setDefaults method with the factory as its argument.
      Overrides:
      clear in class AnimationObject2DFactory<Obj extends AnimationPath2D>
    • 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 AnimationPath2D>
      Parameters:
      object - the object to initialize