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

org.geomajas.configuration.client.ScaleConfigurationInfo Maven / Gradle / Ivy

There is a newer version: 1.18.5
Show newest version
/*
 * This is part of Geomajas, a GIS framework, http://www.geomajas.org/.
 *
 * Copyright 2008-2015 Geosparc nv, http://www.geosparc.com/, Belgium.
 *
 * The program is available in open source according to the GNU Affero
 * General Public License. All contributions in this program are covered
 * by the Geomajas Contributors License Agreement. For full licensing
 * details, see LICENSE.txt in the project root.
 */
package org.geomajas.configuration.client;

import java.util.ArrayList;
import java.util.List;

import org.geomajas.annotation.Api;
import org.geomajas.configuration.IsInfo;

/**
 * Scale configuration of the map. The map needs a maximum scale (minimum is determined by maximum bounds) and
 * optionally a set of zoom levels.
 * 
 * @author Jan De Moerloose
 * @since 1.7.0
 */
@Api(allMethods = true)
public class ScaleConfigurationInfo implements IsInfo {

	private static final long serialVersionUID = 170L;

	private ScaleInfo maximumScale = new ScaleInfo(ScaleInfo.MAXIMUM_PIXEL_PER_UNIT);

	private List zoomLevels = new ArrayList();

	
	/**
	 * Returns the maximum scale of the map.
	 * 
	 * @return the maximum scale of the map
	 */
	public ScaleInfo getMaximumScale() {
		return maximumScale;
	}

	/**
	 * Sets the maximum scale of the map.
	 * 
	 * @param maximumScale
	 *            the maximum scale of the map
	 */
	public void setMaximumScale(ScaleInfo maximumScale) {
		this.maximumScale = maximumScale;
	}

	/**
	 * Returns a list of predefined zoom levels allowed by the map.
	 * 
	 * @return list of levels (scales)
	 */
	public List getZoomLevels() {
		return zoomLevels;
	}

	/**
	 * Sets a list of predefined zoom levels allowed by the map.
	 * 
	 * @param zoomLevels
	 *            list of levels (scales)
	 */
	public void setZoomLevels(List zoomLevels) {
		this.zoomLevels = zoomLevels;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy