Interface CircularGroup.Modifier

All Known Implementing Classes:
CircularGroup.Modifier.Adapter
Enclosing class:
CircularGroup

public static interface CircularGroup.Modifier
Since:
0.5.0
See Also:
  • CircularGroup.modifier
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
    Use this if you only want to override some of CircularGroup.Modifier's methods.
  • Method Summary

    Modifier and Type
    Method
    Description
    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)
     
    float
    angle(float defaultAngle, com.badlogic.gdx.scenes.scene2d.Actor child, int index, int numChildren, CircularGroup group)
     
    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)
     
    float
    rotation(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.angleOffset will 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 (from angle(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