Package com.iizix.term
Class HostPopupWindow
java.lang.Object
com.iizix.term.HostPopupWindow
This class identifies pop-up windows on a host screen. It also contains a set of methods to retrieve these pop-up windows.
- Author:
- Christopher Mindus
- Field SummaryFieldsModifier and TypeFieldDescription- static final intMinimum height of a pop-up window (=3).- static final intMinimum width of a pop-up window (=4).
- Constructor SummaryConstructors
- Method SummaryModifier and TypeMethodDescription- void- analyze()This method analyzes the current host screen for pop-up windows.- void- analyze- (int minCX, int minCY) This method analyzes the current host screen for pop-up windows.- voidDeletes all current pop-up windows.- int- getCount()Gets the count of pop-up windows.Gets the current pop-up window rectangle or null if no current rectangle exist.- intGets the current index of the pop-up window.- intGets the current offset of the pop-up window in X.- intGets the current offset of the pop-up window in X.- getPopupWindow- (int index) Gets the pop-up window at an index.- Rect[]Gets the pop-up windows.- booleanChecks if there is a current pop-up window defined.- booleanChecks if there are any pop-up windows defined.- void- setCurrent- (int index) Sets a pop-up window as the current one.
- Field Details- MINIMUM_WIDTHpublic static final int MINIMUM_WIDTHMinimum width of a pop-up window (=4).- See Also:
 
- MINIMUM_HEIGHTpublic static final int MINIMUM_HEIGHTMinimum height of a pop-up window (=3).- See Also:
 
 
- Constructor Details- HostPopupWindowCreates the host pop-up window analyzer.
 
- Method Details- getCountpublic int getCount()Gets the count of pop-up windows.
- getCurrentXOffsetpublic int getCurrentXOffset()Gets the current offset of the pop-up window in X.
- getCurrentYOffsetpublic int getCurrentYOffset()Gets the current offset of the pop-up window in X.
- getCurrentGets the current pop-up window rectangle or null if no current rectangle exist.
- getCurrentIndexpublic int getCurrentIndex()Gets the current index of the pop-up window.- Returns:
- The index, or -1 for none.
 
- setCurrentpublic void setCurrent- (int index) Sets a pop-up window as the current one. -1 indicates no current pop-up window.
- getPopupWindowsGets the pop-up windows.- Returns:
- An array of rectangles.
 
- getPopupWindowGets the pop-up window at an index.- Returns:
- null if index is out of range.
 
- hasPopupWindowspublic boolean hasPopupWindows()Checks if there are any pop-up windows defined.
- hasCurrentPopupWindowpublic boolean hasCurrentPopupWindow()Checks if there is a current pop-up window defined.
- analyzepublic void analyze()This method analyzes the current host screen for pop-up windows. This will use a default minimum width of 4 and a height of 4.
- analyzepublic void analyze- (int minCX, int minCY) This method analyzes the current host screen for pop-up windows.
- deleteAllPopupWindowspublic void deleteAllPopupWindows()Deletes all current pop-up windows.