diff options
author | cletavernie | 2013-02-04 09:53:14 +0000 |
---|---|---|
committer | cletavernie | 2013-02-04 09:53:14 +0000 |
commit | b4f92c06b153f91fbbbfa172e883be364aa55e2b (patch) | |
tree | 5111ba4bb111f6dc7f82764dc311ce6114eaa9cb /incoming/org.eclipse.papyrus.uml.diagram.timing/custom-src/org/eclipse/papyrus/uml/diagram/timing/custom/layouts/TimeRulerLayout.java | |
parent | 3d5e6004d9b6977504cf8b1bf8d45f76659e9043 (diff) | |
download | org.eclipse.papyrus-b4f92c06b153f91fbbbfa172e883be364aa55e2b.tar.gz org.eclipse.papyrus-b4f92c06b153f91fbbbfa172e883be364aa55e2b.tar.xz org.eclipse.papyrus-b4f92c06b153f91fbbbfa172e883be364aa55e2b.zip |
397389: [Timing Diagram] Papyrus shall support UML2 timing diagram
https://bugs.eclipse.org/bugs/show_bug.cgi?id=397389
Move oep.uml.diagram.timing to its final SVN location
Diffstat (limited to 'incoming/org.eclipse.papyrus.uml.diagram.timing/custom-src/org/eclipse/papyrus/uml/diagram/timing/custom/layouts/TimeRulerLayout.java')
-rw-r--r-- | incoming/org.eclipse.papyrus.uml.diagram.timing/custom-src/org/eclipse/papyrus/uml/diagram/timing/custom/layouts/TimeRulerLayout.java | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/incoming/org.eclipse.papyrus.uml.diagram.timing/custom-src/org/eclipse/papyrus/uml/diagram/timing/custom/layouts/TimeRulerLayout.java b/incoming/org.eclipse.papyrus.uml.diagram.timing/custom-src/org/eclipse/papyrus/uml/diagram/timing/custom/layouts/TimeRulerLayout.java deleted file mode 100644 index ef14640691a..00000000000 --- a/incoming/org.eclipse.papyrus.uml.diagram.timing/custom-src/org/eclipse/papyrus/uml/diagram/timing/custom/layouts/TimeRulerLayout.java +++ /dev/null @@ -1,44 +0,0 @@ -/*******************************************************************************
- * Copyright (c) 2012 CEA LIST.
- *
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *******************************************************************************/
-package org.eclipse.papyrus.uml.diagram.timing.custom.layouts;
-
-import java.util.List;
-
-import org.eclipse.draw2d.AbstractLayout;
-import org.eclipse.draw2d.IFigure;
-import org.eclipse.draw2d.geometry.Dimension;
-import org.eclipse.draw2d.geometry.Rectangle;
-
-public class TimeRulerLayout extends AbstractLayout {
-
- public void layout(final IFigure container) {
- // reset the layout so that the BorderItemsAwareFreeFormLayer fills its parent FreeformViewport
- // if (!(container.getParent().getLayoutManager() instanceof FillLayout)) {
- // container.getParent().setLayoutManager(new FillLayout());
- // }
-
- // The grand-parent is a FreeformViewport, which lets its child expand outside of its clientArea, and
- // constantly resets the bounds (in org.eclipse.draw2d.FreeformViewport#readjustScrollBars)
- // So, layout based on the grand-parent's clientArea.
- final Rectangle clientArea = container.getParent().getClientArea();
- @SuppressWarnings("unchecked")
- final List<IFigure> children = container.getChildren();
- for(int i = 0; i < children.size(); i++) {
- final IFigure child = children.get(i);
- child.setBounds(clientArea);
- }
-
- }
-
- @Override
- protected Dimension calculatePreferredSize(final IFigure container, final int wHint, final int hHint) {
- return new Dimension(-1, -1);
- }
-
-}
|