<commit_before>/*
 * This file is part of Geomajas, a component framework for building
 * rich Internet applications (RIA) with sophisticated capabilities for the
 * display, analysis and management of geographic information.
 * It is a building block that allows developers to add maps
 * and other geographic data capabilities to their web applications.
 *
 * Copyright 2008-2010 Geosparc, http://www.geosparc.com, Belgium
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package org.geomajas.layer.tile;

import java.util.List;

import org.geomajas.global.Api;
import org.geomajas.layer.feature.InternalFeature;
import org.geomajas.layer.tile.VectorTile.VectorTileContentType;

import com.vividsolutions.jts.geom.Envelope;

/**
 * <p>
 * General definition for a tile that is used internally on the server-side. When a tile needs to be send to the client,
 * it must first be converted to a DTO tile. A tile is defined by creating a rectangular grid in map coordinates based
 * on the maximum extent of the layer. This requires a transformation of this maximum extent from layer coordinates to
 * map coordinates.
 * </p>
 * 
 * @author <NAME>
 * @author <NAME>
 * @since 1.6.0
 */
@Api(allMethods = true)
public interface InternalTile {

	/**
	 * Return the rendering method used.
	 *
	 * @return content type
	 */
	VectorTileContentType getContentType();

	/**
	 * Set the rendering method used.
	 *
	 * @param contentType content type
	 */
	void setContentType(VectorTileContentType contentType);

	/**
	 * Return the rendering of a tile's features. Depending on the rendering method used, the returned string will
	 * contain an entire rendering (SVG/VML) or a URL.
	 *
	 * @return rendered features as SVG/VML or URL
	 */
	String getFeatureContent();

	/**
	 * Set the rendered content of a tile's features. Depending on the rendering method used, a different content type
	 * will be stored. Basically, the returned string will contain a string rendering (SVG/VML) or a URL.
	 *
	 * @param featureContent
	 *            The new value for the actual rendered feature content of this tile.
	 * @since 1.8.0
	 */
	void setFeatureContent(String featureContent);

	/**
	 * Return the rendering of a tile's labels. Depending on the rendering method used, the returned string will contain
	 * an entire rendering (SVG/VML) or a URL.
	 *
	 * @return rendered labels as SVG/VML or URL
	 */
	String getLabelContent();

	/**
	 * Set the rendered content of a tile's labels. Depending on the rendering method used, a different content type
	 * will be stored. Basically, the returned string will contain a string rendering (SVG/VML) or a URL.
	 *
	 * @param labelContent
	 *            The new value for the actual rendered label content of this tile.
	 */
	void setLabelContent(String labelContent);

	/**
	 * Get bounding box for the tile (in map coordinates).
	 *
	 * @return bounding box<commit_msg>GBE-67 add setLabelContent method, checkstyle fix<commit_after>/*
 * This file is part of Geomajas, a component framework for building
 * rich Internet applications (RIA) with sophisticated capabilities for the
 * display, analysis and management of geographic information.
 * It is a building block that allows developers to add maps
 * and other geographic data capabilities to their web applications.
 *
 * Copyright 2008-2010 Geosparc, http://www.geosparc.com, Belgium
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package org.geomajas.layer.tile;

import java.util.List;

import org.geomajas.global.Api;
import org.geomajas.layer.feature.InternalFeature;
import org.geomajas.layer.tile.VectorTile.VectorTileContentType;

import com.vividsolutions.jts.geom.Envelope;

/**
 * <p>
 * General definition for a tile that is used internally on the server-side. When a tile needs to be send to the client,
 * it must first be converted to a DTO tile. A tile is defined by creating a rectangular grid in map coordinates based
 * on the maximum extent of the layer. This requires a transformation of this maximum extent from layer coordinates to
 * map coordinates.
 * </p>
 * 
 * @author <NAME>
 * @author <NAME>
 * @since 1.6.0
 */
@Api(allMethods = true)
public interface InternalTile {

	/**
	 * Return the rendering method used.
	 *
	 * @return content type
	 */
	VectorTileContentType getContentType();

	/**
	 * Set the rendering method used.
	 *
	 * @param contentType content type
	 */
	void setContentType(VectorTileContentType contentType);

	/**
	 * Return the rendering of a tile's features. Depending on the rendering method used, the returned string will
	 * contain an entire rendering (SVG/VML) or a URL.
	 *
	 * @return rendered features as SVG/VML or URL
	 */
	String getFeatureContent();

	/**
	 * Set the rendered content of a tile's features. Depending on the rendering method used, a different content type
	 * will be stored. Basically, the returned string will contain a string rendering (SVG/VML) or a URL.
	 *
	 * @param featureContent
	 *            The new value for the actual rendered feature content of this tile.
	 * @since 1.8.0
	 */
	void setFeatureContent(String featureContent);

	/**
	 * Return the rendering of a tile's labels. Depending on the rendering method used, the returned string will contain
	 * an entire rendering (SVG/VML) or a URL.
	 *
	 * @return rendered labels as SVG/VML or URL
	 */
	String getLabelContent();

	/**
	 * Set the rendered content of a tile's labels. Depending on the rendering method used, a different content type
	 * will be stored. Basically, the returned string will contain a string rendering (SVG/VML) or a URL.
	 *
	 * @param labelContent
	 *            The new value for the actual rendered label content of this tile.
	 * @since 1.8.0
	 */
	void setLabelContent(String labelContent);

	/**
	 * Get bounding box for the tile (in map coordinates).
	 *
	 * @return bounding box
{'fraction_non_alphanumeric': 0.07433478811769675, 'fraction_numerical': 0.004927495424468535, 'mean_word_length': 3.612987012987013, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '3403061', 'n_tokens_mistral': 1967, 'n_tokens_neox': 1817, 'n_words': 908}