edu.neu.ccs.gui
Class Mutator.Strategy

java.lang.Object
  |
  +--edu.neu.ccs.gui.Mutator.Strategy
Enclosing class:
Mutator

public abstract static class Mutator.Strategy
extends Object

Class Strategy encapsulates an algorithm that will produce a mutator AffineTransform given the center of an associated object.


Constructor Summary
Mutator.Strategy()
           
 
Method Summary
abstract  AffineTransform mutator(double x, double y)
          Returns a non-null mutator AffineTransform given the center (x, y) of an associated object.
 AffineTransform mutator(Point2D center)
          Returns a non-null mutator AffineTransform given the center of an associated object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Mutator.Strategy

public Mutator.Strategy()
Method Detail

mutator

public final AffineTransform mutator(Point2D center)

Returns a non-null mutator AffineTransform given the center of an associated object.

If the given center is null then the mutator returned will be the identity transform.

Parameters:
center - the center for the mutator operation
Returns:
a mutator transform

mutator

public abstract AffineTransform mutator(double x,
                                        double y)

Returns a non-null mutator AffineTransform given the center (x, y) of an associated object.

Parameters:
x - the x-coordinate of the center for the mutator operation
y - the y-coordinate of the center for the mutator operation
Returns:
a mutator transform