|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.levigo.util.swing.RotatedIcon
public class RotatedIcon
Delegating icon implementation which allows to rotate the rendering of the nested icon.
Nested Class Summary | |
---|---|
static class |
RotatedIcon.Rotation
|
Constructor Summary | |
---|---|
RotatedIcon(Icon icon,
RotatedIcon.Rotation rotate)
Create a RotatedIcon |
Method Summary | |
---|---|
Icon |
getIcon()
Gets the Icon to be rotated |
int |
getIconHeight()
Gets the height of this icon. |
int |
getIconWidth()
Gets the width of this icon. |
RotatedIcon.Rotation |
getRotation()
Gets the Rotate enum which indicates the direction of rotation |
void |
paintIcon(Component c,
Graphics g,
int x,
int y)
Paint the icons of this compound icon at the specified location |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RotatedIcon(Icon icon, RotatedIcon.Rotation rotate)
icon
- the Icon to rotaterotate
- the rotation to be appliedMethod Detail |
---|
public Icon getIcon()
public RotatedIcon.Rotation getRotation()
public int getIconWidth()
getIconWidth
in interface Icon
public int getIconHeight()
getIconHeight
in interface Icon
public void paintIcon(Component c, Graphics g, int x, int y)
paintIcon
in interface Icon
c
- The component on which the icon is paintedg
- the graphics contextx
- the X coordinate of the icon's top-left cornery
- the Y coordinate of the icon's top-left corner
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |