be.yildizgames.common.util.RegisterableButton, ButtonList, CheckBox, Container, ContainerChild, Image, InputBox, ProgressBar, TextArea, TextLine, WidgetAbstractIconElement, AbstractTextElement, BaseContainerChild, BaseElement, BaseProgressBar, BaseWidget, ComplexProgressBar, EmptyRectangleImage, RectangleProgressBar, SimpleButton, SimpleCheckBox, SimpleContainer, SimpleImage, SimpleInputBox, SimpleProgressBar, SimpleTextArea, SimpleTextLine, TabContainerpublic interface Element
extends be.yildizgames.common.util.Registerable
| Modifier and Type | Interface | Description |
|---|---|---|
static class |
Element.Alignment |
Alignment value to set the widgets positions.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
addToLeft(int value) |
|
void |
addToPosition(int xValue,
int yValue) |
|
void |
addToTop(int value) |
Move the element to the top or bottom.
|
int |
getBottom() |
|
BaseCoordinate |
getCoordinates() |
|
int |
getHeight() |
|
int |
getLeft() |
|
int |
getRight() |
|
int |
getTop() |
|
int |
getWidth() |
|
Element |
hide() |
Set the element invisible on screen.
|
boolean |
isVisible() |
|
void |
resetVirtualHeight() |
|
void |
setCoordinates(Coordinates coordinates) |
|
void |
setHeight(int height) |
Set the element height.
|
Element |
setLeft(int left) |
Set the element left position.
|
Element |
setLeft(Element other,
PositionRelativeLeft relative) |
|
Element |
setLeft(Element other,
PositionRelativeLeft relative,
int diff) |
|
Element |
setLeft(Element other,
PositionRelativeLeft left,
Relative relativeDiff) |
|
Element |
setPosition(int left,
int top) |
Set the element position.
|
Element |
setPosition(be.yildizgames.common.geometry.Point2D position) |
|
Element |
setPosition(Element other) |
|
void |
setSize(int newWidth,
int newHeight) |
|
void |
setSize(Size size) |
|
Element |
setTop(int top) |
Set the element top position.
|
Element |
setTop(Element other,
PositionRelativeTop relative) |
|
Element |
setTop(Element other,
PositionRelativeTop relative,
int diff) |
|
Element |
setTop(Element other,
PositionRelativeTop top,
Relative relativeDiff) |
|
void |
setVirtualHeight(int height) |
|
Element |
setVisible(boolean visible) |
Show or hide the element.
|
void |
setWidth(int width) |
Set the element width.
|
Element |
show() |
Set the element visible on screen.
|
Element hide()
Element show()
Element setTop(Element other, PositionRelativeTop relative, int diff)
Element setTop(Element other, PositionRelativeTop top, Relative relativeDiff)
Element setTop(Element other, PositionRelativeTop relative)
Element setLeft(Element other, PositionRelativeLeft relative)
Element setLeft(Element other, PositionRelativeLeft relative, int diff)
Element setLeft(Element other, PositionRelativeLeft left, Relative relativeDiff)
int getLeft()
Element setLeft(int left)
left - New widget left position in pixels.int getTop()
Element setTop(int top)
top - New widget top position in pixels.void addToPosition(int xValue,
int yValue)
void addToLeft(int value)
void addToTop(int value)
value - Move the element to y pixel to the bottom, negative value will move to the top.Element setPosition(int left, int top)
left - Element X position.top - Element Y position.int getWidth()
void setWidth(int width)
width - New width.int getHeight()
void setHeight(int height)
height - New height.int getBottom()
void setSize(Size size)
BaseCoordinate getCoordinates()
void setCoordinates(Coordinates coordinates)
boolean isVisible()
Element setVisible(boolean visible)
visible - true to show the element, false to hide it.Element setPosition(be.yildizgames.common.geometry.Point2D position)
void setSize(int newWidth,
int newHeight)
int getRight()
void setVirtualHeight(int height)
void resetVirtualHeight()
Copyright © 2014–2018. All rights reserved.