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

com.github.highcharts4gwt.model.highcharts.option.mock.seriespolygon.MockPoint Maven / Gradle / Ivy

There is a newer version: 0.0.7
Show newest version

package com.github.highcharts4gwt.model.highcharts.option.mock.seriespolygon;

import com.github.highcharts4gwt.model.highcharts.option.api.seriespolygon.Point;
import com.github.highcharts4gwt.model.highcharts.option.api.seriespolygon.point.PointClickHandler;
import com.github.highcharts4gwt.model.highcharts.option.api.seriespolygon.point.PointMouseOutHandler;
import com.github.highcharts4gwt.model.highcharts.option.api.seriespolygon.point.PointMouseOverHandler;
import com.github.highcharts4gwt.model.highcharts.option.api.seriespolygon.point.PointRemoveHandler;
import com.github.highcharts4gwt.model.highcharts.option.api.seriespolygon.point.PointSelectHandler;
import com.github.highcharts4gwt.model.highcharts.option.api.seriespolygon.point.PointUnselectHandler;
import com.github.highcharts4gwt.model.highcharts.option.api.seriespolygon.point.PointUpdateHandler;


/**
 * Properties for each single point
 * 
 */
public class MockPoint
    implements Point
{

    private String genericField;
    private String functionAsString;

    public void addPointClickHandler(PointClickHandler handler) {
    }

    public void addPointMouseOutHandler(PointMouseOutHandler handler) {
    }

    public void addPointMouseOverHandler(PointMouseOverHandler handler) {
    }

    public void addPointRemoveHandler(PointRemoveHandler handler) {
    }

    public void addPointSelectHandler(PointSelectHandler handler) {
    }

    public void addPointUnselectHandler(PointUnselectHandler handler) {
    }

    public void addPointUpdateHandler(PointUpdateHandler handler) {
    }

    public String getFieldAsJsonObject(String fieldName) {
        return genericField;
    }

    public MockPoint setFieldAsJsonObject(String fieldName, String fieldValueAsJsonObject) {
        this.genericField = fieldValueAsJsonObject;
        return this;
    }

    public String getFunctionAsString(String fieldName) {
        return functionAsString;
    }

    public MockPoint setFunctionAsString(String fieldName, String functionAsString) {
        this.functionAsString = functionAsString;
        return this;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy