<commit_before>/*
 * This is part of Geomajas, a GIS framework, http://www.geomajas.org/.
 *
 * Copyright 2008-2012 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.puregwt.client.gfx;

import org.geomajas.annotation.FutureApi;
import org.vaadin.gwtgraphics.client.VectorObjectContainer;

/**
 * Base container definition for vector object types. This interface is used for rendering vector layers, screen space
 * objects or world space objects.
 * 
 * @author <NAME>
 * @since 1.0.0
 */
@FutureApi(allMethods = true)
public interface VectorContainer extends VectorObjectContainer {

	/**
	 * Apply a translation onto the container. This will also translate everything in it.
	 * 
	 * @param deltaX
	 *            The translation factor along the X-axis.
	 * @param deltaY
	 *            The translation factor along the X-axis.
	 */
	void setTranslation(double deltaX, double deltaY);

	/**
	 * Apply a scaling factor onto the container. This scaling factor will apply on all children.
	 * 
	 * @param scaleX
	 *            The scaling factor along the X-axis.
	 * @param scaleY
	 *            The scaling factor along the X-axis.
	 */
	void setScale(double scaleX, double scaleY);

	/**
	 * Determine container visibility.
	 * 
	 * @param visible
	 *            Set whether or not this container and all it's children should be visible or not.
	 */
	void setVisible(boolean visible);

	/**
	 * Get whether or not this container and all it's children are visible.
	 * 
	 * @return Whether or not this container and all it's children are visible.
	 */
	boolean isVisible();
}<commit_msg>Pure GWT: update VectorContainer definition. Make sure it is a widget.<commit_after>/*
 * This is part of Geomajas, a GIS framework, http://www.geomajas.org/.
 *
 * Copyright 2008-2012 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.puregwt.client.gfx;

import org.geomajas.annotation.FutureApi;
import org.vaadin.gwtgraphics.client.Transformable;
import org.vaadin.gwtgraphics.client.VectorObjectContainer;

import com.google.gwt.user.client.ui.IsWidget;

/**
 * Base container definition for vector object types. This interface is used for rendering vector layers, screen space
 * objects or world space objects.
 * 
 * @author <NAME>
 * @since 1.0.0
 */
@FutureApi(allMethods = true)
public interface VectorContainer extends VectorObjectContainer, Transformable, IsWidget {

	/**
	 * Determine container visibility.
	 * 
	 * @param visible
	 *            Set whether or not this container and all it's children should be visible or not.
	 */
	void setVisible(boolean visible);

	/**
	 * Get whether or not this container and all it's children are visible.
	 * 
	 * @return Whether or not this container and all it's children are visible.
	 */
	boolean isVisible();
}
{'fraction_non_alphanumeric': 0.0847305389221557, 'fraction_numerical': 0.006586826347305389, 'mean_word_length': 3.4310344827586206, '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': '2684333', 'n_tokens_mistral': 967, 'n_tokens_neox': 879, 'n_words': 370}