Package com.prineside.tdi2.ui.components
Class DraggingItemHelper
java.lang.Object
com.prineside.tdi2.ui.components.DraggingItemHelper
- All Implemented Interfaces:
Disposable
,Listener<Render>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Releases all resources of this object.void
handleEvent
(Render event) Called each time an event is being triggeredvoid
hide()
void
setIconShift
(float x, float y) void
setIconShiftInstantly
(float x, float y) void
setPosition
(float x, float y) void
setScale
(float scale) void
setScaleInstantly
(float scale) show()
-
Constructor Details
-
DraggingItemHelper
-
-
Method Details
-
show
-
getIconContainer
-
hide
public void hide() -
setPosition
public void setPosition(float x, float y) -
setScale
public void setScale(float scale) -
setScaleInstantly
public void setScaleInstantly(float scale) -
setIconShift
public void setIconShift(float x, float y) -
setIconShiftInstantly
public void setIconShiftInstantly(float x, float y) -
dispose
public void dispose()Description copied from interface:com.badlogic.gdx.utils.Disposable
Releases all resources of this object.- Specified by:
dispose
in interfaceDisposable
-
handleEvent
Description copied from interface:Listener
Called each time an event is being triggered- Specified by:
handleEvent
in interfaceListener<Render>
- Parameters:
event
- event object passed by someone. Some events can be stopped or cancelled
-