com.google.gwt.maps.client.layers.FusionTablesLayerOptions Maven / Gradle / Ivy
package com.google.gwt.maps.client.layers;
/*
* #%L
* GWT Maps API V3 - Core API
* %%
* Copyright (C) 2011 - 2012 GWT Maps API V3
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* #L%
*/
import com.google.gwt.core.client.JavaScriptObject;
import com.google.gwt.core.client.JsArray;
import com.google.gwt.maps.client.MapImpl;
import com.google.gwt.maps.client.MapWidget;
/**
* This object defines the properties that can be set on a FusionTablesLayer object.
*
* See
* FusionTablesLayerOptions API Doc
*/
public class FusionTablesLayerOptions extends JavaScriptObject {
/**
* use newInstance();
*/
protected FusionTablesLayerOptions() {
}
/**
* creates - This object defines the properties that can be set on a FusionTablesLayer object.
*/
public static final FusionTablesLayerOptions newInstance() {
return JavaScriptObject.createObject().cast();
}
/**
* sets If true, the layer receives mouse events. Default value is true.
*
* @param clickable
*/
public final native void setClickable(boolean clickable) /*-{
this.clickable = clickable;
}-*/;
/**
* gets If true, the layer receives mouse events. Default value is true.
*/
public final native boolean getClickable() /*-{
return this.clickable;
}-*/;
/**
* sets Options which define the appearance of the layer as a heatmap.
*
* @param heatmap
*/
public final native void setHeatmap(FusionTableHeatmap heatmap) /*-{
this.heatmap = heatmap;
}-*/;
/**
* gets Options which define the appearance of the layer as a heatmap.
*/
public final native FusionTableHeatmap getHeatmap() /*-{
return this.heatmap;
}-*/;
/**
* Renders the layer on the specified map. If map is set to null, the layer will be removed.
*
* @param mapWidget
*/
public final void setMap(MapWidget mapWidget) {
if (mapWidget == null) {
setMapImpl(null);
} else {
setMapImpl(mapWidget.getJso());
}
}
private final native void setMapImpl(MapImpl map) /*-{
this.map = map;
}-*/;
/**
* Returns the map on which this layer is displayed.
*/
public final MapWidget getMap() {
return MapWidget.newInstance(getMapImpl());
}
private final native MapImpl getMapImpl() /*-{
return this.map;
}-*/;
/**
* sets Options defining the data to display.
*
* @param query
*/
public final native void setQuery(FusionTablesQuery query) /*-{
this.query = query;
}-*/;
/**
* gets Options defining the data to display.
*/
public final native FusionTablesQuery getQuery() /*-{
return this.query;
}-*/;
/**
* sets An array of up to 5 style specifications, which control the appearance of features within the layer.
*
* @param styles
*/
public final native void setStyles(JsArray styles) /*-{
this.styles = styles;
}-*/;
/**
* gets An array of up to 5 style specifications, which control the appearance of features within the layer.
*/
public final native JsArray getStyles() /*-{
return this.styles;
}-*/;
/**
* sets Suppress the rendering of info windows when layer features are clicked.
*
* @param suppressInfoWindows
*/
public final native void setSuppressInfoWindows(boolean suppressInfoWindows) /*-{
this.suppressInfoWindows = suppressInfoWindows;
}-*/;
/**
* gets Suppress the rendering of info windows when layer features are clicked.
*/
public final native boolean getSuppressInfoWindows() /*-{
return this.suppressInfoWindows;
}-*/;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy