annas.graph.drawing
Class LinePlacer<N,A extends ArcInterface<N>>

java.lang.Object
  extended by annas.graph.drawing.LinePlacer<N,A>
Type Parameters:
N - Node type
A - Arc type
All Implemented Interfaces:
Placer<N,A>

public class LinePlacer<N,A extends ArcInterface<N>>
extends java.lang.Object
implements Placer<N,A>

Places Nodes on a straight line

Author:
Sam Wilson

Constructor Summary
LinePlacer()
           
 
Method Summary
 java.util.Map<N,int[]> place(GraphInterface<N,A> graph, int sizeX, int sizeY)
          Takes a graph and runs an Algorithm to determine the location of each node in the Graph.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinePlacer

public LinePlacer()
Method Detail

place

public java.util.Map<N,int[]> place(GraphInterface<N,A> graph,
                                    int sizeX,
                                    int sizeY)
Takes a graph and runs an Algorithm to determine the location of each node in the Graph.

Specified by:
place in interface Placer<N,A extends ArcInterface<N>>
Parameters:
graph - Graph to draw.
Returns:
Map mapping nodes to maps of string Object pairs. Containing data used by the drawing routine.