net.nexttext.behaviour.control
Class OnMouseIn

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

public class OnMouseIn
extends OnMouseOver

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


Nested Class Summary
 
Nested classes/interfaces inherited from interface net.nexttext.behaviour.Action
Action.ActionResult
 
Constructor Summary
OnMouseIn(Action trueAction)
          Creates an OnMouseIn which performs the given Action when the mouse moves over the TextObject.
 
Method Summary
 boolean condition(TextObject to)
          Checks whether or not the mouse moved over the given TextObject.
 
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

OnMouseIn

public OnMouseIn(Action trueAction)
Creates an OnMouseIn which performs the given Action when the mouse moves over the TextObject.

Parameters:
trueAction - the Action to perform when the mouse moves over the TextObject
Method Detail

condition

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

Overrides:
condition in class OnMouseOver
Parameters:
to - the TextObject to consider
Returns:
the outcome of the condition