com.github.abel533.echarts.RoamController Maven / Gradle / Ivy
/*
* The MIT License (MIT)
*
* Copyright (c) 2014-2015 [email protected]
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
package com.github.abel533.echarts;
import lombok.Getter;
import lombok.Setter;
import java.util.HashMap;
import java.util.Map;
/**
* 缩放漫游组件,仅对地图有效
*
* @author liuzh
*/
@Getter
@Setter
public class RoamController extends Basic implements Component {
private String fillerColor;
private String handleColor;
private Integer step;
private Map mapTypeControl;
/**
* 获取fillerColor值
*/
public String fillerColor() {
return this.fillerColor;
}
/**
* 设置fillerColor值
*
* @param fillerColor
*/
public RoamController fillerColor(String fillerColor) {
this.fillerColor = fillerColor;
return this;
}
/**
* 获取handleColor值
*/
public String handleColor() {
return this.handleColor;
}
/**
* 设置handleColor值
*
* @param handleColor
*/
public RoamController handleColor(String handleColor) {
this.handleColor = handleColor;
return this;
}
/**
* 获取step值
*/
public Integer step() {
return this.step;
}
/**
* 设置step值
*
* @param step
*/
public RoamController step(Integer step) {
this.step = step;
return this;
}
/**
* 获取mapTypeControl值
*/
public Map mapTypeControl() {
return this.mapTypeControl;
}
/**
* 设置mapTypeControl值
*
* @param key 地名
* @param value true|false
*/
public RoamController mapTypeControl(String key, Boolean value) {
if (this.mapTypeControl == null) {
this.mapTypeControl = new HashMap();
}
this.mapTypeControl.put(key, value);
return this;
}
}