Package diva.graph.layout
Class AbstractGlobalLayout
- java.lang.Object
-
- diva.graph.layout.AbstractGlobalLayout
-
- All Implemented Interfaces:
GlobalLayout
- Direct Known Subclasses:
ActorViewerGraphController.EntityLayout
,GridAnnealingLayout
,KielerLayout
,LevelLayout
,RandomLayout
public abstract class AbstractGlobalLayout extends java.lang.Object implements GlobalLayout
An abstract implementation of the GlobalLayout interface.- Version:
- $Id$
- Author:
- Steve Neuendorffer
- Pt.AcceptedRating:
- Red
-
-
Constructor Summary
Constructors Constructor Description AbstractGlobalLayout(LayoutTarget target)
Create a new global layout that uses the given layout target.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description LayoutTarget
getLayoutTarget()
Return the layout target.abstract void
layout(java.lang.Object composite)
Layout the graph model in the viewport specified by the layout target environment.void
setLayoutTarget(LayoutTarget target)
Set the layout target.
-
-
-
Constructor Detail
-
AbstractGlobalLayout
public AbstractGlobalLayout(LayoutTarget target)
Create a new global layout that uses the given layout target.
-
-
Method Detail
-
getLayoutTarget
public LayoutTarget getLayoutTarget()
Return the layout target.- Specified by:
getLayoutTarget
in interfaceGlobalLayout
-
setLayoutTarget
public void setLayoutTarget(LayoutTarget target)
Set the layout target.- Specified by:
setLayoutTarget
in interfaceGlobalLayout
-
layout
public abstract void layout(java.lang.Object composite)
Layout the graph model in the viewport specified by the layout target environment.- Specified by:
layout
in interfaceGlobalLayout
-
-