diff --git a/src/java/com/samskivert/swing/RadialLabelSausage.java b/src/java/com/samskivert/swing/RadialLabelSausage.java index d6c0fa7e..11e79d8c 100644 --- a/src/java/com/samskivert/swing/RadialLabelSausage.java +++ b/src/java/com/samskivert/swing/RadialLabelSausage.java @@ -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 = diff --git a/src/java/com/samskivert/swing/RadialMenuItem.java b/src/java/com/samskivert/swing/RadialMenuItem.java index d26d4910..710bcde1 100644 --- a/src/java/com/samskivert/swing/RadialMenuItem.java +++ b/src/java/com/samskivert/swing/RadialMenuItem.java @@ -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); }