Package org.luwrain.controls
Class CenteredArea
java.lang.Object
org.luwrain.controls.CenteredArea
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected final ControlContextprotected intprotected intprotected String[]protected intprotected int -
Constructor Summary
ConstructorsConstructorDescriptionCenteredArea(ControlContext context) CenteredArea(ControlContext context, String areaName) -
Method Summary
Modifier and TypeMethodDescriptionAction[]intintintgetLeft()getLine(int index) intString[]getLines()intintintintgetTop()booleanonAreaQuery(AreaQuery query) booleanonInputEvent(InputEvent event) booleanonSystemEvent(SystemEvent event) voidsetAreaName(String newName) voidvoidsetLocalHotPointX(int value) voidsetLocalHotPointY(int value)
-
Field Details
-
context
-
areaName
-
screenWidth
protected int screenWidth -
screenHeight
protected int screenHeight -
lines
-
hotPointX
protected int hotPointX -
hotPointY
protected int hotPointY
-
-
Constructor Details
-
CenteredArea
-
CenteredArea
-
-
Method Details
-
getHotPointX
public int getHotPointX()- Specified by:
getHotPointXin interfaceArea- Specified by:
getHotPointXin interfaceHotPoint
-
getHotPointY
public int getHotPointY()- Specified by:
getHotPointYin interfaceArea- Specified by:
getHotPointYin interfaceHotPoint
-
getLineCount
public int getLineCount()- Specified by:
getLineCountin interfaceLines
-
getLine
-
getAreaName
- Specified by:
getAreaNamein interfaceArea
-
setAreaName
-
onInputEvent
- Specified by:
onInputEventin interfaceArea
-
onSystemEvent
- Specified by:
onSystemEventin interfaceArea
-
onAreaQuery
- Specified by:
onAreaQueryin interfaceArea
-
getAreaActions
- Specified by:
getAreaActionsin interfaceArea
-
setLines
-
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()
-