01: /*******************************************************************************
02: * Copyright (c) 2003, 2004 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Common Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/cpl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.openwfe.gpe.parts;
11:
12: import org.eclipse.draw2d.AbstractLayout;
13: import org.eclipse.draw2d.IFigure;
14: import org.eclipse.draw2d.geometry.Dimension;
15:
16: /**
17: * The dummy layout class does nothing during normal layouts. The Graph layout is
18: * entirely performed in one place: {@link GraphLayoutManager}, on the diagram's figure.
19: * During animation, THIS layout will playback the intermediate steps between the two
20: * invocations of the graph layout.
21: * @author hudsonr
22: */
23: public class DummyLayout extends AbstractLayout {
24:
25: /**
26: * @see org.eclipse.draw2d.AbstractLayout#calculatePreferredSize(org.eclipse.draw2d.IFigure, int, int)
27: */
28: protected Dimension calculatePreferredSize(IFigure container,
29: int wHint, int hHint) {
30: return null;
31: }
32:
33: /**
34: * @see org.eclipse.draw2d.LayoutManager#layout(org.eclipse.draw2d.IFigure)
35: */
36: public void layout(IFigure container) {
37: GraphAnimation.playbackState(container);
38: }
39:
40: }
|