net.nexttext.behaviour.dform
Class DFormFactory

java.lang.Object
  extended by net.nexttext.behaviour.dform.DFormFactory

public class DFormFactory
extends java.lang.Object

The factory of DForm behaviours.


Constructor Summary
DFormFactory()
           
 
Method Summary
static Behaviour chaosPull()
          Creates a ChaosPull behaviour that deforms when the left button is pressed and reform when not.
static Behaviour pull()
          Creates a Pull behaviour that deforms when the left button is pressed and reform when not.
static Behaviour reform()
          Creates a Reform behaviour.
static Behaviour scale(float mag)
          Creates a Scale behaviour that scales when the left button is pressed and reforms when not.
static Behaviour throb()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DFormFactory

public DFormFactory()
Method Detail

chaosPull

public static Behaviour chaosPull()
Creates a ChaosPull behaviour that deforms when the left button is pressed and reform when not.

Returns:
behaviour

pull

public static Behaviour pull()
Creates a Pull behaviour that deforms when the left button is pressed and reform when not.

Returns:
behaviour

reform

public static Behaviour reform()
Creates a Reform behaviour.

Returns:
behaviour

scale

public static Behaviour scale(float mag)
Creates a Scale behaviour that scales when the left button is pressed and reforms when not.

Parameters:
mag - scale factor
Returns:
behaviour

throb

public static Behaviour throb()
Returns:
behaviour

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object