Package arc.fx.util
Class FxWidgetGroup
java.lang.Object
arc.scene.Element
arc.scene.Group
arc.scene.ui.layout.WidgetGroup
arc.fx.util.FxWidgetGroup
- All Implemented Interfaces:
Cullable
-
Field Summary
Fields inherited from class arc.scene.Group
children, cullingArea, transform
Fields inherited from class arc.scene.Element
color, cullable, fillParent, height, name, originX, originY, parent, parentAlpha, rotation, scaleX, scaleY, touchable, touchablility, translation, userObject, visibility, visible, width, x, y
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
draw()
If this method is overridden, the super method orWidgetGroup.validate()
should be called to ensure the widget group is laid out.protected void
boolean
void
setCullingArea
(Rect cullingArea) Deprecated.void
setMatchWidgetSize
(boolean matchWidgetSize) protected void
Called by the framework when this actor or any parent is added to a group that is in the stage.void
setTransform
(boolean transform) Deprecated.protected void
Called when the actor's size has been changed.Methods inherited from class arc.scene.ui.layout.WidgetGroup
childrenChanged, getMinHeight, getMinWidth, getPrefHeight, getPrefWidth, invalidate, invalidateHierarchy, layout, needsLayout, pack, setFillParent, setLayoutEnabled, validate
Methods inherited from class arc.scene.Group
act, addChild, addChildAfter, addChildAt, addChildBefore, applyTransform, clear, clearChildren, computeTransform, fill, fill, fill, find, find, findVisible, forEach, getChildren, getCullingArea, hasChildren, hit, isTransform, localToDescendantCoordinates, removeChild, removeChild, resetTransform, swapActor, swapActor, toString
Methods inherited from class arc.scene.Element
actions, addAction, addCaptureListener, addListener, change, changed, clearActions, clearListeners, clicked, clicked, clicked, clicked, clipBegin, clipBegin, clipEnd, dragged, exited, fire, fireClick, getActions, getCaptureListeners, getHeight, getListeners, getMaxHeight, getMaxWidth, getRight, getRotation, getScene, getTop, getWidth, getX, getY, getZIndex, hasActions, hasKeyboard, hasMouse, hasParent, hasScroll, hovered, isAscendantOf, isDescendantOf, isDescendantOf, isTouchable, keepInStage, keyDown, keyDown, localToAscendantCoordinates, localToParentCoordinates, localToStageCoordinates, moveBy, notify, parentToLocalCoordinates, released, remove, removeAction, removeCaptureListener, removeListener, requestKeyboard, requestScroll, rotateBy, rotationChanged, scaleBy, scaleBy, screenToLocalCoordinates, scrolled, setBounds, setColor, setColor, setHeight, setOrigin, setOrigin, setPosition, setPosition, setRotation, setRotationOrigin, setScale, setScale, setSize, setSize, setTranslation, setWidth, setZIndex, sizeBy, sizeBy, stageToLocalCoordinates, tapped, toBack, toFront, touchable, update, updateVisibility, visible
-
Constructor Details
-
FxWidgetGroup
public FxWidgetGroup()
-
-
Method Details
-
getFxProcessor
-
isMatchWidgetSize
public boolean isMatchWidgetSize() -
setMatchWidgetSize
public void setMatchWidgetSize(boolean matchWidgetSize) - Parameters:
matchWidgetSize
- if true, the internalFxProcessor
will be resized to matchFxWidgetGroup
's size (stage units and not screen pixels).
-
setScene
Description copied from class:Element
Called by the framework when this actor or any parent is added to a group that is in the stage. -
sizeChanged
protected void sizeChanged()Description copied from class:Element
Called when the actor's size has been changed.- Overrides:
sizeChanged
in classWidgetGroup
-
draw
public void draw()Description copied from class:WidgetGroup
If this method is overridden, the super method orWidgetGroup.validate()
should be called to ensure the widget group is laid out.- Overrides:
draw
in classWidgetGroup
-
drawChildren
protected void drawChildren()- Overrides:
drawChildren
in classGroup
-
setCullingArea
Deprecated.Description copied from class:Group
Children completely outside of this rectangle will not be drawn. This is only valid for use with unrotated and unscaled actors.- Specified by:
setCullingArea
in interfaceCullable
- Overrides:
setCullingArea
in classGroup
- Parameters:
cullingArea
- May be null.
-
setTransform
Deprecated.Description copied from class:Group
When true (the default), the Batch is transformed so children are drawn in their parent's coordinate system. This has a performance impact becauseBatch.flush()
must be done before and after the transform. If the actors in a group are not rotated or scaled, then the transform for the group can be set to false. In this case, each child's position will be offset by the group's position for drawing, causing the children to appear in the correct location even though the Batch has not been transformed.- Overrides:
setTransform
in classGroup
-