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 SummaryFieldsModifier and TypeFieldDescription- final Point[]Handle positions, handles 0 and 5 are unused.The rectangles.
- Constructor SummaryConstructors
- Method SummaryModifier and TypeMethodDescription- int- 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- rectanglesThe rectangles.
- handlesHandle positions, handles 0 and 5 are unused. Unallocated handles are null.
 
- Constructor Details- ScreenRectangleInfopublic ScreenRectangleInfo()
 
- Method Details- saveHandlepublic void saveHandle- (int handle, int x, int y) Saves a handle.- Parameters:
- handle- The handle index.
- x- X pixel position.
- y- Y pixel position.
 
- getHandlepublic 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.