diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/resources/IconResources.java b/src/main/java/the/bytecode/club/bytecodeviewer/resources/IconResources.java index 7e2a89a6..c3f76a63 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/resources/IconResources.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/resources/IconResources.java @@ -143,54 +143,4 @@ public class IconResources return image; } - - - /** - * The minus sign button icon - */ - public static class ExpandedIcon implements Icon, Serializable - { - static public Icon createExpandedIcon() { - return new ExpandedIcon(); - } - - public void paintIcon(Component c, Graphics g, int x, int y) - { - Color backgroundColor = c.getBackground(); - if(backgroundColor != null) - g.setColor(backgroundColor); - else - g.setColor(Color.white); - - g.fillRect(x, y, SIZE-1, SIZE-1); - g.setColor(Color.gray); - g.drawRect(x, y, SIZE-1, SIZE-1); - g.setColor(Color.black); - g.drawLine(x + 2, y + HALF_SIZE, x + (SIZE - 3), y + HALF_SIZE); - } - - public int getIconWidth() { - return SIZE; - } - - public int getIconHeight() { - return SIZE; - } - } - - /** - * The plus sign button icon - */ - public static class CollapsedIcon extends ExpandedIcon - { - static public Icon createCollapsedIcon() { - return new CollapsedIcon(); - } - - public void paintIcon(Component c, Graphics g, int x, int y) - { - super.paintIcon(c, g, x, y); - g.drawLine(x + HALF_SIZE, y + 2, x + HALF_SIZE, y + (SIZE - 3)); - } - } }