SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An interface which has to be implemented by all controls. Controls are displayed in front of the overlays.
Author: KUN, JANConstructor Summary | |
IWControl(map, name)
Control interface. |
Method Summary | |
IWAlignment
|
getFirstOrientation()
Returns the first orientation of this control. |
String
|
getName()
Returns the name of this control. |
IWSize
|
getPadding()
Returns the padding for this control. |
IWAlignment
|
getSecondOrientation()
Returns the second orientation of the control. |
boolean
|
isControl()
Function for IWLayoutManager to check if this interface is implemented. |
Boolean
|
isRedrawable()
Returns whether the control will be redrawn by the layout manager or not. |
void
|
setFirstOrientation(alignment)
Sets the first orientation of the control. IWAlignment.TOP , IWAlignment.RIGHT , IWAlignment.BOTTOM and
IWAlignment.LEFT .
|
void
|
setPadding(newPadding)
Sets the padding for this control. |
void
|
setRedrawable(isRedrawable)
Defines if the control will be redrawn by the layout manager. |
void
|
setSecondOrientation(alignment)
Sets the second orientation of the control. IWAlignment.TOP , IWAlignment.RIGHT , IWAlignment.BOTTOM and
IWAlignment.LEFT .
|
String
|
toString()
Returns a string representation of this control. |
Methods inherited from class IWDraggable |
allowDraggingOutsideParent(isDraggingOutsideParentAllowed) |
isDraggingOutsideParentAllowed() |
setOnMouseMoveContainer(container) |
getOnMouseMoveContainer() |
setDraggingBounds(bounds) |
getDraggingBounds() |
setDraggable(isDraggable) |
isDraggable() |
setDraggableContainer(draggableContainer) |
getDraggableContainer() |
setDragButton(button) |
getDragButton() |
Methods inherited from class IWMapElement |
isDisplayed() |
getParent() |
setParent(newParent) |
isVisible() |
setVisible(visible) |
setPrintable(printable) |
isPrintable() |
setContainerClassname(classname) |
getContainer() |
setContainer(newContainer) |
setId(id) |
getId() |
onContextMenu(event) |
onMouseUp(event) |
onMouseDown(event) |
onMouseMove(event) |
onMouseOut(event) |
onMouseOver(event) |
onClick(event) |
onDblClick(event) |
onSelect(event) |
onMouseWheel(event) |
beforeAppend() |
afterAppend() |
beforeRemove() |
afterRemove() |
destroyMapElement() |
Constructor Detail |
IWControl(map, name)
IWMap map
- the map
String name
- the name of the control element
Method Detail |
IWAlignment getFirstOrientation()
IWAlignment
String getName()
String
IWSize getPadding()
IWSize
the padding for this control
IWAlignment getSecondOrientation()
IWAlignment
boolean isControl()
boolean
true
Boolean isRedrawable()
Boolean
redrawable
void setFirstOrientation(alignment)
IWAlignment.CENTER
,
IWAlignment.TOP
, IWAlignment.RIGHT
, IWAlignment.BOTTOM
and
IWAlignment.LEFT
.
IWAlignment alignment
- the first orientation
void
void setPadding(newPadding)
IWSize newPadding
- the padding for this control
void
void setRedrawable(isRedrawable)
boolean isRedrawable
void
void setSecondOrientation(alignment)
IWAlignment.CENTER
,
IWAlignment.TOP
, IWAlignment.RIGHT
, IWAlignment.BOTTOM
and
IWAlignment.LEFT
.
IWAlignment alignment
- the secondary orientation
void
String toString()
String