uk.ac.kcl.cch.jb.pliny.containmentView.layout
Class GraphXYLayout

java.lang.Object
  extended byorg.eclipse.draw2d.AbstractLayout
      extended byorg.eclipse.draw2d.XYLayout
          extended byorg.eclipse.draw2d.FreeformLayout
              extended byuk.ac.kcl.cch.jb.pliny.containmentView.layout.GraphXYLayout
All Implemented Interfaces:
org.eclipse.draw2d.LayoutManager

public class GraphXYLayout
extends org.eclipse.draw2d.FreeformLayout

Subclass of XYLayout which can use the child figures actual bounds as a constraint when doing manual layout (XYLayout). This code was borrowed with only minor changes from com.realpersist.gef.schemaeditor with thanks to the original authors.

Author:
Phil Zoio

Field Summary
 
Fields inherited from class org.eclipse.draw2d.XYLayout
constraints
 
Fields inherited from class org.eclipse.draw2d.AbstractLayout
isObservingVisibility, preferredSize
 
Constructor Summary
GraphXYLayout(ContainmentSetPart diagram)
           
 
Method Summary
 Object getConstraint(org.eclipse.draw2d.IFigure child)
           
 
Methods inherited from class org.eclipse.draw2d.FreeformLayout
getOrigin
 
Methods inherited from class org.eclipse.draw2d.XYLayout
calculatePreferredSize, layout, remove, setConstraint
 
Methods inherited from class org.eclipse.draw2d.AbstractLayout
calculatePreferredSize, getBorderPreferredSize, getMinimumSize, getMinimumSize, getPreferredSize, getPreferredSize, invalidate, invalidate, isObservingVisibility, setObserveVisibility
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphXYLayout

public GraphXYLayout(ContainmentSetPart diagram)
Method Detail

getConstraint

public Object getConstraint(org.eclipse.draw2d.IFigure child)