java.lang.Object | |
↳ | com.droidux.pack.action.widget.ActionPathMenu.CircularLayoutBuilder |
The helper class to build a circular path menu.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds the action to the menu.
| |||||||||||
Adds a list of actions to the menu.
| |||||||||||
This will end the layout process.
| |||||||||||
How long the animation to expand/collapse the menu should last.
| |||||||||||
You can override the animations use by the menu, eg.
| |||||||||||
Customize the shape of the circle/arc path.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Adds the action to the menu.
action | The action to be added. |
---|
this
Adds a list of actions to the menu.
actions | The action to be added. |
---|
this
How long the animation to expand/collapse the menu should last. The duration cannot be negative.
millis | Duration in milliseconds. |
---|
this
You can override the animations use by the menu, eg. expand/collapse animation, by providing an implementation
of the ActionPathMenu.AnimationFactory
.
factory | This will provide the animations to be used by the menu. |
---|
this
Customize the shape of the circle/arc path.
If the start angle is negative or >= 360, the start angle is treated as start angle modulo 360. If the sweep angle is >= 360, then the circle is drawn completely. If the sweep angle is negative, the sweep angle is treated as sweep angle modulo 360. The arc is drawn clockwise. An angle of 0 degrees correspond to the geometric angle of 0 degrees (3 o'clock on a watch.)radius | The radius of the circle/arc. |
---|---|
startAngle | Starting angle (in degrees) where the arc begins. |
sweepAngle | Sweep angle (in degrees) measured clockwise. |
this