|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openpermis.editor.policy.gui.icon.EmptyIcon
public 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.
Constructor Summary | |
---|---|
protected |
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 |
Constructor Detail |
---|
protected 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 |
OpenPermis Role Based Access Control 0.9.0 (Build 16)
2009/08/13 07:17:21
Copyright (c) 2002-2007 Ergon Informatik AG