org.sikuli.api.event
Class TargetEvent

java.lang.Object
  extended by org.sikuli.api.event.TargetEvent

public class TargetEvent
extends Object

Event that a target has appeared, vanished, or moved in a specific screen region

Author:
tomyeh

Constructor Summary
TargetEvent(Target target, ScreenRegion screenRegion, ScreenRegion targetRegion)
          Constructs a new TargetEvent from the specified Target and ScreenRegion, and targetRegion.
 
Method Summary
 ScreenRegion getScreenRegion()
          Returns the ScreenRegion object that represents the initial screen region where the target is being watched.
 Target getTarget()
          Returns the Target object of this TargetEvent.
 ScreenRegion getTargetRegion()
          Returns the ScreenRegion object that represents the new screen region that is currently occupied by the target.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TargetEvent

public TargetEvent(Target target,
                   ScreenRegion screenRegion,
                   ScreenRegion targetRegion)
Constructs a new TargetEvent from the specified Target and ScreenRegion, and targetRegion.

Parameters:
screenRegion - the initial screen region where the target is being watched.
target - the target representing this event.
targetRegion - the new screen region that is currently occupied by the target.
Method Detail

getScreenRegion

public ScreenRegion getScreenRegion()
Returns the ScreenRegion object that represents the initial screen region where the target is being watched.

Returns:
ScreenRegion object of this TargetEvent.

getTarget

public Target getTarget()
Returns the Target object of this TargetEvent.

Returns:
the Target object of this TargetEvent.

getTargetRegion

public ScreenRegion getTargetRegion()
Returns the ScreenRegion object that represents the new screen region that is currently occupied by the target.

Returns:
the target ScreenRegion object of this TargetEvent.


Copyright © 2014. All rights reserved.