|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.themes.basic.action.dropdown.DropDownIcon
@ColorCodes(value="action.dropdown.arrow") public class DropDownIcon
This Icon
is painted on buttons for DropDownAction
s. Usually this icon
looks like a small arrow pointing down, and clicking onto this icon should open a
drop down menu.
Field Summary | |
---|---|
static String |
ICON_KEY
|
Constructor Summary | |
---|---|
DropDownIcon()
Creates a new icon. |
Method Summary | |
---|---|
DropDownAction |
getAction()
Gets the action for which this icon is used. |
Icon |
getDisabledIcon()
Gets a disabled version of this icon. |
int |
getIconHeight()
|
int |
getIconWidth()
|
JComponent |
getParent()
Gets the Component on which this icon is painted. |
void |
init(Dockable dockable,
DropDownAction action,
ViewItem<? extends JComponent> parent)
Initializes this icon by setting missing properties. |
boolean |
isInitialized()
Tells whether init(Dockable, DropDownAction, ViewItem) has already been called. |
void |
paintIcon(Component c,
Graphics g,
int x,
int y)
|
protected void |
resetIcon()
Recalculates what icon should be shown |
void |
setController(DockController controller)
Links this icon with controller , this icon may change is appearance
due to the properties stored in controller . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String ICON_KEY
Constructor Detail |
---|
public DropDownIcon()
init(Dockable, DropDownAction, ViewItem)
to fully
utilize this icon.
Method Detail |
---|
public void init(Dockable dockable, DropDownAction action, ViewItem<? extends JComponent> parent)
dockable
- the owner of action
, not null
action
- the action for which this icon is used, must not be null
parent
- the JComponent
on which this icon is painted, not null
. Please
note that this component must not be cast into a subclass.public boolean isInitialized()
init(Dockable, DropDownAction, ViewItem)
has already been called.
true
if this icon is initializedpublic DropDownAction getAction()
null
public JComponent getParent()
Component
on which this icon is painted.
null
public void setController(DockController controller)
controller
, this icon may change is appearance
due to the properties stored in controller
.
controller
- the properties to use or null
public Icon getDisabledIcon()
null
, has always the same size as this
iconpublic int getIconHeight()
getIconHeight
in interface Icon
public int getIconWidth()
getIconWidth
in interface Icon
public void paintIcon(Component c, Graphics g, int x, int y)
paintIcon
in interface Icon
protected void resetIcon()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |