de.cau.cs.kieler.core.model.gmf.effects
Class PanningEffect

java.lang.Object
  extended by de.cau.cs.kieler.core.kivi.AbstractEffect
      extended by de.cau.cs.kieler.core.model.gmf.effects.PanningEffect
All Implemented Interfaces:
IEffect

public class PanningEffect
extends AbstractEffect

This effect scrolls to the given eobject or coordinates.

Rating red

Constructor Summary
PanningEffect(DiagramDocumentEditor editor, EObject target, boolean animate, boolean zoom, double zoomLevel)
          Constructor of the PanningEffect with EObject as scrolling target.
PanningEffect(DiagramDocumentEditor editor, Point coordinates, boolean animate, boolean zoom, double zoomLevel)
          Constructor of the PanningEffect with coordinates as scrolling target.
 
Method Summary
 void execute()
          Execute the effect.
 
Methods inherited from class de.cau.cs.kieler.core.kivi.AbstractEffect
isMergeable, merge, schedule, scheduleUndo, toString, undo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PanningEffect

public PanningEffect(DiagramDocumentEditor editor,
                     Point coordinates,
                     boolean animate,
                     boolean zoom,
                     double zoomLevel)
Constructor of the PanningEffect with coordinates as scrolling target.

Parameters:
editor - the editor
coordinates - the coordinates to be scrolled to
animate - true if scrolling should be animated
zoom - true if zooming should be done
zoomLevel - the desired zoom level (i.e. 1.5 = 150%)

PanningEffect

public PanningEffect(DiagramDocumentEditor editor,
                     EObject target,
                     boolean animate,
                     boolean zoom,
                     double zoomLevel)
Constructor of the PanningEffect with EObject as scrolling target.

Parameters:
editor - the editor
target - the coordinates to be scrolled to
animate - true if scrolling should be animated
zoom - true if zooming should be done
zoomLevel - the desired zoom level (i.e. 1.5 = 150%)
Method Detail

execute

public void execute()
Execute the effect.