Class KeyHotSpot

java.lang.Object
com.iizigo.term.internal.HotSpot
com.iizigo.term.internal.KeyHotSpot

public class KeyHotSpot extends HotSpot
Handles hot spots for function keys and other special keys.
Author:
Christopher Mindus
  • Field Details Link icon

    • sendKey Link icon

      protected int sendKey
      The send key for newly created hot spots.
  • Constructor Details Link icon

    • KeyHotSpot Link icon

      public KeyHotSpot()
  • Method Details Link icon

    • initialize Link icon

      public void initialize(String setup, boolean active)
      Performs initialization from the setup data. Each hyperlink entry in the setup string (that is comma separated) contains the initial string.
      Specified by:
      initialize in class HotSpot
    • onCreate Link icon

      public void onCreate(HotSpot parent)
      Called when a new hot spot has been instantiated.
      Overrides:
      onCreate in class HotSpot
    • continueChecking Link icon

      public boolean continueChecking(char[] line, char ch, int begin, int end)
      Checks if it is OK to keep on checking.
      Specified by:
      continueChecking in class HotSpot
    • check Link icon

      public int check(char[] line, List<HotSpot> hotSpots, int begin, int end)
      Checks if a hot spot is found. If it is, the position returned should be directly after the new hot spot.
      Specified by:
      check in class HotSpot
    • fillCharBackground Link icon

      public 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.
      Overrides:
      fillCharBackground in class HotSpot
    • setTextColor Link icon

      public 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).
      Overrides:
      setTextColor in class HotSpot
    • activate Link icon

      public void activate(TerminalWindow tw)
      Called when the hot spot is activated.
      Specified by:
      activate in class HotSpot