bibliothek.gui.dock.common.intern.action
Class CActionImportanceOrder
java.lang.Object
bibliothek.gui.dock.themes.basic.action.DefaultDockActionImportanceOrder
bibliothek.gui.dock.common.intern.action.CActionImportanceOrder
- All Implemented Interfaces:
- DockActionImportanceOrder
public class CActionImportanceOrder
- extends DefaultDockActionImportanceOrder
This DockActionImportanceOrder
searches for the annotation DockActionImportance
which may
be added to a CAction
or to a DockAction
.
- Author:
- Benjamin Sigg
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CActionImportanceOrder
public CActionImportanceOrder()
getImportance
protected double getImportance(DockAction action)
- Description copied from class:
DefaultDockActionImportanceOrder
- Tells how important
action
is. The default implementation just searches for
a DockActionImportance
, but subclasses may change the behavior.
- Overrides:
getImportance
in class DefaultDockActionImportanceOrder
- Parameters:
action
- the action whose importance is searched
- Returns:
- the importance, the default value is 1.0