Package gaiasky.util.scene2d
Class Separator
- java.lang.Object
-
- com.badlogic.gdx.scenes.scene2d.Actor
-
- com.badlogic.gdx.scenes.scene2d.ui.Widget
-
- gaiasky.util.scene2d.Separator
-
- All Implemented Interfaces:
com.badlogic.gdx.scenes.scene2d.utils.Layout
public class Separator extends com.badlogic.gdx.scenes.scene2d.ui.WidgetA separator widget (horizontal or vertical bar) that can be used in menus, tables or other widgets, typically added to new row with growX() (if creating horizontal separator) OR growY() (if creating vertical separator) PopupMenu and VisTable provides utilities addSeparator() methods that adds new separator.- Since:
- 0.1.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSeparator.SeparatorStyle
-
Constructor Summary
Constructors Constructor Description Separator(com.badlogic.gdx.scenes.scene2d.ui.Skin skin)New separator with default styleSeparator(com.badlogic.gdx.scenes.scene2d.ui.Skin skin, java.lang.String styleName)Separator(Separator.SeparatorStyle style)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddraw(com.badlogic.gdx.graphics.g2d.Batch batch, float parentAlpha)floatgetPrefHeight()floatgetPrefWidth()Separator.SeparatorStylegetStyle()-
Methods inherited from class com.badlogic.gdx.scenes.scene2d.ui.Widget
getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, invalidate, invalidateHierarchy, layout, needsLayout, pack, setFillParent, setLayoutEnabled, sizeChanged, validate
-
Methods inherited from class com.badlogic.gdx.scenes.scene2d.Actor
act, addAction, addCaptureListener, addListener, ancestorsVisible, 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, 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, toString
-
-
-
-
Constructor Detail
-
Separator
public Separator(com.badlogic.gdx.scenes.scene2d.ui.Skin skin)
New separator with default style
-
Separator
public Separator(com.badlogic.gdx.scenes.scene2d.ui.Skin skin, java.lang.String styleName)
-
Separator
public Separator(Separator.SeparatorStyle style)
-
-
Method Detail
-
getPrefHeight
public float getPrefHeight()
- Specified by:
getPrefHeightin interfacecom.badlogic.gdx.scenes.scene2d.utils.Layout- Overrides:
getPrefHeightin classcom.badlogic.gdx.scenes.scene2d.ui.Widget
-
getPrefWidth
public float getPrefWidth()
- Specified by:
getPrefWidthin interfacecom.badlogic.gdx.scenes.scene2d.utils.Layout- Overrides:
getPrefWidthin classcom.badlogic.gdx.scenes.scene2d.ui.Widget
-
draw
public void draw(com.badlogic.gdx.graphics.g2d.Batch batch, float parentAlpha)- Overrides:
drawin classcom.badlogic.gdx.scenes.scene2d.ui.Widget
-
getStyle
public Separator.SeparatorStyle getStyle()
-
-