Widening.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@2515 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -183,8 +183,7 @@ public class RadialLabelSausage extends LabelSausage
|
||||
|
||||
} else {
|
||||
// render the circle
|
||||
gfx.fillOval(
|
||||
x, y, closedBounds.width - 1, closedBounds.height - 1);
|
||||
gfx.fillOval(x, y, closedBounds.width - 1, closedBounds.height - 1);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -193,19 +192,17 @@ public class RadialLabelSausage extends LabelSausage
|
||||
*/
|
||||
protected void paint (Graphics2D gfx, int x, int y, RadialMenu menu)
|
||||
{
|
||||
paint(gfx, x, y, UIManager.getColor(
|
||||
"RadialLabelSausage.background"), menu);
|
||||
paint(gfx, x, y, UIManager.getColor("RadialLabelSausage.background"), menu);
|
||||
}
|
||||
|
||||
/** Indicates whether or not this label is active. */
|
||||
protected boolean _active = false;
|
||||
protected boolean _active;
|
||||
|
||||
/** The thickness of the colored active/inactive border. */
|
||||
protected static final int BORDER_THICKNESS = 4;
|
||||
|
||||
/** The stroke to use when drawing the selected/unselected color. */
|
||||
protected static final Stroke BORDER_STROKE =
|
||||
new BasicStroke(BORDER_THICKNESS);
|
||||
protected static final Stroke BORDER_STROKE = new BasicStroke(BORDER_THICKNESS);
|
||||
|
||||
/** The alpha level for how much we dim an inactive menu item by. */
|
||||
protected static final Composite DISABLED_ALPHA =
|
||||
|
||||
@@ -119,8 +119,7 @@ public class RadialMenuItem extends RadialLabelSausage
|
||||
/**
|
||||
* Renders this menu item at the specified location.
|
||||
*/
|
||||
public void render (
|
||||
Component host, RadialMenu menu, Graphics2D gfx, int x, int y)
|
||||
public void render (Component host, RadialMenu menu, Graphics2D gfx, int x, int y)
|
||||
{
|
||||
paint(gfx, x, y, menu);
|
||||
}
|
||||
@@ -130,8 +129,7 @@ public class RadialMenuItem extends RadialLabelSausage
|
||||
{
|
||||
super.drawIcon(gfx, x, y, cliData);
|
||||
if (predicate instanceof RadialMenu.IconPredicate) {
|
||||
Icon icon = ((RadialMenu.IconPredicate) predicate).getIcon(
|
||||
(RadialMenu) cliData, this);
|
||||
Icon icon = ((RadialMenu.IconPredicate)predicate).getIcon((RadialMenu)cliData, this);
|
||||
if (icon != null) {
|
||||
icon.paintIcon(null, gfx, x + _xoff, y + _yoff);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user