ides.api.plugin.layout
Interface FSALayouter


public interface FSALayouter

Interface for classes which layout FSAModels.

Author:
Lenko Grigorov

Method Summary
 java.lang.String getName()
          Retrieve the name of the layout algorithm.
 java.util.Map<java.lang.Long,java.awt.geom.Point2D.Float> layout(FSAModel model)
          Compute the locations of the states of an FSAModel.
 

Method Detail

getName

java.lang.String getName()
Retrieve the name of the layout algorithm.

Returns:
the name of the layout algorithm

layout

java.util.Map<java.lang.Long,java.awt.geom.Point2D.Float> layout(FSAModel model)
Compute the locations of the states of an FSAModel.

Parameters:
model - the FSAModel whose states should be laid out.
Returns:
a map where the key is the id of a state of the model and the value is the location of the state; the map must contain locations for all the states in the model; if there are no states in the model, return an empty map