public abstract class PieMenuFactory extends Object
Constructor and Description |
---|
PieMenuFactory() |
Modifier and Type | Method and Description |
---|---|
static PieMenu |
createPieMenu(String[] labels,
int animLength,
View v)
Standard pie menu creation method.
|
static PieMenu |
createPieMenu(String[] labels,
int animLength,
View v,
Color[] itemColors,
Color[] itembColors,
Color[] itemSColors,
Color[] itembSColors,
Color[] labelColors)
Standard pie menu creation method.
|
static PieMenu |
createPieMenu(String[] labels,
int animLength,
VirtualSpace vs,
Point2D.Double coords,
Color[] itemColors,
Color[] itembColors,
Color[] itemSColors,
Color[] itembSColors,
Color[] labelColors)
Standard pie menu creation method.
|
static PieMenu |
createPieMenu(String[] labels,
Point2D.Double[] labelOffsets,
int animLength,
View v)
Standard pie menu creation method.
|
static PieMenu |
createPieMenu(String[] labels,
Point2D.Double[] labelOffsets,
int animLength,
View v,
Color[] itemColors,
Color[] itembColors,
Color[] itemSColors,
Color[] itembSColors,
Color[] labelColors)
Standard pie menu creation method.
|
static PieMenu |
createPieMenu(String[] labels,
Point2D.Double[] labelOffsets,
int animLength,
VirtualSpace vs,
Point2D.Double coords)
Standard pie menu creation method.
|
static PieMenu |
createPieMenu(String[] labels,
Point2D.Double[] labelOffsets,
int animLength,
VirtualSpace vs,
Point2D.Double coords,
Color[] itemColors,
Color[] itembColors,
Color[] itemSColors,
Color[] itembSColors,
Color[] labelColors)
Standard pie menu creation method.
|
static double |
getAngle() |
static double |
getAngleWidth() |
static Font |
getFont() |
static Color |
getItemBorderColor() |
static Color |
getItemFillColor() |
static Color |
getLabelColor() |
static long |
getRadius() |
static Color |
getSelectedItemBorderColor() |
static Color |
getSelectedItemFillColor() |
static double |
getSensitivityRadius() |
static float |
getTranslucency() |
static void |
setAngle(double a)
Set the angle offset of the first menu item of pie menus that will be created by calls to create*PieMenu().
|
static void |
setAngleWidth(double aw) |
static void |
setFont(Font f)
Set the font used for menu labels.
|
static void |
setItemBorderColor(Color c)
Set the border color of pie menu items that will be created by calls to create*PieMenu().
|
static void |
setItemFillColor(Color c)
Set the fill color of pie menu items that will be created by calls to create*PieMenu().
|
static void |
setLabelColor(Color c)
Set the color of pie menu labels that will be created by calls to create*PieMenu().
|
static void |
setRadius(long r)
Set the radius (in virtual space units) of pie menus that will be created by calls to create*PieMenu().
|
static void |
setSelectedItemBorderColor(Color c)
Set the border color of pie menu items that will be created by calls to create*PieMenu().
|
static void |
setSelectedItemFillColor(Color c)
Set the fill color of pie menu items that will be created by calls to create*PieMenu().
|
static void |
setSensitivityRadius(double p)
Set the bounding shape's radius (as a percentage of the menu's actual radius).
|
static void |
setTranslucency(float a)
Set the translucency of pie menus that will be created by calls to create*PieMenu().
|
public static PieMenu createPieMenu(String[] labels, int animLength, View v)
labels
- text label of each menu itemanimLength
- duration in ms of menu expansion animationv
- View in which the pie menu will appearpublic static PieMenu createPieMenu(String[] labels, int animLength, VirtualSpace vs, Point2D.Double coords, Color[] itemColors, Color[] itembColors, Color[] itemSColors, Color[] itembSColors, Color[] labelColors)
labels
- text label of each menu itemanimLength
- duration in ms of menu expansion animationvs
- virtual space in which to create the pie menucoords
- menu center coordinates (in virtual space as a Point2D.Double)itemColors
- color of each menu item (this array should have the same length as the labels array)itembColors
- border color of each menu item (this array should have the same length as the labels array)itemSColors
- color of each menu item when selected (this array should have the same length as the labels array)itembSColors
- border color of each menu item when selected (this array should have the same length as the labels array)labelColors
- color of each menu item label (this array should have the same length as the labels array)public static PieMenu createPieMenu(String[] labels, int animLength, View v, Color[] itemColors, Color[] itembColors, Color[] itemSColors, Color[] itembSColors, Color[] labelColors)
labels
- text label of each menu itemanimLength
- duration in ms of menu expansion animationv
- View in which the pie menu will appearitemColors
- color of each menu item (this array should have the same length as the labels array)itembColors
- border color of each menu item (this array should have the same length as the labels array)itemSColors
- color of each menu item when selected (this array should have the same length as the labels array)itembSColors
- border color of each menu item when selected (this array should have the same length as the labels array)labelColors
- color of each menu item label (this array should have the same length as the labels array)public static PieMenu createPieMenu(String[] labels, Point2D.Double[] labelOffsets, int animLength, View v)
labels
- text label of each menu itemlabelOffsets
- x,y offset of each menu label w.r.t their default posisition, in virtual space unitsanimLength
- duration in ms of menu expansion animationv
- View in which the pie menu will appearpublic static PieMenu createPieMenu(String[] labels, Point2D.Double[] labelOffsets, int animLength, VirtualSpace vs, Point2D.Double coords)
labels
- text label of each menu itemlabelOffsets
- x,y offset of each menu label w.r.t their default posisition, in virtual space unitsanimLength
- duration in ms of menu expansion animationvs
- virtual space in which to create the pie menucoords
- menu center coordinates (in virtual space as a Point2D.Double)public static PieMenu createPieMenu(String[] labels, Point2D.Double[] labelOffsets, int animLength, View v, Color[] itemColors, Color[] itembColors, Color[] itemSColors, Color[] itembSColors, Color[] labelColors)
labels
- text label of each menu itemlabelOffsets
- x,y offset of each menu label w.r.t their default posisition, in virtual space unitsanimLength
- duration in ms of menu expansion animationv
- View in which the pie menu will appearitemColors
- color of each menu item (this array should have the same length as the labels array)itembColors
- border color of each menu item (this array should have the same length as the labels array)itemSColors
- color of each menu item when selected (this array should have the same length as the labels array)itembSColors
- border color of each menu item when selected (this array should have the same length as the labels array)labelColors
- color of each menu item label (this array should have the same length as the labels array)public static PieMenu createPieMenu(String[] labels, Point2D.Double[] labelOffsets, int animLength, VirtualSpace vs, Point2D.Double coords, Color[] itemColors, Color[] itembColors, Color[] itemSColors, Color[] itembSColors, Color[] labelColors)
labels
- text label of each menu itemlabelOffsets
- x,y offset of each menu label w.r.t their default posisition, in virtual space unitsanimLength
- duration in ms of menu expansion animationvs
- virtual space in which to create the pie menucoords
- menu center coordinates (in virtual space as a Point2D.Double)itemColors
- color of each menu item (this array should have the same length as the labels array)itembColors
- border color of each menu item (this array should have the same length as the labels array)itemSColors
- color of each menu item when selected (this array should have the same length as the labels array)itembSColors
- border color of each menu item when selected (this array should have the same length as the labels array)labelColors
- color of each menu item label (this array should have the same length as the labels array)public static void setRadius(long r)
public static void setAngle(double a)
a
- the angle offset, interpreted relative to the X horizontal axis (running counter clockwise).public static void setItemFillColor(Color c)
public static void setItemBorderColor(Color c)
public static void setSelectedItemFillColor(Color c)
public static void setSelectedItemBorderColor(Color c)
public static void setLabelColor(Color c)
public static void setTranslucency(float a)
public static void setSensitivityRadius(double p)
public static void setFont(Font f)
public static long getRadius()
public static double getAngle()
public static double getAngleWidth()
public static void setAngleWidth(double aw)
public static Color getItemFillColor()
public static Color getItemBorderColor()
public static Color getSelectedItemFillColor()
public static Color getSelectedItemBorderColor()
public static Color getLabelColor()
public static float getTranslucency()
public static double getSensitivityRadius()
public static Font getFont()
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.