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

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

/*
 * Created on Jul 21, 2005
 *
 * Copyright (c) 2005, the JUNG Project and the Regents of the University 
 * of California
 * All rights reserved.
 *
 * This software is open-source under the BSD license; see either
 * "license.txt" or
 * http://jung.sourceforge.net/license.txt for a description.
 */
package edu.uci.ics.jung.algorithms.layout;

import java.awt.Dimension;
import java.awt.geom.Point2D;

import org.apache.commons.collections15.Transformer;

import edu.uci.ics.jung.graph.Graph;

/**
 * StaticLayout places the vertices in the locations specified by its Transformer
 * initializer. Vertex locations can be placed in a Map and then supplied to
 * this layout as follows:
 * 
            Transformer vertexLocations =
        	TransformerUtils.mapTransformer(map);
 * 
 * @author Tom Nelson - [email protected]
 *
 * @param 
 * @param 
 */
public class StaticLayout extends AbstractLayout {
	
    /**
     * Creates an instance for the specified graph, locations, and size.
     */
    public StaticLayout(Graph graph, Transformer initializer, Dimension size) {
        super(graph, initializer, size);
    }
    
    /**
     * Creates an instance for the specified graph and locations, with default size.
     */
    public StaticLayout(Graph graph, Transformer initializer) {
        super(graph, initializer);
    }
    
    /**
     * Creates an instance for the specified graph and default size; vertex locations
     * are randomly assigned.
     */
    public StaticLayout(Graph graph) {
    	super(graph);
    }
    
    /**
     * Creates an instance for the specified graph and size.
     */
    public StaticLayout(Graph graph, Dimension size) {
    	super(graph, size);
    }
    
    public void initialize() {}

	public void reset() {}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy