diva.graph.layout
Class AbstractGlobalLayout

java.lang.Object
  extended by diva.graph.layout.AbstractGlobalLayout
All Implemented Interfaces:
GlobalLayout
Direct Known Subclasses:
ActorController.EntityLayout, GridAnnealingLayout, KielerLayout, LevelLayout, RandomLayout

public abstract class AbstractGlobalLayout
extends java.lang.Object
implements GlobalLayout

An abstract implementation of the GlobalLayout interface.

Version:
$Id: AbstractGlobalLayout.java 38798 2005-07-08 20:00:01Z cxh $
Author:
Steve Neuendorffer
Accepted Rating:
Red

Field Summary
(package private)  LayoutTarget _layoutTarget
           
 
Constructor Summary
AbstractGlobalLayout(LayoutTarget target)
          Create a new global layout that uses the given layout target.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_layoutTarget

LayoutTarget _layoutTarget
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 interface GlobalLayout

setLayoutTarget

public void setLayoutTarget(LayoutTarget target)
Set the layout target.

Specified by:
setLayoutTarget in interface GlobalLayout

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 interface GlobalLayout