net.nexttext.behaviour.control
Class OnMouseInApplet

java.lang.Object
  extended by net.nexttext.behaviour.AbstractAction
      extended by net.nexttext.behaviour.control.Condition
          extended by net.nexttext.behaviour.control.OnMouseOverApplet
              extended by net.nexttext.behaviour.control.OnMouseInApplet
All Implemented Interfaces:
Action

public class OnMouseInApplet
extends OnMouseOverApplet

A Condition which is true when the mouse moves over the PApplet i.e. a single true result is returned if the mouse was off of the PApplet and moved over it.


Nested Class Summary
 
Nested classes/interfaces inherited from interface net.nexttext.behaviour.Action
Action.ActionResult
 
Constructor Summary
OnMouseInApplet(processing.core.PApplet p, Action trueAction)
          Creates an OnMouseInApplet which performs the given Action when the mouse moves over the PApplet.
 
Method Summary
 boolean condition(TextObject to)
          Checks whether or not the mouse is over the given PApplet.
 
Methods inherited from class net.nexttext.behaviour.control.Condition
behave, complete, getRequiredProperties
 
Methods inherited from class net.nexttext.behaviour.AbstractAction
behave, behave, getDisplayName, makeBehaviour, properties, setDisplayName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OnMouseInApplet

public OnMouseInApplet(processing.core.PApplet p,
                       Action trueAction)
Creates an OnMouseInApplet which performs the given Action when the mouse moves over the PApplet.

Parameters:
p - the parent PApplet
trueAction - the Action to perform when the mouse is over the PApplet
Method Detail

condition

public boolean condition(TextObject to)
Checks whether or not the mouse is over the given PApplet.

Overrides:
condition in class OnMouseOverApplet
Parameters:
to - the TextObject to consider (not used)
Returns:
the outcome of the condition