Class CircularGroup.Modifier.Adapter
java.lang.Object
net.dermetfan.gdx.scenes.scene2d.ui.CircularGroup.Modifier.Adapter
- All Implemented Interfaces:
CircularGroup.Modifier
- Enclosing interface:
CircularGroup.Modifier
Use this if you only want to override some of
CircularGroup.Modifier's methods.
All method implementations return the default value.- Since:
- 0.5.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.dermetfan.gdx.scenes.scene2d.ui.CircularGroup.Modifier
CircularGroup.Modifier.Adapter -
Constructor Summary
Constructors -
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)
-
Constructor Details
-
Adapter
public Adapter()
-
-
Method Details
-
angle
public float angle(float defaultAngle, com.badlogic.gdx.scenes.scene2d.Actor child, int index, int numChildren, CircularGroup group) - Specified by:
anglein interfaceCircularGroup.Modifier- 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
public float rotation(float angle, com.badlogic.gdx.scenes.scene2d.Actor child, int index, int numChildren, CircularGroup group) - Specified by:
rotationin interfaceCircularGroup.Modifier- Parameters:
angle- the angle of the child (fromCircularGroup.Modifier.angle(float, Actor, int, int, CircularGroup))- Returns:
- the rotation of the child
-
anchorOffset
public 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) - Specified by:
anchorOffsetin interfaceCircularGroup.Modifier- Parameters:
anchorOffset- the default anchor offset ([0:0])- Returns:
- the anchor offset of the child, relative to the group center
-
localAnchor
public 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) - Specified by:
localAnchorin interfaceCircularGroup.Modifier- Parameters:
localAnchor- the default local anchorOffset ([childWidth:childHeight / 2])- Returns:
- the local anchorOffset of the child, relative to the child itself
-