Constructor and Description |
---|
PieMenu() |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroy the pie menu (remove glyphs from virtual space).
|
void |
destroy(int animLength)
Destroy the pie menu (remove glyphs from virtual space).
|
Glyph |
getBoundary()
Get the menu's invisible (but sensitive) boundary glyph.
|
Glyph |
getItem(int i)
Get the menu item at a given index.
|
Glyph |
getItem(String label)
Get the menu item that has a given label.
|
int |
getItemIndex(Glyph g)
Get index of the provided glyph in the list of menu items.
Menu items are sorted counter clockwise, starting with the element placed at the start angle. |
Glyph[] |
getItems()
Get the menu's items counter clockwise.
|
VText[] |
getLabels()
Get the menu items' labels counter clockwise.
|
boolean |
getSensitivity() |
void |
setSensitivity(boolean b) |
public void destroy()
public void destroy(int animLength)
animLength
- duration of collapse animation in ms (0 if no animation)public Glyph[] getItems()
public VText[] getLabels()
public Glyph getBoundary()
public int getItemIndex(Glyph g)
g
- a glyph representing one of the menu's itemspublic Glyph getItem(int i)
i
- item indexpublic Glyph getItem(String label)
label
- item label.public void setSensitivity(boolean b)
public boolean getSensitivity()
Copyright © 2000-2002 Xerox Corporation. All Rights Reserved
Copyright © 2003 World Wide Web Consortium. All Rights Reserved
Copyright © 2004-2015 INRIA. All Rights Reserved
Licensed under the GNU LGPL. For full terms see the file COPYING.