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 ofResizableIconthat 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 intgetIconHeight()intgetIconWidth()voidpaintIcon(Component c, Graphics g, int x, int y)voidrevertToOriginalDimension()voidsetDimension(Dimension newDimension)Changes the dimension ofthisicon.protected booleantoPaintEnabled(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.EASTorSwingConstants.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.SOUTHis 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.SOUTHis supported.
-
-
Method Detail
-
revertToOriginalDimension
public void revertToOriginalDimension()
-
setDimension
public void setDimension(Dimension newDimension)
Description copied from interface:ResizableIconChanges the dimension ofthisicon.- Specified by:
setDimensionin interfaceResizableIcon- Parameters:
newDimension- New dimension forthisicon.
-
getIconHeight
public int getIconHeight()
- Specified by:
getIconHeightin interfaceIcon
-
getIconWidth
public int getIconWidth()
- Specified by:
getIconWidthin interfaceIcon
-
toPaintEnabled
protected boolean toPaintEnabled(Component c)
-
-