<commit_before>/*
 * This is part of Geomajas, a GIS framework, http://www.geomajas.org/.
 *
 * Copyright 2008-2013 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.plugin.wmsclient.client.layer.config;

import java.io.Serializable;

import org.geomajas.annotation.Api;
import org.geomajas.geometry.Coordinate;

/**
 * Basic configuration for a tile based layer.
 * 
 * @author <NAME>
 * @since 1.0.0
 */
@Api(allMethods = true)
public class WmsTileConfiguration implements Serializable {

	private static final long serialVersionUID = 100L;

	private int tileWidth;

	private int tileHeight;

	private int maximumTileLevel = Integer.MAX_VALUE;

	private Coordinate tileOrigin;

	// ------------------------------------------------------------------------
	// Constructors:
	// ------------------------------------------------------------------------

	/** Create a new instance. */
	public WmsTileConfiguration() {
	}

	/**
	 * Create a new instance using, specifying all values.
	 * 
	 * @param tileWidth
	 *            The width in pixels for image tiles.
	 * @param tileHeight
	 *            The height in pixels for image tiles.
	 * @param tileOrigin
	 *            The position in world space where tile (0,0) begins.
	 */
	public WmsTileConfiguration(int tileWidth, int tileHeight, Coordinate tileOrigin) {
		this.tileWidth = tileWidth;
		this.tileHeight = tileHeight;
		this.tileOrigin = tileOrigin;
	}

	// ------------------------------------------------------------------------
	// Getters and setters:
	// ------------------------------------------------------------------------

	/**
	 * Get the tile image width in pixels.
	 * 
	 * @return The tile width.
	 */
	public int getTileWidth() {
		return tileWidth;
	}

	/**
	 * Set the tile image width in pixels.
	 * 
	 * @param tileWidth
	 *            The tile width.
	 */
	public void setTileWidth(int tileWidth) {
		this.tileWidth = tileWidth;
	}

	/**
	 * Get the tile image height in pixels.
	 * 
	 * @return The tile height.
	 */
	public int getTileHeight() {
		return tileHeight;
	}

	/**
	 * Set the tile image height in pixels.
	 * 
	 * @param tileHeight
	 *            The tile height.
	 */
	public void setTileHeight(int tileHeight) {
		this.tileHeight = tileHeight;
	}

	/**
	 * Get the origin in world space for tile (0,0). Usually this is the lower-left corner for your layer.
	 * 
	 * @return The tile origin in world space.
	 */
	public Coordinate getTileOrigin() {
		return tileOrigin;
	}

	/**
	 * Set the origin in world space for tile (0,0). Usually this is the lower-left corner for your layer.
	 * 
	 * @param tileOrigin
	 *            The tile origin in world space.
	 */
	public void setTileOrigin(Coordinate tileOrigin) {
		this.tileOrigin = tileOrigin;
	}

	/**
	 * Get the maximum (map) tile level for this layer. If not set this is unlimited.
	 *
	 * @return the maximum tile level
	 */
	public int getMaximumTileLevel() {
		return maximumTileLevel;
	}

	/**
	 * Set the maximum (map) tile level for this layer. If not set this is unlimited.
	 *
	 * @param maximumTileLevel
	 */
	public void setMaximumTileLevel(int maximumTileLevel) {
		this.maximumTileLevel = maximumTileLevel;
	}


}<commit_msg>WMSCL-30 - Revert last commit<commit_after>/*
 * This is part of Geomajas, a GIS framework, http://www.geomajas.org/.
 *
 * Copyright 2008-2013 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.plugin.wmsclient.client.layer.config;

import java.io.Serializable;

import org.geomajas.annotation.Api;
import org.geomajas.geometry.Coordinate;

/**
 * Basic configuration for a tile based layer.
 * 
 * @author <NAME>
 * @since 1.0.0
 */
@Api(allMethods = true)
public class WmsTileConfiguration implements Serializable {

	private static final long serialVersionUID = 100L;

	private int tileWidth;

	private int tileHeight;

	private Coordinate tileOrigin;

	// ------------------------------------------------------------------------
	// Constructors:
	// ------------------------------------------------------------------------

	/** Create a new instance. */
	public WmsTileConfiguration() {
	}

	/**
	 * Create a new instance using, specifying all values.
	 * 
	 * @param tileWidth
	 *            The width in pixels for image tiles.
	 * @param tileHeight
	 *            The height in pixels for image tiles.
	 * @param tileOrigin
	 *            The position in world space where tile (0,0) begins.
	 */
	public WmsTileConfiguration(int tileWidth, int tileHeight, Coordinate tileOrigin) {
		this.tileWidth = tileWidth;
		this.tileHeight = tileHeight;
		this.tileOrigin = tileOrigin;
	}

	// ------------------------------------------------------------------------
	// Getters and setters:
	// ------------------------------------------------------------------------

	/**
	 * Get the tile image width in pixels.
	 * 
	 * @return The tile width.
	 */
	public int getTileWidth() {
		return tileWidth;
	}

	/**
	 * Set the tile image width in pixels.
	 * 
	 * @param tileWidth
	 *            The tile width.
	 */
	public void setTileWidth(int tileWidth) {
		this.tileWidth = tileWidth;
	}

	/**
	 * Get the tile image height in pixels.
	 * 
	 * @return The tile height.
	 */
	public int getTileHeight() {
		return tileHeight;
	}

	/**
	 * Set the tile image height in pixels.
	 * 
	 * @param tileHeight
	 *            The tile height.
	 */
	public void setTileHeight(int tileHeight) {
		this.tileHeight = tileHeight;
	}

	/**
	 * Get the origin in world space for tile (0,0). Usually this is the lower-left corner for your layer.
	 * 
	 * @return The tile origin in world space.
	 */
	public Coordinate getTileOrigin() {
		return tileOrigin;
	}

	/**
	 * Set the origin in world space for tile (0,0). Usually this is the lower-left corner for your layer.
	 * 
	 * @param tileOrigin
	 *            The tile origin in world space.
	 */
	public void setTileOrigin(Coordinate tileOrigin) {
		this.tileOrigin = tileOrigin;
	}
}
{'fraction_non_alphanumeric': 0.17614424410540916, 'fraction_numerical': 0.006472491909385114, 'mean_word_length': 2.091948546927108, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4447912', 'n_tokens_mistral': 1918, 'n_tokens_neox': 1725, 'n_words': 625}