de.cau.cs.kieler.kiml.gmf
Class GmfLayoutInspector

java.lang.Object
  extended by de.cau.cs.kieler.kiml.gmf.GmfLayoutInspector
All Implemented Interfaces:
ILayoutInspector

public class GmfLayoutInspector
extends Object
implements ILayoutInspector

Layout inspector implementation for the GMF.

Rating red

Constructor Summary
GmfLayoutInspector(org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart editPart)
          Creates a layout inspector for a GMF graphical edit part.
 
Method Summary
static org.eclipse.gmf.runtime.diagram.ui.editparts.DiagramEditPart getDiagramEditPart(EditPart editPart)
          Finds the diagram edit part of an edit part.
 IFigure getDrawingLayer()
          Returns a layer figure for the associated diagram that can be used to draw additional information.
 TransactionalEditingDomain getEditingDomain()
          Returns a transactional editing domain in which to perform model changes.
 EObject getFocusModel()
          Returns the domain model element that is associated with this inspector.
 EditPart getFocusPart()
          Returns the edit part that is associated with this layout inspector.
 ZoomManager getZoomManager()
          Returns a zoom manager for the associated diagram.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GmfLayoutInspector

public GmfLayoutInspector(org.eclipse.gmf.runtime.diagram.ui.editparts.IGraphicalEditPart editPart)
Creates a layout inspector for a GMF graphical edit part.

Parameters:
editPart - a graphical edit part
Method Detail

getDiagramEditPart

public static org.eclipse.gmf.runtime.diagram.ui.editparts.DiagramEditPart getDiagramEditPart(EditPart editPart)
Finds the diagram edit part of an edit part.

Parameters:
editPart - an edit part
Returns:
the diagram edit part, or null if there is no containing diagram edit part

getFocusPart

public EditPart getFocusPart()
Returns the edit part that is associated with this layout inspector.

Specified by:
getFocusPart in interface ILayoutInspector
Returns:
the associated edit part

getFocusModel

public EObject getFocusModel()
Returns the domain model element that is associated with this inspector.

Specified by:
getFocusModel in interface ILayoutInspector
Returns:
the associated domain model element

getEditingDomain

public TransactionalEditingDomain getEditingDomain()
Returns a transactional editing domain in which to perform model changes.

Specified by:
getEditingDomain in interface ILayoutInspector
Returns:
an editing domain for model changes

getDrawingLayer

public IFigure getDrawingLayer()
Returns a layer figure for the associated diagram that can be used to draw additional information.

Specified by:
getDrawingLayer in interface ILayoutInspector
Returns:
a drawing layer

getZoomManager

public ZoomManager getZoomManager()
Returns a zoom manager for the associated diagram.

Specified by:
getZoomManager in interface ILayoutInspector
Returns:
a zoom manager