Class AbstrPolarGridFactory<Obj extends PolarGrid>

All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
PolarGridFactory

public abstract class AbstrPolarGridFactory<Obj extends PolarGrid> extends AnimationObject2DFactory<Obj>
Abstract Factory for PolarGrid objects. Polar grids can be added to an animation's frame for a variety of reasons, including their use as an aid while an animation is being developed.

Polar grids are drawn about an origin specified in GCS (Graph Coordinate Space). The origin can be specified as absolute coordinates or as fractional coordinates. Absolute coordinates give the actual location in GCS units, where as fractional coordinates are in the range [0.0, 1.0] and give the fractional distance between the lower and upper X and Y coordinates for an animation's graph. Absolute and fractional coordinates are mutually exclusive. the default is to use the fractional coordinates (0.5, 0.5), which centers a polar grid on an animation's frame (excluding any offsets). The radial spacing for concentric circles and the angle between adjacent radial lines can also be specified. When the radial spacing is zero, the radial spacing will be computed to fit in a reasonable number of circles. Other parameters that may be set provide the color of grid lines and the width of the strokes used to draw them.

This factory inherits the ability to set the visibility and stacking order (z-order) for the objects it will create. The factory parameters are the same as those provided by its subclass PolarGridFactory:

  • Constructor Details

    • AbstrPolarGridFactory

      protected AbstrPolarGridFactory(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 PolarGrid>
      Parameters:
      object - the object to initialize