be.yildizgames.common.util.Registerable, ContainerChild, Image, Element, Widgetpublic final class SimpleImage extends BaseContainerChild implements Image
Element.AlignmentMAX_OPACITY, virtualHeightemptyZones| Constructor | Description |
|---|---|
SimpleImage(String name,
BaseCoordinate coordinates,
AbstractIconElement icon,
SimpleContainer container) |
Full constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
delete() |
Free all resources for this widget.
|
String |
getInternalParentName() |
|
Material |
getMaterial() |
|
protected void |
hideImpl() |
Hide the embedded icon element.
|
protected void |
highlightImpl(boolean over) |
Does nothing, an image cannot be highlighted.
|
void |
rotateRadian(float angle) |
Rotate the image.
|
void |
setMaterial(Material texture) |
Set the image material.
|
protected Element |
setPositionImpl(int posX,
int posY) |
Set the position in implementation.
|
protected void |
setSizeImpl(int width,
int height) |
Implementation to set the widget size.
|
protected void |
showImpl() |
Show the embedded icon element.
|
addEmptyZoneImpl, detachFromParent, getParent, isContainer, setLeftFromParent, setLeftFromParent, setTopFromParent, setTopFromParent, setUnaffectedByZoom, updateSizeAfterZoomaddToLeft, addToPosition, addToTop, getBottom, getCoordinates, getHeight, getLeft, getOpacity, getRight, getTop, getWidth, hide, isVisible, multiplySize, resetVirtualHeight, setCoordinates, setHeight, setLeft, setLeft, setLeft, setLeft, setPosition, setPosition, setPosition, setSize, setSize, setTop, setTop, setTop, setTop, setVirtualHeight, setVisible, setWidth, show, updateAddPositionValueaddEmptyZone, addKeyboardListener, addMouseDoubleLeftClickListener, addMouseDragListener, addMouseLeftClickListener, addMouseMoveListener, addMouseReleaseListener, addMouseWheelListener, addOnMouseOverListener, addSpecialKeyListener, align, contains, contains, deleteKeyPressed, disableEmptyZone, enableEmptyZone, enterKeyPressed, findParent, focus, forceContainsFalse, getAbsoluteLeft, getAbsolutePosition, getAbsoluteTop, highlight, isFocusable, isMouseOver, keyPressed, mouseLeftClick, playAnimation, registerAnimation, removeAllClickListeners, setFocusable, setHighlightable, setMouseClickActive, setMouseOver, setStatic, stopAnimation, toStringdetachFromParent, getParent, setLeftFromParent, setLeftFromParent, setTopFromParent, setTopFromParent, updateAddPositionValue, updateSizeAfterZoomaddToLeft, 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, showforceContainsFalse, getBorderSize, multiplySizeclone, 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, stopAnimationpublic SimpleImage(String name, BaseCoordinate coordinates, AbstractIconElement icon, SimpleContainer container)
name - Unique image name.coordinates - Image position and size.icon - Icon element to use for the image.container - Container holding the image.public void rotateRadian(float angle)
angle - Angle to rotate, in radianspublic Material getMaterial()
getMaterial in interface Imagepublic void setMaterial(Material texture)
setMaterial in interface Imagetexture - Material to set.public void delete()
delete in interface Imagedelete in class BaseElementpublic String getInternalParentName()
protected void highlightImpl(boolean over)
highlightImpl in class BaseWidgetover - Unused.protected void setSizeImpl(int width,
int height)
BaseElementsetSizeImpl in class BaseElementwidth - New width.height - New height.protected void showImpl()
showImpl in class BaseElementprotected void hideImpl()
hideImpl in class BaseElementprotected Element setPositionImpl(int posX, int posY)
setPositionImpl in class BaseElementposX - Icon element new X position.posY - Icon element new Y position.Copyright © 2014–2018. All rights reserved.