|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.alee.extended.layout.AbstractLayoutManager com.alee.extended.menu.DynamicMenuLayout
public class DynamicMenuLayout
Custom dynamic menu layout. This layout takes care of each menu item position including positioning during animation.
Constructor Summary | |
---|---|
DynamicMenuLayout()
|
Method Summary | |
---|---|
double |
getItemAngle(WebDynamicMenu menu,
int index)
Returns menu item angle relative to vertical axis. |
double |
getSingleComponentSpacing(WebDynamicMenu menu)
Returns spacing angle between two menu components. |
double |
getStartingAngle(WebDynamicMenu menu)
Returns menu items starting angle relative to vertical axis. |
void |
layoutContainer(java.awt.Container parent)
|
protected void |
placeElement(WebDynamicMenu menu,
int i,
int x,
int y)
Places single menu item into its current position. |
java.awt.Dimension |
preferredLayoutSize(java.awt.Container parent)
|
Methods inherited from class com.alee.extended.layout.AbstractLayoutManager |
---|
addComponent, addLayoutComponent, addLayoutComponent, getLayoutAlignmentX, getLayoutAlignmentY, invalidateLayout, maximumLayoutSize, minimumLayoutSize, removeComponent, removeLayoutComponent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DynamicMenuLayout()
Method Detail |
---|
public void layoutContainer(java.awt.Container parent)
public double getSingleComponentSpacing(WebDynamicMenu menu)
menu
- processed menu
public double getStartingAngle(WebDynamicMenu menu)
menu
- processed menu
public double getItemAngle(WebDynamicMenu menu, int index)
menu
- menu to processindex
- menu item index
protected void placeElement(WebDynamicMenu menu, int i, int x, int y)
menu
- processed menui
- menu item indexx
- menu item center X coordinatey
- menu item center Y coordinatepublic java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |