Package com.scriptel.proscript.input
Class ButtonEvent
- java.lang.Object
-
- com.scriptel.proscript.input.ButtonEvent
-
- Direct Known Subclasses:
ButtonDown,ButtonMove,ButtonPress,ButtonUp
public abstract class ButtonEvent extends java.lang.ObjectThis class represents an abstract button event.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedButtonEvent(int x, int y, int region)Protected constructor, used by child classes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetRegion()Gets the region number of the affected button.intgetX()Gets the x coordinate.intgetY()Gets the y coordinate.java.lang.StringtoString()Prints this object as a human readable string.
-
-
-
Method Detail
-
toString
public java.lang.String toString()
Prints this object as a human readable string.- Overrides:
toStringin classjava.lang.Object- Returns:
- Human readable string.
-
getX
public int getX()
Gets the x coordinate.- Returns:
- the x
-
getY
public int getY()
Gets the y coordinate.- Returns:
- the y
-
getRegion
public int getRegion()
Gets the region number of the affected button.- Returns:
- the region
-
-