Package docking.widgets.trable
Class OpenCloseIcon
java.lang.Object
docking.widgets.trable.OpenCloseIcon
- All Implemented Interfaces:
Icon
Icon used for the expand/collapse control in a
GTrable-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintvoidvoid
-
Constructor Details
-
OpenCloseIcon
public OpenCloseIcon(boolean isOpen, int width, int height) Constructor- Parameters:
isOpen- if true, draws an icon that indicates the row is open, otherwise draws an icon that the icon indicates the row is closedwidth- the width to draw the iconheight- the height to draw the icon
-
-
Method Details
-
setColor
-
paintIcon
-
getIconWidth
public int getIconWidth()- Specified by:
getIconWidthin interfaceIcon
-
getIconHeight
public int getIconHeight()- Specified by:
getIconHeightin interfaceIcon
-