net.nexttext.behaviour.dform
Class Pull

java.lang.Object
  extended by net.nexttext.behaviour.AbstractAction
      extended by net.nexttext.behaviour.dform.DForm
          extended by net.nexttext.behaviour.dform.Pull
All Implemented Interfaces:
Action, TargetingAction

public class Pull
extends DForm
implements TargetingAction

A DForm which pulls the TextObject towards a target.


Nested Class Summary
 
Nested classes/interfaces inherited from interface net.nexttext.behaviour.Action
Action.ActionResult
 
Constructor Summary
Pull(float x, float y)
          Constructor creates a Pull at x,y with a default speed and reach.
Pull(float x, float y, float z)
          Constructor creates a Pull at x,y,z with a default speed and reach.
Pull(float x, float y, float speed, float reach)
          Constructor creates a Pull at x,y.
Pull(float x, float y, float z, float speed, float reach)
          Constructor creates a Pull at x,y,z.
Pull(Locatable target)
          Constructor creates a Pull at a target with a default speed of 10 and reach of 2.
Pull(Locatable target, float speed, float reach)
          Constructor creates a Pull at a target with a certain speed and reach.
 
Method Summary
 Action.ActionResult behave(TextObjectGlyph to)
          DForms generally just make sense on TextObjectGlyphs.
 void setTarget(float x, float y)
          Set a new target for this action.
 void setTarget(float x, float y, float z)
          Set a new target for this action.
 void setTarget(Locatable target)
          Set a new target for this action.
 void setTarget(processing.core.PVector target)
          Set a new target for this action.
 
Methods inherited from class net.nexttext.behaviour.dform.DForm
behave, getControlPoints
 
Methods inherited from class net.nexttext.behaviour.AbstractAction
behave, behave, complete, getDisplayName, getRequiredProperties, makeBehaviour, properties, setDisplayName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.nexttext.behaviour.Action
behave, behave, behave, complete, getRequiredProperties
 

Constructor Detail

Pull

public Pull(Locatable target,
            float speed,
            float reach)
Constructor creates a Pull at a target with a certain speed and reach.

Parameters:
target - attraction point
speed - is the speed with which the points are pulled.
reach - will pull farther points faster with a higher value.

Pull

public Pull(Locatable target)
Constructor creates a Pull at a target with a default speed of 10 and reach of 2.

Parameters:
target - attraction point

Pull

public Pull(float x,
            float y,
            float speed,
            float reach)
Constructor creates a Pull at x,y.

Parameters:
x -
y -
speed -
reach -

Pull

public Pull(float x,
            float y)
Constructor creates a Pull at x,y with a default speed and reach.

Parameters:
x -
y -

Pull

public Pull(float x,
            float y,
            float z)
Constructor creates a Pull at x,y,z with a default speed and reach.

Parameters:
x -
y -
z -

Pull

public Pull(float x,
            float y,
            float z,
            float speed,
            float reach)
Constructor creates a Pull at x,y,z.

Parameters:
x -
y -
z -
speed -
reach -
Method Detail

behave

public Action.ActionResult behave(TextObjectGlyph to)
Description copied from class: DForm
DForms generally just make sense on TextObjectGlyphs.

Specified by:
behave in class DForm

setTarget

public void setTarget(float x,
                      float y)
Description copied from interface: TargetingAction
Set a new target for this action.

Specified by:
setTarget in interface TargetingAction

setTarget

public void setTarget(float x,
                      float y,
                      float z)
Description copied from interface: TargetingAction
Set a new target for this action.

Specified by:
setTarget in interface TargetingAction

setTarget

public void setTarget(processing.core.PVector target)
Description copied from interface: TargetingAction
Set a new target for this action.

Specified by:
setTarget in interface TargetingAction

setTarget

public void setTarget(Locatable target)
Description copied from interface: TargetingAction
Set a new target for this action.

Specified by:
setTarget in interface TargetingAction