Class KielerLayoutAction
- java.lang.Object
-
- ptolemy.vergil.basic.layout.kieler.KielerLayoutAction
-
- All Implemented Interfaces:
Filter
,IGuiAction
public class KielerLayoutAction extends java.lang.Object implements IGuiAction, Filter
Trigger the KIELER place and route automatic dataflow layout algorithm from within the Vergil GUI. Operate on the current model, hence the model needs to be an input in the doAction() method.This action implements the
Filter
interface to check whether a given model is supported.- Since:
- Ptolemy II 10.0
- Version:
- $Id$
- Author:
- Christian Motika
- Pt.AcceptedRating:
- Red (cmot)
- Pt.ProposedRating:
- Red (cmot)
-
-
Constructor Summary
Constructors Constructor Description KielerLayoutAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accept(java.lang.Object o)
Check whether the given model is supported by this layout action.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 KIELER layouter is called with placing and routing. The routing uses bend point annotations.- Specified by:
doAction
in interfaceIGuiAction
- Parameters:
model
- the model
-
-