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

com.github.abel533.echarts.RoamController Maven / Gradle / Ivy

Go to download

这是一个针对ECharts2.0版本的Java类库,实现了所有ECharts中的Json结构对应的Java对象,并且可以很方便的创建Option,Series等

There is a newer version: 3.0.0.6
Show newest version
/*
 * The MIT License (MIT)
 *
 * Copyright (c) 2014 [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 java.util.HashMap;
import java.util.Map;

/**
 * 缩放漫游组件,仅对地图有效
 *
 * @author liuzh
 */
public class RoamController extends Basic implements Component {
	private Integer width;

	/**
	 * 获取width值 
	 */
	public Integer width(){
		return this.width;
	}

	/**
	 * 设置width值 
	 * 
	 * @param width
	 */
	public RoamController width(Integer width){
		this.width = width;
		return this;
	}
	private Integer height;

	/**
	 * 获取height值 
	 */
	public Integer height(){
		return this.height;
	}

	/**
	 * 设置height值 
	 * 
	 * @param height
	 */
	public RoamController height(Integer height){
		this.height = height;
		return this;
	}
	private String fillerColor;

	/**
	 * 获取fillerColor值 
	 */
	public String fillerColor(){
		return this.fillerColor;
	}

	/**
	 * 设置fillerColor值 
	 * 
	 * @param fillerColor
	 */
	public RoamController fillerColor(String fillerColor){
		this.fillerColor = fillerColor;
		return this;
	}
	private String handleColor;

	/**
	 * 获取handleColor值 
	 */
	public String handleColor(){
		return this.handleColor;
	}

	/**
	 * 设置handleColor值 
	 * 
	 * @param handleColor
	 */
	public RoamController handleColor(String handleColor){
		this.handleColor = handleColor;
		return this;
	}
	private Integer step;

	/**
	 * 获取step值 
	 */
	public Integer step(){
		return this.step;
	}

	/**
	 * 设置step值 
	 * 
	 * @param step
	 */
	public RoamController step(Integer step){
		this.step = step;
		return this;
	}
	private Map mapTypeControl;

	/**
	 * 获取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;
    }

	/**
	 * 获取width值 
	 */
	public Integer getWidth() {
        return width;
    }

	/**
	 * 设置width值 
	 * 
	 * @param width
	 */
	public void setWidth(Integer width) {
        this.width = width;
    }

	/**
	 * 获取height值 
	 */
	public Integer getHeight() {
        return height;
    }

	/**
	 * 设置height值 
	 * 
	 * @param height
	 */
	public void setHeight(Integer height) {
        this.height = height;
    }

	/**
	 * 获取fillerColor值 
	 */
	public String getFillerColor() {
        return fillerColor;
    }

	/**
	 * 设置fillerColor值 
	 * 
	 * @param fillerColor
	 */
	public void setFillerColor(String fillerColor) {
        this.fillerColor = fillerColor;
    }

	/**
	 * 获取handleColor值 
	 */
	public String getHandleColor() {
        return handleColor;
    }

	/**
	 * 设置handleColor值 
	 * 
	 * @param handleColor
	 */
	public void setHandleColor(String handleColor) {
        this.handleColor = handleColor;
    }

	/**
	 * 获取step值 
	 */
	public Integer getStep() {
        return step;
    }

	/**
	 * 设置step值 
	 * 
	 * @param step
	 */
	public void setStep(Integer step) {
        this.step = step;
    }

	/**
	 * 获取mapTypeControl值 
	 */
	public Map getMapTypeControl() {
        return mapTypeControl;
    }

	/**
	 * 设置mapTypeControl值 
	 * 
	 * @param mapTypeControl
	 */
	public void setMapTypeControl(Map mapTypeControl) {
        this.mapTypeControl = mapTypeControl;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy