be.yildizgames.common.util.Registerable, Elementpublic abstract class AbstractIconElement extends BaseElement
Element.AlignmentMAX_OPACITY, virtualHeight| Modifier | Constructor | Description |
|---|---|---|
protected |
AbstractIconElement(String name,
BaseCoordinate coordinates,
Material iconMaterial) |
Full constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
static AbstractIconElement |
getByName(String name) |
|
Material |
getMaterial() |
|
abstract String |
getParentName() |
Retrieve the parent container name in implementation.
|
protected abstract int |
getZ() |
Retrieve the object Z value in implementation.
|
protected void |
removeFromRegisterer() |
Remove this object from its registerer.
|
abstract void |
rotateRadian(float value) |
Rotate the texture.
|
void |
setMaterial(Material newMaterial) |
Set a new Material.
|
protected abstract void |
setMaterialImpl(Material newMaterial) |
Set the material in implementation.
|
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, updateAddPositionValueequals, getName, hashCode, toStringprotected AbstractIconElement(String name, BaseCoordinate coordinates, Material iconMaterial)
name - Icon name, must be unique.coordinates - Element position and size.iconMaterial - Material to use on this icon.public static AbstractIconElement getByName(String name)
public abstract void rotateRadian(float value)
value - angle to rotate, in radians.protected abstract int getZ()
protected final void removeFromRegisterer()
public final Material getMaterial()
public final void setMaterial(Material newMaterial)
newMaterial - New material to set.protected abstract void setMaterialImpl(Material newMaterial)
newMaterial - Material to set.public abstract String getParentName()
Copyright © 2014–2018. All rights reserved.