Remove unused ExpandedIcon and CollapsedIcon

This commit is contained in:
Jannis Weis 2022-04-25 17:49:45 +02:00
parent da7f4a77d4
commit 3d1f614687
No known key found for this signature in database
GPG Key ID: 7C9D8D4B558049AB

AI 샘플 코드 생성 중입니다

Loading...

View File

@ -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));
}
}
}