Package com.nomagic.ui
Class DoubleIcon
- java.lang.Object
-
- com.nomagic.ui.DoubleIcon
-
- All Implemented Interfaces:
javax.swing.Icon
@OpenApiAll public class DoubleIcon extends java.lang.Object implements javax.swing.Icon
Icon for painting two wrapped icons - icon B on top of icon A.
-
-
Constructor Summary
Constructors Constructor Description DoubleIcon(javax.swing.Icon iconA, javax.swing.Icon iconB)
ConstructorDoubleIcon(javax.swing.Icon iconA, javax.swing.Icon iconB, int iconBDeltaX, int iconBDeltaY)
ConstructorDoubleIcon(javax.swing.Icon iconA, javax.swing.Icon iconB, int iconBDeltaX, int iconBDeltaY, int width, int height)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getIconHeight()
int
getIconWidth()
void
paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
-
-
-
Constructor Detail
-
DoubleIcon
public DoubleIcon(javax.swing.Icon iconA, javax.swing.Icon iconB)
Constructor- Parameters:
iconA
- icon belowiconB
- icon above
-
DoubleIcon
public DoubleIcon(javax.swing.Icon iconA, javax.swing.Icon iconB, int iconBDeltaX, int iconBDeltaY)
Constructor- Parameters:
iconA
- icon belowiconB
- icon aboveiconBDeltaX
- iconB translation by XiconBDeltaY
- iconB translation by Y
-
DoubleIcon
public DoubleIcon(javax.swing.Icon iconA, javax.swing.Icon iconB, int iconBDeltaX, int iconBDeltaY, int width, int height)
Constructor. Allows to specify icon width or height- Parameters:
iconA
- icon belowiconB
- icon aboveiconBDeltaX
- iconB translation by XiconBDeltaY
- iconB translation by Ywidth
- icon widthheight
- icon height
-
-
Method Detail
-
paintIcon
public void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
- Specified by:
paintIcon
in interfacejavax.swing.Icon
-
getIconWidth
public int getIconWidth()
- Specified by:
getIconWidth
in interfacejavax.swing.Icon
-
getIconHeight
public int getIconHeight()
- Specified by:
getIconHeight
in interfacejavax.swing.Icon
-
-