de.frag.umlplugin.actions
Class AbstractZoomAction

java.lang.Object
  extended by com.intellij.openapi.actionSystem.AnAction
      extended by de.frag.umlplugin.actions.AbstractZoomAction
All Implemented Interfaces:
Graph2DViewConsumer
Direct Known Subclasses:
ZoomInAction, ZoomOutAction

public abstract class AbstractZoomAction
extends com.intellij.openapi.actionSystem.AnAction
implements Graph2DViewConsumer

Abstract zoom action.


Field Summary
 
Fields inherited from class com.intellij.openapi.actionSystem.AnAction
EMPTY_ARRAY, ourClientProperty
 
Constructor Summary
AbstractZoomAction()
           
 
Method Summary
 void actionPerformed(com.intellij.openapi.actionSystem.AnActionEvent e)
          Zooms into graph.
protected abstract  double getZoomFactor(Settings settings)
          Gets zoom factor.
 void setGraph2DViewProvider(Graph2DViewProvider graph2DViewProvider)
          Injects Graph2DViewProvider.
 
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, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractZoomAction

public AbstractZoomAction()
Method Detail

setGraph2DViewProvider

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

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

actionPerformed

public void actionPerformed(com.intellij.openapi.actionSystem.AnActionEvent e)
Zooms into graph.

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

getZoomFactor

protected abstract double getZoomFactor(@NotNull
                                        Settings settings)
Gets zoom factor.

Parameters:
settings - seetings
Returns:
zoom factor