net.nexttext.behaviour.control
Class IsInside

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

public class IsInside
extends Condition

A Condition which is true when the TextObject is wholly or partly inside the provided shape.


Nested Class Summary
 
Nested classes/interfaces inherited from interface net.nexttext.behaviour.Action
Action.ActionResult
 
Constructor Summary
IsInside(java.awt.Shape area, Action trueAction, Action falseAction)
           
 
Method Summary
 boolean condition(TextObject to)
           
 
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

IsInside

public IsInside(java.awt.Shape area,
                Action trueAction,
                Action falseAction)
Method Detail

condition

public boolean condition(TextObject to)
Specified by:
condition in class Condition
Returns:
If the object is inside or overlaps with the Shape.