
edu.uci.ics.jung.algorithms.layout.StaticLayout Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jung-algorithms Show documentation
Show all versions of jung-algorithms Show documentation
Algorithms for the JUNG project
/*
* Created on Jul 21, 2005
*
* Copyright (c) 2005, The JUNG Authors
*
* All rights reserved.
*
* This software is open-source under the BSD license; see either
* "license.txt" or
* https://github.com/jrtom/jung/blob/master/LICENSE for a description.
*/
package edu.uci.ics.jung.algorithms.layout;
import java.awt.Dimension;
import java.awt.geom.Point2D;
import com.google.common.base.Function;
import edu.uci.ics.jung.graph.Graph;
/**
* StaticLayout places the vertices in the locations specified by its initializer,
* and has no other behavior.
* Vertex locations can be placed in a {@code Map} and then supplied to
* this layout as follows: {@code Function vertexLocations = Functions.forMap(map);}
* @author Tom Nelson - [email protected]
*/
public class StaticLayout extends AbstractLayout {
public StaticLayout(Graph graph, Function initializer, Dimension size) {
super(graph, initializer, size);
}
public StaticLayout(Graph graph, Function initializer) {
super(graph, initializer);
}
public StaticLayout(Graph graph) {
super(graph);
}
public StaticLayout(Graph graph, Dimension size) {
super(graph, size);
}
public void initialize() {}
public void reset() {}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy