Class DoubleArrowResizableIcon
- java.lang.Object
-
- org.pushingpixels.flamingo.internal.utils.DoubleArrowResizableIcon
-
- All Implemented Interfaces:
Icon
,ResizableIcon
public class DoubleArrowResizableIcon extends Object implements ResizableIcon
Helper implementation ofResizableIcon
that draws a double arrow.
-
-
Constructor Summary
Constructors Constructor Description DoubleArrowResizableIcon(int initialDim, int direction)
Creates a new double arrow resizable icon.DoubleArrowResizableIcon(Dimension initialDim, int direction)
Creates a new double arrow resizable icon.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getIconHeight()
int
getIconWidth()
void
paintIcon(Component c, Graphics g, int x, int y)
void
revertToOriginalDimension()
void
setDimension(Dimension newDimension)
Changes the dimension ofthis
icon.protected boolean
toPaintEnabled(Component c)
-
-
-
Field Detail
-
width
protected int width
The width of the rendered image.
-
height
protected int height
The height of the rendered image.
-
direction
protected int direction
Arrow direction. One ofSwingConstants.SOUTH
,SwingConstants.NORTH
,SwingConstants.EAST
orSwingConstants.WEST
.
-
-
Constructor Detail
-
DoubleArrowResizableIcon
public DoubleArrowResizableIcon(Dimension initialDim, int direction)
Creates a new double arrow resizable icon.- Parameters:
initialDim
- Initial icon dimension.direction
- Arrow direction. Currently onlySwingConstants.SOUTH
is supported.
-
DoubleArrowResizableIcon
public DoubleArrowResizableIcon(int initialDim, int direction)
Creates a new double arrow resizable icon.- Parameters:
initialDim
- Initial icon dimension.direction
- Arrow direction. Currently onlySwingConstants.SOUTH
is supported.
-
-
Method Detail
-
revertToOriginalDimension
public void revertToOriginalDimension()
-
setDimension
public void setDimension(Dimension newDimension)
Description copied from interface:ResizableIcon
Changes the dimension ofthis
icon.- Specified by:
setDimension
in interfaceResizableIcon
- Parameters:
newDimension
- New dimension forthis
icon.
-
getIconHeight
public int getIconHeight()
- Specified by:
getIconHeight
in interfaceIcon
-
getIconWidth
public int getIconWidth()
- Specified by:
getIconWidth
in interfaceIcon
-
toPaintEnabled
protected boolean toPaintEnabled(Component c)
-
-