SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A class for positioning of the control elements.
Author: KUNConstructor Summary | |
IWLayout(container, layer)
A class for managing the positioning of the control elements |
Method Summary | |
void
|
addControl(control, firstOrientation, secondOrientation, paddingX, paddingY)
Adds a new control to the map |
IWControl
|
getControlByName(name)
Returns a control by its name. |
IWControl[]
|
getControls()
Returns all controls which are placed on this layer. |
int
|
getZIndex()
Returns the z-Index of this layer. |
void
|
redraw()
Redraw all contols in correct positions |
void
|
removeControl(control)
Removes a control from the map and calls its beforeRemove and afterRemove methods. Overwrite the two methods if you require some special behaviour when the control is removed. |
void
|
setBorder(x, y)
Sets the the padding of the map border. |
Constructor Detail |
IWLayout(container, layer)
HTMLDivElement container
- the div element the LayoutManager works with
int layer
- the layer (z-index) the LayoutManager uses
Method Detail |
void addControl(control, firstOrientation, secondOrientation, paddingX, paddingY)
IWControl control
- control to be added
int firstOrientation
- (e.g. IWAlignment.LEFT)
int secondOrientation
- (e.g. IWAlignment.CENTER)
int paddingX
- the vertical x-padding in pixel
int paddingY
- the horizontal y-padding in pixel
void
IWControl getControlByName(name)
name
IWControl
IWControl[] getControls()
IWControl[]
int getZIndex()
int
z-Index
void redraw()
void
void removeControl(control)
control
void
void setBorder(x, y)
int x
- x-padding in pixel
int y
- y-padding in pixel
void