ptolemy.vergil.actor
Class ActorController.EntityLayout

java.lang.Object
  extended by diva.graph.layout.AbstractGlobalLayout
      extended by ptolemy.vergil.actor.ActorController.EntityLayout
All Implemented Interfaces:
GlobalLayout
Enclosing class:
ActorController

public class ActorController.EntityLayout
extends AbstractGlobalLayout

This layout algorithm is responsible for laying out the ports within an entity.


Constructor Summary
ActorController.EntityLayout()
          Create a new layout manager.
 
Method Summary
private  void _placePortFigures(CompositeFigure figure, java.util.List portList, int direction)
           
private  void _reOrderPorts(java.util.Vector ports)
           
 void layout(java.lang.Object node)
          Layout the ports of the specified node.
 
Methods inherited from class diva.graph.layout.AbstractGlobalLayout
getLayoutTarget, setLayoutTarget
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActorController.EntityLayout

public ActorController.EntityLayout()
Create a new layout manager.

Method Detail

layout

public void layout(java.lang.Object node)
Layout the ports of the specified node.

Specified by:
layout in interface GlobalLayout
Specified by:
layout in class AbstractGlobalLayout
Parameters:
node - The node, which is assumed to be an entity.

_reOrderPorts

private void _reOrderPorts(java.util.Vector ports)

_placePortFigures

private void _placePortFigures(CompositeFigure figure,
                               java.util.List portList,
                               int direction)