@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
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 ColorPallete 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, getActions, getCommandKey, getDescription, getGroup, getIcon, getID, getLargeIcon, getLargeOrSmallIcon, getMnemonicKey, getName, getPropertyChangeListeners, getShortcuts, getSmallIcon, getSmallOrLargeIcon, hashCode, isIDGenerated, removeAction, removePropertyChangeListener, removeShortcut, removeWeakPropertyChangeListener, setActions, setDescription, setGroup, setLargeIcon, setMnemonicKey, setName, setShortcuts, setSmallIcon, 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()