Class PlacableItem



  • public class PlacableItem
    extends com.badlogic.gdx.scenes.scene2d.ui.Stack
    An item for the AbstractPlacableTable
    • Constructor Summary

      Constructors 
      Constructor Description
      PlacableItem​(com.badlogic.gdx.scenes.scene2d.utils.TextureRegionDrawable drawable, com.badlogic.gdx.scenes.scene2d.utils.ClickListener result)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      float getWidth​()  
      void setScale​(float scaleXY)  
      • Methods inherited from class com.badlogic.gdx.scenes.scene2d.Actor

        addAction, addCaptureListener, addListener, clearActions, clearListeners, clipBegin, clipBegin, clipEnd, debug, drawDebugBounds, fire, firstAscendant, getActions, getCaptureListeners, getColor, getDebug, getHeight, getListeners, getName, getOriginX, getOriginY, getParent, getRight, getRotation, getScaleX, getScaleY, getStage, getTop, getTouchable, getUserObject, getX, getX, getY, getY, getZIndex, hasActions, hasParent, isAscendantOf, isDescendantOf, isTouchable, isVisible, localToAscendantCoordinates, localToParentCoordinates, localToStageCoordinates, moveBy, notify, parentToLocalCoordinates, positionChanged, remove, removeAction, removeCaptureListener, removeListener, rotateBy, rotationChanged, scaleBy, scaleBy, screenToLocalCoordinates, setBounds, setColor, setColor, setDebug, setHeight, setName, setOrigin, setOrigin, setOriginX, setOriginY, setParent, setPosition, setPosition, setRotation, setScale, setScaleX, setScaleY, setSize, setTouchable, setUserObject, setVisible, setWidth, setX, setY, setZIndex, sizeBy, sizeBy, stageToLocalCoordinates, toBack, toFront
      • Methods inherited from class com.badlogic.gdx.scenes.scene2d.Group

        act, addActor, addActorAfter, addActorAt, addActorBefore, applyTransform, applyTransform, clear, clearChildren, computeTransform, debugAll, drawChildren, drawDebug, drawDebugChildren, findActor, getChildren, getCullingArea, hasChildren, hit, isTransform, localToDescendantCoordinates, removeActor, removeActor, resetTransform, resetTransform, setCullingArea, setDebug, setStage, setTransform, swapActor, swapActor, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from class com.badlogic.gdx.scenes.scene2d.ui.Stack

        add, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getPrefHeight, getPrefWidth, invalidate, layout
      • Methods inherited from class com.badlogic.gdx.scenes.scene2d.ui.WidgetGroup

        childrenChanged, draw, invalidateHierarchy, needsLayout, pack, setFillParent, setLayoutEnabled, sizeChanged, validate
    • Constructor Detail

      • PlacableItem

        public PlacableItem​(com.badlogic.gdx.scenes.scene2d.utils.TextureRegionDrawable drawable,
                            com.badlogic.gdx.scenes.scene2d.utils.ClickListener result)
        Parameters:
        drawable -
        result - result of a click on it
    • Method Detail

      • setScale

        public void setScale​(float scaleXY)
        Overrides:
        setScale in class com.badlogic.gdx.scenes.scene2d.Actor
      • getWidth

        public float getWidth​()
        Overrides:
        getWidth in class com.badlogic.gdx.scenes.scene2d.Actor