All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edu.uci.ics.jung.algorithms.layout.StaticLayout Maven / Gradle / Ivy

There is a newer version: 2.1.1
Show newest version
/*
 * 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