com.mtp.pounder
Class MouseClickItem

java.lang.Object
  |
  +--com.mtp.pounder.RecordingItem
        |
        +--com.mtp.pounder.ComponentItem
              |
              +--com.mtp.pounder.MouseClickItem

public class MouseClickItem
extends ComponentItem

Represents a mouse click.

Author:
Matthew Pekar

Field Summary
protected  int button
           
protected  int type
          Pressed or released.
protected  double x
          Coordinates are stored as a percentage of their component.
protected  double y
          Coordinates are stored as a percentage of their component.
 
Fields inherited from class com.mtp.pounder.ComponentItem
component, robots, windowID
 
Fields inherited from class com.mtp.pounder.RecordingItem
decimalNumberFormat, delay
 
Constructor Summary
MouseClickItem(Element e, PounderPrefs prefs, ComponentIdentifierFactory f)
           
MouseClickItem(MouseEvent e, int windowID, long delay, ComponentIdentifierFactory f)
           
 
Method Summary
protected  void addXMLAttributes(Element e, Document doc)
           
protected  Element buildXMLElement(Document doc)
           
 boolean equals(Object o)
          Should be called by all subclasses.
 void playback(WindowWatcher ww, PounderPrefs prefs)
          Playback on this Component.
 String toString()
           
 
Methods inherited from class com.mtp.pounder.ComponentItem
getAttribs, getComponent, getComponentIdentifier, getRobot, getWindowID, setComponentIdentifier, setWindowID
 
Methods inherited from class com.mtp.pounder.RecordingItem
getDelay, instantiate, setDelay, toXML
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

x

protected double x
Coordinates are stored as a percentage of their component. For example, in a 100-pixel wide Component, pixel 50 would be stored as 0.5.


y

protected double y
Coordinates are stored as a percentage of their component. For example, in a 100-pixel wide Component, pixel 50 would be stored as 0.5.


type

protected int type
Pressed or released.


button

protected int button
Constructor Detail

MouseClickItem

public MouseClickItem(Element e,
                      PounderPrefs prefs,
                      ComponentIdentifierFactory f)

MouseClickItem

public MouseClickItem(MouseEvent e,
                      int windowID,
                      long delay,
                      ComponentIdentifierFactory f)
Method Detail

buildXMLElement

protected Element buildXMLElement(Document doc)
Specified by:
buildXMLElement in class RecordingItem

addXMLAttributes

protected void addXMLAttributes(Element e,
                                Document doc)
Overrides:
addXMLAttributes in class ComponentItem

equals

public boolean equals(Object o)
Description copied from class: RecordingItem
Should be called by all subclasses.

Overrides:
equals in class ComponentItem

playback

public void playback(WindowWatcher ww,
                     PounderPrefs prefs)
              throws Exception
Description copied from class: RecordingItem
Playback on this Component.

Specified by:
playback in class RecordingItem
Exception

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2002 Matthew Pekar. All Rights Reserved.