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.GraphicsDevice
gd
private java.awt.Rectangle
prevBounds
-
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 void
actionPerformed(java.awt.event.ActionEvent e)
void
initial()
To call if this action must be initially run at JOSM startup.protected void
safeSetMode()
protected void
setMode()
-
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()
-
-