Package ptolemy.vergil.basic
Class PtolemyLayoutAction
- java.lang.Object
-
- ptolemy.vergil.basic.PtolemyLayoutAction
-
- All Implemented Interfaces:
IGuiAction
public class PtolemyLayoutAction extends java.lang.Object implements IGuiAction
Trigger the Ptolemy place and route automatic dataflow layout algorithm from withing the Vergil GUI. Operate on the current model, hence the model needs to be an input in the doAction() method.The Ptolemy layout mechanism produces layouts that are not as good as the Kieler layout mechanism, so use the @see KielerLayoutMechanism.
- Since:
- Ptolemy II 10.0
- Version:
- $Id$
- Author:
- Christopher Brooks, based on KielerLayoutAction by Christian Motika and BasicGraphFrame by Steve Neuendorffer and Edward A. Lee
- Pt.AcceptedRating:
- Red (cmot)
- Pt.ProposedRating:
- Red (cmot)
-
-
Constructor Summary
Constructors Constructor Description PtolemyLayoutAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doAction(NamedObj model)
Layout the graph if the model is a CompositeActor.
-
-
-
Method Detail
-
doAction
public void doAction(NamedObj model)
Layout the graph if the model is a CompositeActor. Otherwise throw an exception. The frame type must be ActorGraphFrame. The Ptolemy layouter. is called with placing and routing.- Specified by:
doAction
in interfaceIGuiAction
- Parameters:
model
- the model
-
-