Package org.luwrain.controls
Class CenteredArea
java.lang.Object
org.luwrain.controls.CenteredArea
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
protected final ControlContext
protected int
protected int
protected String[]
protected int
protected int
-
Constructor Summary
ConstructorDescriptionCenteredArea
(ControlContext context) CenteredArea
(ControlContext context, String areaName) -
Method Summary
Modifier and TypeMethodDescriptionAction[]
int
int
int
getLeft()
getLine
(int index) int
String[]
getLines()
int
int
int
int
getTop()
boolean
onAreaQuery
(AreaQuery query) boolean
onInputEvent
(InputEvent event) boolean
onSystemEvent
(SystemEvent event) void
setAreaName
(String newName) void
void
setLocalHotPointX
(int value) void
setLocalHotPointY
(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:
getHotPointX
in interfaceArea
- Specified by:
getHotPointX
in interfaceHotPoint
-
getHotPointY
public int getHotPointY()- Specified by:
getHotPointY
in interfaceArea
- Specified by:
getHotPointY
in interfaceHotPoint
-
getLineCount
public int getLineCount()- Specified by:
getLineCount
in interfaceLines
-
getLine
-
getAreaName
- Specified by:
getAreaName
in interfaceArea
-
setAreaName
-
onInputEvent
- Specified by:
onInputEvent
in interfaceArea
-
onSystemEvent
- Specified by:
onSystemEvent
in interfaceArea
-
onAreaQuery
- Specified by:
onAreaQuery
in interfaceArea
-
getAreaActions
- Specified by:
getAreaActions
in 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()
-