Package com.nomagic.ui
Class DoubleIcon
java.lang.Object
com.nomagic.ui.DoubleIcon
- All Implemented Interfaces:
Icon
Icon for painting two wrapped icons - icon B on top of icon A.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionDoubleIcon
(Icon iconA, Icon iconB) ConstructorDoubleIcon
(Icon iconA, Icon iconB, int iconBDeltaX, int iconBDeltaY) ConstructorDoubleIcon
(Icon iconA, Icon iconB, int iconBDeltaX, int iconBDeltaY, int width, int height) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionint
int
void
-
Field Details
-
iconA
-
iconB
-
-
Constructor Details
-
DoubleIcon
Constructor- Parameters:
iconA
- icon belowiconB
- icon above
-
DoubleIcon
Constructor- Parameters:
iconA
- icon belowiconB
- icon aboveiconBDeltaX
- iconB translation by XiconBDeltaY
- iconB translation by Y
-
DoubleIcon
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 Details
-
paintIcon
-
getIconWidth
public int getIconWidth()- Specified by:
getIconWidth
in interfaceIcon
-
getIconHeight
public int getIconHeight()- Specified by:
getIconHeight
in interfaceIcon
-