Package org.openstreetmap.josm.actions
Class FullscreenToggleAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- org.openstreetmap.josm.actions.JosmAction
-
- org.openstreetmap.josm.actions.ToggleAction
-
- org.openstreetmap.josm.actions.FullscreenToggleAction
-
- All Implemented Interfaces:
java.awt.event.ActionListener,java.io.Serializable,java.lang.Cloneable,java.util.EventListener,javax.swing.Action,Destroyable
public class FullscreenToggleAction extends ToggleAction
This class toggles the full-screen mode.- Since:
- 2533
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstreetmap.josm.actions.JosmAction
JosmAction.ActiveLayerChangeAdapter, JosmAction.LayerChangeAdapter, JosmAction.SelectionChangeAdapter
-
-
Field Summary
Fields Modifier and Type Field Description private java.awt.GraphicsDevicegdprivate java.awt.RectangleprevBounds-
Fields inherited from class org.openstreetmap.josm.actions.JosmAction
sc
-
-
Constructor Summary
Constructors Constructor Description FullscreenToggleAction()Constructs a newFullscreenToggleAction.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactionPerformed(java.awt.event.ActionEvent e)voidinitial()To call if this action must be initially run at JOSM startup.protected voidsafeSetMode()protected voidsetMode()-
Methods inherited from class org.openstreetmap.josm.actions.ToggleAction
addButtonModel, isSelected, notifySelectedState, removeButtonModel, setSelected, toggleSelectedState
-
Methods inherited from class org.openstreetmap.josm.actions.JosmAction
buildActiveLayerChangeAdapter, buildLayerChangeAdapter, checkAndConfirmOutlyingOperation, destroy, getLayerManager, getShortcut, initEnabledState, installAdapters, listenToLayerChange, listenToSelectionChange, setHelpId, setToolbarId, setTooltip, updateEnabledState, updateEnabledState, updateEnabledStateOnCurrentSelection, updateEnabledStateOnCurrentSelection, updateEnabledStateOnModifiableSelection, waitFuture
-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Field Detail
-
gd
private final transient java.awt.GraphicsDevice gd
-
prevBounds
private java.awt.Rectangle prevBounds
-
-
Constructor Detail
-
FullscreenToggleAction
public FullscreenToggleAction()
Constructs a newFullscreenToggleAction.
-
-
Method Detail
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
-
initial
public void initial()
To call if this action must be initially run at JOSM startup.
-
safeSetMode
protected void safeSetMode()
-
setMode
protected void setMode()
-
-