Package kiyut.sketsa.actions
Class ShowRulerAction
- java.lang.Object
-
- org.openide.util.SharedClassObject
-
- org.openide.util.actions.SystemAction
-
- org.openide.util.actions.BooleanStateAction
-
- kiyut.sketsa.actions.AbstractEditorBooleanStateAction
-
- kiyut.sketsa.actions.ShowRulerAction
-
- All Implemented Interfaces:
ActionListener,Externalizable,Serializable,EventListener,Action,org.openide.util.actions.Presenter,org.openide.util.actions.Presenter.Menu,org.openide.util.actions.Presenter.Popup,org.openide.util.actions.Presenter.Toolbar,org.openide.util.HelpCtx.Provider
public class ShowRulerAction extends AbstractEditorBooleanStateAction
Action which Show Ruler for theVectorCanvas- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class kiyut.sketsa.actions.AbstractEditorBooleanStateAction
context, editorCookie, editorCookieLookupListener, result
-
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
-
-
Constructor Summary
Constructors Constructor Description ShowRulerAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voideditorCookieLookupListenerResultChanged(org.openide.util.LookupEvent evt)Listen for the presence or absence ofSVGEditorCookieon the lookup and set the enabled state for this action.StringgetName()protected voidpropertyChange(PropertyChangeEvent evt)-
Methods inherited from class kiyut.sketsa.actions.AbstractEditorBooleanStateAction
getHelpCtx, getMenuPresenter, setBooleanState, setEnabled
-
Methods inherited from class org.openide.util.actions.BooleanStateAction
actionPerformed, getBooleanState, getPopupPresenter, getToolbarPresenter, initialize
-
Methods inherited from class org.openide.util.actions.SystemAction
clearSharedData, createPopupMenu, createToolbarPresenter, get, getIcon, getIcon, getValue, iconResource, isEnabled, linkActions, putValue, setIcon
-
Methods inherited from class org.openide.util.SharedClassObject
addNotify, addPropertyChangeListener, equals, finalize, findObject, findObject, firePropertyChange, getLock, getProperty, hashCode, putProperty, putProperty, readExternal, removeNotify, removePropertyChangeListener, reset, writeExternal, writeReplace
-
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.swing.Action
accept, addPropertyChangeListener, removePropertyChangeListener
-
-
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getNamein classorg.openide.util.actions.SystemAction
-
propertyChange
protected void propertyChange(PropertyChangeEvent evt)
- Specified by:
propertyChangein classAbstractEditorBooleanStateAction
-
editorCookieLookupListenerResultChanged
protected void editorCookieLookupListenerResultChanged(org.openide.util.LookupEvent evt)
Description copied from class:AbstractEditorBooleanStateActionListen for the presence or absence ofSVGEditorCookieon the lookup and set the enabled state for this action. It also set the boolean state to false if editorCookie.isOpened() == false- Overrides:
editorCookieLookupListenerResultChangedin classAbstractEditorBooleanStateAction- Parameters:
evt- the Event
-
-