|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openpermis.editor.policy.gui.EmptyIcon
public final class EmptyIcon
An icon that does not have any content.
Use icons of this type if you need an icon that has a specific size but does not render any content.
Field Summary | |
---|---|
private int |
height
The height of this icon. |
private static long |
serialVersionUID
|
private int |
width
The width of this icon. |
Constructor Summary | |
---|---|
private |
EmptyIcon(int width,
int height)
Creates an empty icon of the specified dimensions. |
Method Summary | |
---|---|
static Icon |
getIcon(int width,
int height)
Returns an empty icon of the specified size. |
static Icon |
getIcon(String size)
Returns an empty icon of the specified size. |
int |
getIconHeight()
|
int |
getIconWidth()
|
void |
paintIcon(Component component,
Graphics graphics,
int xCoord,
int yCoord)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
-5944654665535461825L
private final int width
private final int height
Constructor Detail |
---|
private EmptyIcon(int width, int height)
width
- the width of the icon.height
- the height of the icon.Method Detail |
---|
public static final Icon getIcon(String size) throws IllegalArgumentException
size
- the dimensions of the icons as string in form '[width]x[height]',
for example 22x22
.
IllegalArgumentException
- if the icon size specified cannot be parsed.public static final Icon getIcon(int width, int height)
width
- the width of the icon.height
- the height of the icon.
public int getIconHeight()
getIconHeight
in interface Icon
public int getIconWidth()
getIconWidth
in interface Icon
public void paintIcon(Component component, Graphics graphics, int xCoord, int yCoord)
paintIcon
in interface Icon
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
PERMIS Role Based Access Control 0.4.0 (Build 15)
2009/05/20 08:15:22
Copyright (c) 2002-2007 Ergon Informatik AG