@OpenApiAll
public class DoubleIcon
extends java.lang.Object
implements javax.swing.Icon
Modifier and Type | Field and Description |
---|---|
protected javax.swing.Icon |
iconA |
protected javax.swing.Icon |
iconB |
Constructor and Description |
---|
DoubleIcon(javax.swing.Icon iconA,
javax.swing.Icon iconB)
Constructor
|
DoubleIcon(javax.swing.Icon iconA,
javax.swing.Icon iconB,
int iconBDeltaX,
int iconBDeltaY)
Constructor
|
DoubleIcon(javax.swing.Icon iconA,
javax.swing.Icon iconB,
int iconBDeltaX,
int iconBDeltaY,
int width,
int height)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getIconHeight() |
int |
getIconWidth() |
void |
paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y) |
public DoubleIcon(javax.swing.Icon iconA, javax.swing.Icon iconB)
iconA
- icon belowiconB
- icon abovepublic DoubleIcon(javax.swing.Icon iconA, javax.swing.Icon iconB, int iconBDeltaX, int iconBDeltaY)
iconA
- icon belowiconB
- icon aboveiconBDeltaX
- iconB translation by XiconBDeltaY
- iconB translation by Ypublic DoubleIcon(javax.swing.Icon iconA, javax.swing.Icon iconB, int iconBDeltaX, int iconBDeltaY, int width, int height)
iconA
- icon belowiconB
- icon aboveiconBDeltaX
- iconB translation by XiconBDeltaY
- iconB translation by Ywidth
- icon widthheight
- icon heightpublic void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
paintIcon
in interface javax.swing.Icon
public int getIconWidth()
getIconWidth
in interface javax.swing.Icon
public int getIconHeight()
getIconHeight
in interface javax.swing.Icon