Package com.iizigo.term.prop
Class ScreenRectangleInfo
java.lang.Object
com.iizigo.term.prop.ScreenRectangleInfo
Screen rectangle info about positions, handles, etc on screen in pixels.
- Author:
- Christopher Mindus
Field Summary
Modifier and TypeFieldDescriptionfinal Point[]
Handle positions, handles 0 and 5 are unused.The rectangles.Constructor Summary
Method Summary
Modifier and TypeMethodDescriptionint
getHandle
(int x, int y) Gets the handle where the cursor is located for a mouse event.void
saveHandle
(int handle, int x, int y) Saves a handle.
Field Details
rectangles
The rectangles.handles
Handle positions, handles 0 and 5 are unused. Unallocated handles are null.
Constructor Details
ScreenRectangleInfo
public ScreenRectangleInfo()
Method Details
saveHandle
public void saveHandle(int handle, int x, int y) Saves a handle.- Parameters:
handle
- The handle index.x
- X pixel position.y
- Y pixel position.
getHandle
public int getHandle(int x, int y) Gets the handle where the cursor is located for a mouse event.- Parameters:
x
- X pixel position.y
- Y pixel position.- Returns:
- 1 to 9 where 5 is inside but not on a handle, 0 (zero) for not inside.