Remove unused ExpandedIcon and CollapsedIcon
This commit is contained in:
parent
da7f4a77d4
commit
3d1f614687
1 changed files with 0 additions and 50 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue