@OpenApi public class ColorChooseAction extends NMAction
ACTION_SHORTCUTS, BELONGS_TO_SEPARATE_GROUP_IN_UI, DO_NO_SHOW_ACTION_NAME_IN_UI, GENERATED_ID_PREFIX, GROUP, ID, LARGE_ICON, MENU_SHORTCUT_MASK, TINY_ICON
Constructor and Description |
---|
ColorChooseAction(java.lang.String moreLabel,
java.lang.String noFillLabel,
boolean noFillAvailable,
java.awt.Color[] recentColors)
Constructs new color action.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Shows ColorPallet in JPopupMenu when this action is performed.
|
java.awt.Color |
getColor()
Returns color selected by this action.
|
accept, addAction, addPropertyChangeListener, addShortcut, addShotcut, addWeakPropertyChangeListener, clone, compareTo, createMenuItem, equals, firePropertyChange, forEach, forEachIncludingSelf, getActions, getCommandKey, getDescription, getGroup, getIcon, getID, getLargeIcon, getLargeOrSmallIcon, getMenuShortcutMaskAsString, getMnemonicKey, getName, getPropertyChangeListeners, getShortcuts, getSmallIcon, getSmallOrLargeIcon, getTinyIcon, hashCode, hasMenuShortcutMask, isIDGenerated, removeAction, removeIf, removePropertyChangeListener, removeShortcut, removeWeakPropertyChangeListener, setActions, setDescription, setGroup, setIcon, setLargeIcon, setMnemonicKey, setName, setShortcuts, setSmallIcon, setTinyIcon, shallowClone, toString, updateState
@OpenApi public ColorChooseAction(java.lang.String moreLabel, java.lang.String noFillLabel, boolean noFillAvailable, java.awt.Color[] recentColors)
moreLabel
- the text of more label.noFillLabel
- the text of no fill label.noFillAvailable
- no fill available or not?@OpenApi public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
actionPerformed
in class NMAction
e
- an event caused invocation@OpenApi public java.awt.Color getColor()