Initial opendaylight infrastructure commit!!
[controller.git] / third-party / net.sf.jung2 / src / main / java / edu / uci / ics / jung / algorithms / layout / StaticLayout.java
1 /*
2  * Created on Jul 21, 2005
3  *
4  * Copyright (c) 2005, the JUNG Project and the Regents of the University 
5  * of California
6  * All rights reserved.
7  *
8  * This software is open-source under the BSD license; see either
9  * "license.txt" or
10  * http://jung.sourceforge.net/license.txt for a description.
11  */
12 package edu.uci.ics.jung.algorithms.layout;
13
14 import java.awt.Dimension;
15 import java.awt.geom.Point2D;
16
17 import org.apache.commons.collections15.Transformer;
18
19 import edu.uci.ics.jung.graph.Graph;
20
21 /**
22  * StaticLayout places the vertices in the locations specified by its Transformer<V,Point2D>
23  * initializer. Vertex locations can be placed in a Map<V,Point2D> and then supplied to
24  * this layout as follows:
25  * <code>
26             Transformer<V,Point2D> vertexLocations =
27                 TransformerUtils.mapTransformer(map);
28  * </code>
29  * @author Tom Nelson - tomnelson@dev.java.net
30  *
31  * @param <V>
32  * @param <E>
33  */
34 public class StaticLayout<V, E> extends AbstractLayout<V,E> {
35         
36     /**
37      * Creates an instance for the specified graph, locations, and size.
38      */
39     public StaticLayout(Graph<V,E> graph, Transformer<V,Point2D> initializer, Dimension size) {
40         super(graph, initializer, size);
41     }
42     
43     /**
44      * Creates an instance for the specified graph and locations, with default size.
45      */
46     public StaticLayout(Graph<V,E> graph, Transformer<V,Point2D> initializer) {
47         super(graph, initializer);
48     }
49     
50     /**
51      * Creates an instance for the specified graph and default size; vertex locations
52      * are randomly assigned.
53      */
54     public StaticLayout(Graph<V,E> graph) {
55         super(graph);
56     }
57     
58     /**
59      * Creates an instance for the specified graph and size.
60      */
61     public StaticLayout(Graph<V,E> graph, Dimension size) {
62         super(graph, size);
63     }
64     
65     public void initialize() {}
66
67         public void reset() {}
68
69 }