Package com.iizigo.term.internal
Class KeyHotSpot
java.lang.Object
com.iizigo.term.internal.HotSpot
com.iizigo.term.internal.KeyHotSpot
Handles hot spots for function keys and other special keys.
- Author:
- Christopher Mindus
- Field SummaryFields
- Constructor SummaryConstructors
- Method SummaryModifier and TypeMethodDescription- voidCalled when the hot spot is activated.- intChecks if a hot spot is found.- boolean- continueChecking- (char[] line, char ch, int begin, int end) Checks if it is OK to keep on checking.- void- fillCharBackground- (Graphics g, int xPos, int yPos, int x, int y, int cx, int cy) Gets the background for drawing on the screen of the hot spot.- void- initialize- (String setup, boolean active) Performs initialization from the setup data.- voidCalled when a new hot spot has been instantiated.- void- setTextColor- (Graphics g, int xPos, int yPos, int x, int y, int cx, int cy) Sets the color to use for the text (character) using g.setColor(nnn).
- Field Details- sendKeyprotected int sendKeyThe send key for newly created hot spots.
 
- Constructor Details- KeyHotSpotpublic KeyHotSpot()
 
- Method Details- initializePerforms initialization from the setup data. Each hyperlink entry in the setup string (that is comma separated) contains the initial string.- Specified by:
- initializein class- HotSpot
 
- onCreateCalled when a new hot spot has been instantiated.
- continueCheckingpublic boolean continueChecking- (char[] line, char ch, int begin, int end) Checks if it is OK to keep on checking.- Specified by:
- continueCheckingin class- HotSpot
 
- checkChecks if a hot spot is found. If it is, the position returned should be directly after the new hot spot.
- fillCharBackgroundGets the background for drawing on the screen of the hot spot.- Overrides:
- fillCharBackgroundin class- HotSpot
 
- setTextColorSets the color to use for the text (character) using g.setColor(nnn).- Overrides:
- setTextColorin class- HotSpot
 
- activateCalled when the hot spot is activated.