Package ca.phon.ui
Class DropDownIcon
java.lang.Object
ca.phon.ui.DropDownIcon
- All Implemented Interfaces:
Icon
Create a 'drop-down' icon composed of an original icon
and a drop-down arrow. If
paintRollover
is
true
the arrow portion will have a border painted
on the left-hand side.-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
-
Constructor Summary
ConstructorDescriptionDropDownIcon
(Icon icn) DropDownIcon
(Icon icn, int gap) DropDownIcon
(Icon icn, int gap, int iconPosition) DropDownIcon
(Icon icn, int gap, int iconPosition, boolean paintRollover) DropDownIcon
(Icon icn, Icon arrowIcn) DropDownIcon
(Icon icn, Icon arrowIcn, int gap) DropDownIcon
(Icon icn, Icon arrowIcn, int gap, int iconPosition) DropDownIcon
(Icon icn, Icon arrowIcn, int gap, int iconPosition, boolean paintRollover) -
Method Summary
Modifier and TypeMethodDescriptionint
Get arrow icon width plush gapint
getGap()
int
int
int
boolean
boolean
void
void
setArrowPainted
(boolean painted) void
setGap
(int gap) void
setIconPosition
(int iconPosition) void
setPaintRollover
(boolean paintRollover)
-
Field Details
-
DEFAULT_GAP
public static final int DEFAULT_GAP- See Also:
-
DEFAULT_ICON_POSITION
public static final int DEFAULT_ICON_POSITION- See Also:
-
-
Constructor Details
-
DropDownIcon
-
DropDownIcon
-
DropDownIcon
-
DropDownIcon
-
DropDownIcon
-
DropDownIcon
-
DropDownIcon
-
DropDownIcon
-
-
Method Details
-
setArrowPainted
public void setArrowPainted(boolean painted) -
isArrowPainted
public boolean isArrowPainted() -
getGap
public int getGap() -
setGap
public void setGap(int gap) -
getIconPosition
public int getIconPosition() -
setIconPosition
public void setIconPosition(int iconPosition) -
isPaintRollover
public boolean isPaintRollover() -
setPaintRollover
public void setPaintRollover(boolean paintRollover) -
paintIcon
-
getIconWidth
public int getIconWidth()- Specified by:
getIconWidth
in interfaceIcon
-
getIconHeight
public int getIconHeight()- Specified by:
getIconHeight
in interfaceIcon
-
getArrowAreaWidth
public int getArrowAreaWidth()Get arrow icon width plush gap -
getArrowRect
-