be.yildizgames.common.util.Registerable, ContainerChild, Element, WidgetBaseProgressBar, EmptyRectangleImage, SimpleButton, SimpleCheckBox, SimpleImage, SimpleInputBox, SimpleTextArea, SimpleTextLine, TabContainerpublic abstract class BaseContainerChild extends BaseWidget implements ContainerChild
Element.AlignmentMAX_OPACITY, virtualHeightemptyZones| Modifier | Constructor | Description |
|---|---|---|
protected |
BaseContainerChild(String name,
BaseCoordinate coordinates,
SimpleContainer container) |
Full constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
addEmptyZoneImpl(be.yildizgames.common.geometry.Rectangle zone) |
|
void |
detachFromParent() |
Remove this widget from its parent.
|
SimpleContainer |
getParent() |
|
boolean |
isContainer() |
|
ContainerChild |
setLeftFromParent(PositionRelativeLeft relative) |
Set the left position relative to the parent position.
|
ContainerChild |
setLeftFromParent(PositionRelativeLeft relative,
int diff) |
Set the left position relative to the parent position with a difference.
|
ContainerChild |
setTopFromParent(PositionRelativeTop relative) |
Set the top position relative to the parent position.
|
ContainerChild |
setTopFromParent(PositionRelativeTop relative,
int diff) |
Set the top position relative to the parent position with a difference.
|
void |
setUnaffectedByZoom() |
If the view containing this widget is zoomed, the widget will not be affected.
|
void |
updateSizeAfterZoom(float factor) |
Zoom in the container does not update this object size, to keep it coherent, it is updated in this method.
|
addToLeft, addToPosition, addToTop, delete, getBottom, getCoordinates, getHeight, getLeft, getOpacity, getRight, getTop, getWidth, hide, hideImpl, isVisible, multiplySize, resetVirtualHeight, setCoordinates, setHeight, setLeft, setLeft, setLeft, setLeft, setPosition, setPosition, setPosition, setPositionImpl, setSize, setSize, setSizeImpl, setTop, setTop, setTop, setTop, setVirtualHeight, setVisible, setWidth, show, showImpl, updateAddPositionValueaddEmptyZone, addKeyboardListener, addMouseDoubleLeftClickListener, addMouseDragListener, addMouseLeftClickListener, addMouseMoveListener, addMouseReleaseListener, addMouseWheelListener, addOnMouseOverListener, addSpecialKeyListener, align, contains, contains, deleteKeyPressed, disableEmptyZone, enableEmptyZone, enterKeyPressed, findParent, focus, forceContainsFalse, getAbsoluteLeft, getAbsolutePosition, getAbsoluteTop, highlight, highlightImpl, isFocusable, isMouseOver, keyPressed, mouseLeftClick, playAnimation, registerAnimation, removeAllClickListeners, setFocusable, setHighlightable, setMouseClickActive, setMouseOver, setStatic, stopAnimation, toStringupdateAddPositionValueaddToLeft, addToPosition, addToTop, getBottom, getCoordinates, getHeight, getLeft, getRight, getTop, getWidth, hide, isVisible, resetVirtualHeight, setCoordinates, setHeight, setLeft, setLeft, setLeft, setLeft, setPosition, setPosition, setPosition, setSize, setSize, setTop, setTop, setTop, setTop, setVirtualHeight, setVisible, setWidth, showclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddEmptyZone, addKeyboardListener, addMouseDoubleLeftClickListener, addMouseDragListener, addMouseLeftClickListener, addMouseMoveListener, addMouseReleaseListener, addMouseWheelListener, addOnMouseOverListener, addSpecialKeyListener, align, contains, contains, focus, getAbsoluteLeft, getAbsoluteTop, highlight, isFocusable, playAnimation, registerAnimation, removeAllClickListeners, stopAnimationprotected BaseContainerChild(String name, BaseCoordinate coordinates, SimpleContainer container)
name - Widget name, must be unique.coordinates - Widget size and position.container - Container holding the widget.public final SimpleContainer getParent()
getParent in interface ContainerChildpublic final void detachFromParent()
ContainerChilddetachFromParent in interface ContainerChildprotected final void addEmptyZoneImpl(be.yildizgames.common.geometry.Rectangle zone)
addEmptyZoneImpl in class BaseWidgetpublic final void setUnaffectedByZoom()
public final void updateSizeAfterZoom(float factor)
updateSizeAfterZoom in interface ContainerChildfactor - Zoom factor.public final ContainerChild setLeftFromParent(PositionRelativeLeft relative)
ContainerChildsetLeftFromParent in interface ContainerChildrelative - Position to set.public final ContainerChild setLeftFromParent(PositionRelativeLeft relative, int diff)
ContainerChildsetLeftFromParent in interface ContainerChildrelative - Position to set.diff - Difference to set.public final ContainerChild setTopFromParent(PositionRelativeTop relative)
ContainerChildsetTopFromParent in interface ContainerChildrelative - Position to set.public final ContainerChild setTopFromParent(PositionRelativeTop relative, int diff)
ContainerChildsetTopFromParent in interface ContainerChildrelative - Position to set.diff - Difference to set.public final boolean isContainer()
isContainer in class BaseWidgetCopyright © 2014–2018. All rights reserved.