|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.nexttext.behaviour.AbstractAction net.nexttext.behaviour.dform.DForm net.nexttext.behaviour.dform.Blow
public class Blow
A DForm which pushes the TextObject outlines away from a target.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface net.nexttext.behaviour.Action |
---|
Action.ActionResult |
Constructor Summary | |
---|---|
Blow(float x,
float y)
Constructor creates a Blow at x,y with a default speed and reach. |
|
Blow(float x,
float y,
float z)
Constructor creates a Blow at x,y,z with a default speed and reach. |
|
Blow(float x,
float y,
float speed,
float reach)
Constructor creates a Blow at x,y. |
|
Blow(float x,
float y,
float z,
float speed,
float reach)
Constructor creates a Blow at x,y,z. |
|
Blow(Locatable target)
Constructor creates a Blow at a target with a default speed of 10 and reach of 2. |
|
Blow(Locatable target,
float speed,
float reach)
Constructor creates a Blow 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 |
---|
public Blow(Locatable target, float speed, float reach)
target
- repulsion pointspeed
- is the speed with which the points are pushed.reach
- will push farther points faster with a higher value.public Blow(Locatable target)
target
- attraction pointpublic Blow(float x, float y, float speed, float reach)
x
- y
- speed
- reach
- public Blow(float x, float y)
x
- y
- public Blow(float x, float y, float z)
x
- y
- z
- public Blow(float x, float y, float z, float speed, float reach)
x
- y
- z
- speed
- reach
- Method Detail |
---|
public Action.ActionResult behave(TextObjectGlyph to)
DForm
behave
in class DForm
public void setTarget(float x, float y)
TargetingAction
setTarget
in interface TargetingAction
public void setTarget(float x, float y, float z)
TargetingAction
setTarget
in interface TargetingAction
public void setTarget(processing.core.PVector target)
TargetingAction
setTarget
in interface TargetingAction
public void setTarget(Locatable target)
TargetingAction
setTarget
in interface TargetingAction
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |