de.cau.cs.kieler.core.model.gmf.effects
Class PanningEffect
java.lang.Object
de.cau.cs.kieler.core.kivi.AbstractEffect
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

Method Summary |
void |
execute()
Execute the effect. |
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 editorcoordinates
- the coordinates to be scrolled toanimate
- true if scrolling should be animatedzoom
- true if zooming should be donezoomLevel
- 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 editortarget
- the coordinates to be scrolled toanimate
- true if scrolling should be animatedzoom
- true if zooming should be donezoomLevel
- the desired zoom level (i.e. 1.5 = 150%)
execute
public void execute()
- Execute the effect.