Class IWLayout

A class for positioning of the control elements.


Constructor 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.
 number 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.
setSize(containerSize)
           Sets the size of the layer (which should be the size of the map or the panel containing this layer).
 
Constructor Detail

IWLayout

IWLayout(container, layer)

Method Detail

addControl

void addControl(control, firstOrientation, secondOrientation, paddingX, paddingY)

getControlByName

IWControl getControlByName(name)

getControls

IWControl[] getControls()

getZIndex

number getZIndex()

redraw

void redraw()

removeControl

void removeControl(control)

setBorder

void setBorder(x, y)

setSize

setSize(containerSize)

Source-Code Copyright 2007-2016 infoware GmbH - Documentation generated on Tue Nov 29 2022 14:20:15 GMT+0100 (MEZ)