All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.gwidgets.api.leaflet.options.RendererOptions Maven / Gradle / Ivy

There is a newer version: 1.2.1
Show newest version
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;
		}
		
	}
	
	
	
	

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy