public class LabelledElement
extends com.badlogic.gdx.scenes.scene2d.ui.Table
Constructor and Description |
---|
LabelledElement(java.lang.String labelText,
TTFont labelFont,
com.badlogic.gdx.graphics.Color labelColor,
com.badlogic.gdx.scenes.scene2d.Actor actor,
float labelSpacing,
float actorSpacing)
Constructor for the class, which pairs an actor to a complementary label around a spatial framework that can
be rendered to the screen directly as an independent actor itself
Specifically creates a table, a new label of the provided parameters and a single table row containing
the aforementioned label in one cell and a specified actor in the other
Overloaded constructor that automatically sets the complementary label to the left of the paired actor
|
LabelledElement(java.lang.String labelText,
TTFont labelFont,
com.badlogic.gdx.graphics.Color labelColor,
boolean labelRight,
com.badlogic.gdx.scenes.scene2d.Actor actor,
float labelSpacing,
float actorSpacing)
Constructor for the class, which pairs an actor to a complementary label around a spatial framework that can
be rendered to the screen directly as an independent actor itself
Specifically creates a table, a new label of the provided parameters and a single table row containing
the aforementioned label in one cell and a specified actor in the other
|
add, add, add, add, add, add, add, align, background, background, bottom, center, clearChildren, columnDefaults, debug, debug, debugActor, debugAll, debugCell, debugTable, defaults, draw, drawBackground, drawDebug, drawDebugBounds, getAlign, getBackground, getCell, getCells, getClip, getColumns, getColumnWidth, getMinHeight, getMinWidth, getPadBottom, getPadBottomValue, getPadLeft, getPadLeftValue, getPadRight, getPadRightValue, getPadTop, getPadTopValue, getPadX, getPadY, getPrefHeight, getPrefWidth, getRow, getRowHeight, getRows, getSkin, getTableDebug, hit, invalidate, layout, left, pad, pad, pad, pad, padBottom, padBottom, padLeft, padLeft, padRight, padRight, padTop, padTop, removeActor, removeActor, reset, right, row, setBackground, setBackground, setClip, setDebug, setRound, setSkin, stack, top
childrenChanged, getMaxHeight, getMaxWidth, invalidateHierarchy, needsLayout, pack, setFillParent, setLayoutEnabled, sizeChanged, validate
act, addActor, addActorAfter, addActorAt, addActorBefore, applyTransform, applyTransform, clear, computeTransform, drawChildren, drawDebugChildren, findActor, getChildren, getCullingArea, hasChildren, isTransform, localToDescendantCoordinates, resetTransform, resetTransform, setCullingArea, setDebug, setStage, setTransform, swapActor, swapActor, toString
addAction, addCaptureListener, addListener, clearActions, clearListeners, clipBegin, clipBegin, clipEnd, fire, getActions, getCaptureListeners, getColor, getDebug, getHeight, getListeners, getName, getOriginX, getOriginY, getParent, getRight, getRotation, getScaleX, getScaleY, getStage, getTop, getTouchable, getUserObject, getWidth, 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, setHeight, setName, setOrigin, setOrigin, setOriginX, setOriginY, setParent, setPosition, setPosition, setRotation, setScale, setScale, setScaleX, setScaleY, setSize, setTouchable, setUserObject, setVisible, setWidth, setX, setY, setZIndex, sizeBy, sizeBy, stageToLocalCoordinates, toBack, toFront
public LabelledElement(java.lang.String labelText, TTFont labelFont, com.badlogic.gdx.graphics.Color labelColor, boolean labelRight, com.badlogic.gdx.scenes.scene2d.Actor actor, float labelSpacing, float actorSpacing)
labelText
- The text visualised by the complementary labellabelFont
- The complementary label's fontlabelColor
- The complementary label's colourlabelRight
- When this is true, the label will be set to the right of the element that this class pairs
with itactor
- The actor to be paired with the complementary label in the object's spatial frameworklabelSpacing
- The total width taken up by the object's labelactorSpacing
- The total width taken up by the object's actorpublic LabelledElement(java.lang.String labelText, TTFont labelFont, com.badlogic.gdx.graphics.Color labelColor, com.badlogic.gdx.scenes.scene2d.Actor actor, float labelSpacing, float actorSpacing)
labelText
- The text visualised by the complementary labellabelFont
- The complementary label's fontlabelColor
- The complementary label's colouractor
- The actor to be paired with the complementary label in the object's spatial frameworklabelSpacing
- The total width taken up by the object's labelactorSpacing
- The total width taken up by the object's actor