com.gwidgets.api.leaflet.options.RendererOptions Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gwty-leaflet Show documentation
Show all versions of gwty-leaflet Show documentation
a JsInterop wrapper for the Leaflet js library
package com.gwidgets.api.leaflet.options;
import static jsinterop.annotations.JsPackage.GLOBAL;
import jsinterop.annotations.JsOverlay;
import jsinterop.annotations.JsProperty;
import jsinterop.annotations.JsType;
@JsType(isNative=true, namespace=GLOBAL, name="Object")
public class RendererOptions {
@JsProperty
private double padding;
@JsProperty
private String pane;
@JsProperty
private String attribution;
/**********************************************
*********************************************/
private RendererOptions() {
}
@JsOverlay
public final double getPadding() {
return this.padding;
}
@JsOverlay
public final String getPane() {
return this.pane;
}
@JsOverlay
public final String getAttribution() {
return this.attribution;
}
public static class Builder{
private double padding = 0.1;
private String pane = "overlayPane";
private String attribution;
public Builder(){
}
public Builder padding(double padding){
this.padding = padding;
return this;
}
public Builder pane(String pane){
this.pane = pane;
return this;
}
public Builder attribution(String attribution){this.attribution = attribution; return this;}
public RendererOptions build(){
RendererOptions rendererOptions = new RendererOptions();
rendererOptions.padding = this.padding;
rendererOptions.pane = this.pane;
rendererOptions.attribution = this.attribution;
return rendererOptions;
}
}
}