de.frag.umlplugin.actions
Class FitContentAction

java.lang.Object
  extended by com.intellij.openapi.actionSystem.AnAction
      extended by de.frag.umlplugin.actions.FitContentAction
All Implemented Interfaces:
Graph2DViewConsumer

public class FitContentAction
extends com.intellij.openapi.actionSystem.AnAction
implements Graph2DViewConsumer

Action for fitting view contents.


Field Summary
 
Fields inherited from class com.intellij.openapi.actionSystem.AnAction
EMPTY_ARRAY, ourClientProperty
 
Constructor Summary
FitContentAction()
           
 
Method Summary
 void actionPerformed(com.intellij.openapi.actionSystem.AnActionEvent e)
          Fits contents.
 void setGraph2DViewProvider(Graph2DViewProvider graph2DViewProvider)
          Injects Graph2DViewProvider.
 void update(com.intellij.openapi.actionSystem.AnActionEvent e)
          Updates the state of the action.
 
Methods inherited from class com.intellij.openapi.actionSystem.AnAction
beforeActionPerformedUpdate, copyFrom, copyShortcutFrom, createTooltipText, displayTextInToolbar, getShortcutSet, getTemplatePresentation, isDefaultIcon, isEnabledInModalContext, isInInjectedContext, registerCustomShortcutSet, setDefaultIcon, setEnabledInModalContext, setInjectedContext, setShortcutSet, unregisterCustomShortcutSet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FitContentAction

public FitContentAction()
Method Detail

setGraph2DViewProvider

public void setGraph2DViewProvider(@NotNull
                                   Graph2DViewProvider graph2DViewProvider)
Injects Graph2DViewProvider.

Specified by:
setGraph2DViewProvider in interface Graph2DViewConsumer
Parameters:
graph2DViewProvider - Graph2DViewProvider to inject

update

public void update(com.intellij.openapi.actionSystem.AnActionEvent e)
Updates the state of the action.

Overrides:
update in class com.intellij.openapi.actionSystem.AnAction
Parameters:
e - Carries information on the invocation place and data available

actionPerformed

public void actionPerformed(com.intellij.openapi.actionSystem.AnActionEvent e)
Fits contents.

Specified by:
actionPerformed in class com.intellij.openapi.actionSystem.AnAction
Parameters:
e - event