|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pushingpixels.flamingo.internal.utils.ArrowResizableIcon
public class ArrowResizableIcon
Helper implementation of ResizableIcon
that draws an arrow.
Nested Class Summary | |
---|---|
static class |
ArrowResizableIcon.CommandButtonPopupIcon
|
Field Summary | |
---|---|
protected int |
direction
Arrow direction. |
protected int |
height
The current icon height. |
protected int |
width
The current icon width. |
Constructor Summary | |
---|---|
ArrowResizableIcon(Dimension initialDim,
int direction)
Creates a new arrow resizable icon. |
|
ArrowResizableIcon(int initialDim,
int direction)
Creates a new arrow resizable icon. |
Method Summary | |
---|---|
int |
getIconHeight()
|
int |
getIconWidth()
|
void |
paintIcon(Component c,
Graphics g,
int x,
int y)
|
void |
revertToOriginalDimension()
|
void |
setDimension(Dimension newDimension)
Changes the dimension of this icon. |
protected boolean |
toPaintEnabled(Component c)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int width
protected int height
protected int direction
SwingConstants.SOUTH
,
SwingConstants.NORTH
, SwingConstants.EAST
or
SwingConstants.WEST
.
Constructor Detail |
---|
public ArrowResizableIcon(Dimension initialDim, int direction)
initialDim
- Initial icon dimension.direction
- Arrow direction. Must be one of SwingConstants.SOUTH
,
SwingConstants.NORTH
, SwingConstants.EAST
or
SwingConstants.WEST
.public ArrowResizableIcon(int initialDim, int direction)
initialDim
- Initial icon dimension.direction
- Arrow direction. Must be one of SwingConstants.SOUTH
,
SwingConstants.NORTH
, SwingConstants.EAST
or
SwingConstants.WEST
.Method Detail |
---|
public void revertToOriginalDimension()
public void setDimension(Dimension newDimension)
ResizableIcon
this
icon.
setDimension
in interface ResizableIcon
newDimension
- New dimension for this
icon.public int getIconHeight()
getIconHeight
in interface Icon
public int getIconWidth()
getIconWidth
in interface Icon
protected boolean toPaintEnabled(Component c)
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 |