Interface CircularGroup.Modifier
- All Known Implementing Classes:
CircularGroup.Modifier.Adapter
- Enclosing class:
CircularGroup
public static interface CircularGroup.Modifier
- Since:
- 0.5.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classUse this if you only want to override some ofCircularGroup.Modifier's methods. -
Method Summary
Modifier and TypeMethodDescriptioncom.badlogic.gdx.math.Vector2anchorOffset(com.badlogic.gdx.math.Vector2 anchorOffset, com.badlogic.gdx.scenes.scene2d.Actor child, int index, int numChildren, CircularGroup group) floatangle(float defaultAngle, com.badlogic.gdx.scenes.scene2d.Actor child, int index, int numChildren, CircularGroup group) com.badlogic.gdx.math.Vector2localAnchor(com.badlogic.gdx.math.Vector2 localAnchor, com.badlogic.gdx.scenes.scene2d.Actor child, int index, int numChildren, CircularGroup group) floatrotation(float angle, com.badlogic.gdx.scenes.scene2d.Actor child, int index, int numChildren, CircularGroup group)
-
Method Details
-
angle
float angle(float defaultAngle, com.badlogic.gdx.scenes.scene2d.Actor child, int index, int numChildren, CircularGroup group) - Parameters:
defaultAngle- the linearly calculated angle of the child for even distribution- Returns:
- the angle of the child (
CircularGroup.angleOffsetwill be added to this)
-
rotation
float rotation(float angle, com.badlogic.gdx.scenes.scene2d.Actor child, int index, int numChildren, CircularGroup group) - Parameters:
angle- the angle of the child (fromangle(float, Actor, int, int, CircularGroup))- Returns:
- the rotation of the child
-
anchorOffset
com.badlogic.gdx.math.Vector2 anchorOffset(com.badlogic.gdx.math.Vector2 anchorOffset, com.badlogic.gdx.scenes.scene2d.Actor child, int index, int numChildren, CircularGroup group) - Parameters:
anchorOffset- the default anchor offset ([0:0])- Returns:
- the anchor offset of the child, relative to the group center
-
localAnchor
com.badlogic.gdx.math.Vector2 localAnchor(com.badlogic.gdx.math.Vector2 localAnchor, com.badlogic.gdx.scenes.scene2d.Actor child, int index, int numChildren, CircularGroup group) - Parameters:
localAnchor- the default local anchorOffset ([childWidth:childHeight / 2])- Returns:
- the local anchorOffset of the child, relative to the child itself
-