Package com.prineside.tdi2.ui.actors
Class LabelWithShadow
java.lang.Object
com.badlogic.gdx.scenes.scene2d.Actor
com.badlogic.gdx.scenes.scene2d.ui.Widget
com.badlogic.gdx.scenes.scene2d.ui.Label
com.prineside.tdi2.ui.actors.LabelWithShadow
- All Implemented Interfaces:
com.badlogic.gdx.scenes.scene2d.utils.Layout
public final class LabelWithShadow
extends com.badlogic.gdx.scenes.scene2d.ui.Label
-
Nested Class Summary
Nested classes/interfaces inherited from class com.badlogic.gdx.scenes.scene2d.ui.Label
com.badlogic.gdx.scenes.scene2d.ui.Label.LabelStyle
-
Field Summary
FieldsModifier and TypeFieldDescriptioncom.badlogic.gdx.graphics.Color
float
float
-
Constructor Summary
ConstructorsConstructorDescriptionLabelWithShadow
(CharSequence text, com.badlogic.gdx.scenes.scene2d.ui.Label.LabelStyle style) -
Method Summary
Modifier and TypeMethodDescriptionvoid
draw
(com.badlogic.gdx.graphics.g2d.Batch batch, float parentAlpha) If this method is overridden, the super method orWidget.validate()
should be called to ensure the widget is laid out.setShadowColor
(com.badlogic.gdx.graphics.Color color) setShadowShift
(float x, float y) Methods inherited from class com.badlogic.gdx.scenes.scene2d.ui.Label
computePrefSize, getBitmapFontCache, getFontScaleX, getFontScaleY, getGlyphLayout, getLabelAlign, getLineAlign, getPrefHeight, getPrefWidth, getStyle, getText, getWrap, invalidate, layout, setAlignment, setAlignment, setEllipsis, setEllipsis, setFontScale, setFontScale, setFontScaleX, setFontScaleY, setStyle, setText, setText, setWrap, textEquals, toString
Methods inherited from class com.badlogic.gdx.scenes.scene2d.ui.Widget
getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, invalidateHierarchy, needsLayout, pack, setFillParent, setLayoutEnabled, sizeChanged, validate
Methods inherited from class com.badlogic.gdx.scenes.scene2d.Actor
act, addAction, addCaptureListener, addListener, ancestorsVisible, ascendantsVisible, clear, clearActions, clearListeners, clipBegin, clipBegin, clipEnd, debug, drawDebug, drawDebugBounds, fire, firstAscendant, 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, hasKeyboardFocus, hasParent, hasScrollFocus, hit, isAscendantOf, isDescendantOf, isTouchable, isTouchFocusListener, isTouchFocusTarget, isVisible, localToActorCoordinates, localToAscendantCoordinates, localToParentCoordinates, localToScreenCoordinates, localToStageCoordinates, moveBy, notify, parentToLocalCoordinates, positionChanged, remove, removeAction, removeCaptureListener, removeListener, rotateBy, rotationChanged, scaleBy, scaleBy, scaleChanged, screenToLocalCoordinates, setBounds, setColor, setColor, setDebug, setHeight, setName, setOrigin, setOrigin, setOriginX, setOriginY, setParent, setPosition, setPosition, setRotation, setScale, setScale, setScaleX, setScaleY, setSize, setStage, setTouchable, setUserObject, setVisible, setWidth, setX, setX, setY, setY, setZIndex, sizeBy, sizeBy, stageToLocalCoordinates, toBack, toFront
-
Field Details
-
shadowColor
public com.badlogic.gdx.graphics.Color shadowColor -
shiftX
public float shiftX -
shiftY
public float shiftY
-
-
Constructor Details
-
LabelWithShadow
public LabelWithShadow(CharSequence text, com.badlogic.gdx.scenes.scene2d.ui.Label.LabelStyle style)
-
-
Method Details
-
setShadowColor
-
setShadowShift
-
draw
public void draw(com.badlogic.gdx.graphics.g2d.Batch batch, float parentAlpha) Description copied from class:com.badlogic.gdx.scenes.scene2d.ui.Widget
If this method is overridden, the super method orWidget.validate()
should be called to ensure the widget is laid out.- Overrides:
draw
in classcom.badlogic.gdx.scenes.scene2d.ui.Label
parentAlpha
- The parent alpha, to be multiplied with this actor's alpha, allowing the parent's alpha to affect all children.
-