public interface ILcyApplicationPaneFactory
ILcyApplicationPane
's. An
ILcyApplicationPane
shall always be created using a factory.
Note that there is no operation to add an application pane to Lucy's environment. The creation of a pane will add it to the (visible) Lucy's environment right away. This means all swing operations (like add, remove, ...) on the content pane of an application pane need to be performed on the event dispatch thread (swing is designed to be single threaded).
ILcyApplicationPaneOwner
Modifier and Type | Field and Description |
---|---|
static int |
HORIZONTAL_PANE
Application pane type whose width is bigger than its height.
|
static int |
MAP_PANE
Application pane type for maps.
|
static int |
VERTICAL_PANE
Application pane type whose height is bigger than its width.
|
static int |
VERTICAL_PANE2
Same as VERTICAL_PANE, but if an implementation has two positions to put
vertical panes, VERTICAL_PANE and VERTICAL_PANE2 should be in
different positions.
|
Modifier and Type | Method and Description |
---|---|
ILcyApplicationPane |
createApplicationPane(ILcyApplicationPaneOwner aOwner)
Creates and returns an application pane.
|
ILcyApplicationPane |
createApplicationPane(int aLocationIndex,
ILcyApplicationPaneOwner aOwner)
Creates and returns an application pane for the given location.
|
static final int MAP_PANE
static final int HORIZONTAL_PANE
static final int VERTICAL_PANE
static final int VERTICAL_PANE2
ILcyApplicationPane createApplicationPane(ILcyApplicationPaneOwner aOwner)
aOwner
- The owner of the pane.ILcyApplicationPane createApplicationPane(int aLocationIndex, ILcyApplicationPaneOwner aOwner)
aLocationIndex
- The location of the application pane.aOwner
- The owner of the pane.