Class CenteredArea

java.lang.Object
org.luwrain.controls.CenteredArea
All Implemented Interfaces:
Area, HotPoint, Lines

public class CenteredArea extends Object implements Area
  • Field Details

    • context

      protected final ControlContext context
    • areaName

      protected String areaName
    • screenWidth

      protected int screenWidth
    • screenHeight

      protected int screenHeight
    • lines

      protected String[] lines
    • hotPointX

      protected int hotPointX
    • hotPointY

      protected int hotPointY
  • Constructor Details

  • Method Details

    • getHotPointX

      public int getHotPointX()
      Specified by:
      getHotPointX in interface Area
      Specified by:
      getHotPointX in interface HotPoint
    • getHotPointY

      public int getHotPointY()
      Specified by:
      getHotPointY in interface Area
      Specified by:
      getHotPointY in interface HotPoint
    • getLineCount

      public int getLineCount()
      Specified by:
      getLineCount in interface Lines
    • getLine

      public String getLine(int index)
      Specified by:
      getLine in interface Lines
    • getAreaName

      public String getAreaName()
      Specified by:
      getAreaName in interface Area
    • setAreaName

      public void setAreaName(String newName)
    • onInputEvent

      public boolean onInputEvent(InputEvent event)
      Specified by:
      onInputEvent in interface Area
    • onSystemEvent

      public boolean onSystemEvent(SystemEvent event)
      Specified by:
      onSystemEvent in interface Area
    • onAreaQuery

      public boolean onAreaQuery(AreaQuery query)
      Specified by:
      onAreaQuery in interface Area
    • getAreaActions

      public Action[] getAreaActions()
      Specified by:
      getAreaActions in interface Area
    • setLines

      public void setLines(String[] newLines)
    • getLines

      public String[] getLines()
    • getLocalHotPointX

      public int getLocalHotPointX()
    • getLocalHotPointY

      public int getLocalHotPointY()
    • setLocalHotPointX

      public void setLocalHotPointX(int value)
    • setLocalHotPointY

      public void setLocalHotPointY(int value)
    • getMaxLineLen

      public int getMaxLineLen()
    • getLeft

      public int getLeft()
    • getTop

      public int getTop()