Package jexer.tackboard
Class MousePointer
- java.lang.Object
-
- jexer.tackboard.TackboardItem
-
- jexer.tackboard.Bitmap
-
- jexer.tackboard.MousePointer
-
- All Implemented Interfaces:
java.lang.Comparable<TackboardItem>,Pointer
public class MousePointer extends Bitmap implements Pointer
MousePointer is a Bitmap with a hotspot location to represent the "tip" of a mouse icon.
-
-
Field Summary
-
Fields inherited from class jexer.tackboard.TackboardItem
dirty
-
-
Constructor Summary
Constructors Constructor Description MousePointer(int x, int y, int z, java.awt.image.BufferedImage image, int hotspotX, int hotspotY)Public constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object rhs)Comparison check.intgetHotspotX()Get the hotspot X location relative to the X location of the icon.intgetHotspotY()Get the hotspot Y location relative to the Y location of the icon.inthashCode()Hashcode uses all fields in equals().java.lang.StringtoString()Make human-readable description of this item.
-
-
-
Constructor Detail
-
MousePointer
public MousePointer(int x, int y, int z, java.awt.image.BufferedImage image, int hotspotX, int hotspotY)Public constructor.- Parameters:
x- X pixel coordinatey- Y pixel coordinatez- Z coordinateimage- the imagehotspotX- the hotspot X location relative to xhotspotY- the hotspot Y location relative to y
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object rhs)
Comparison check. All fields must match to return true.
-
hashCode
public int hashCode()
Hashcode uses all fields in equals().
-
toString
public java.lang.String toString()
Make human-readable description of this item.
-
getHotspotX
public int getHotspotX()
Get the hotspot X location relative to the X location of the icon.- Specified by:
getHotspotXin interfacePointer- Returns:
- the X location
-
getHotspotY
public int getHotspotY()
Get the hotspot Y location relative to the Y location of the icon.- Specified by:
getHotspotYin interfacePointer- Returns:
- the Y location
-
-