|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openpermis.editor.policy.gui.CompoundIcon
public class CompoundIcon
Icon that consists of two icons.
The compound icon draws two icons, the first at the bottom and the second on top of it.
Field Summary | |
---|---|
private int |
height
Cache for the combined icon height. |
private Icon |
icon1
The first icon to display. |
private Icon |
icon2
The secound icon to display. |
private int |
width
Cache for the combined icon width. |
private int |
x1
Drawing x offset for the first icon. |
private int |
x2
Drawing x offset for the second icon. |
private int |
y1
Drawing y offset for the first icon. |
private int |
y2
Drawing y offset for the second icon. |
Constructor Summary | |
---|---|
CompoundIcon(Icon icon1,
Icon icon2)
Creates a new annotated icon. |
Method Summary | |
---|---|
int |
getIconHeight()
|
int |
getIconWidth()
|
void |
paintIcon(Component c,
Graphics g,
int x,
int y)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final int width
private final int height
private final Icon icon1
private final int x1
private final int y1
private final Icon icon2
private final int x2
private final int y2
Constructor Detail |
---|
public CompoundIcon(Icon icon1, Icon icon2)
icon1
- the first icon to display, must not be null
.icon2
- the second icon to display, must not be null
.Method Detail |
---|
public int getIconHeight()
getIconHeight
in interface Icon
public int getIconWidth()
getIconWidth
in interface Icon
public void paintIcon(Component c, Graphics g, int x, int y)
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