com.jwebmp.plugins.c3.options.C3SizeOptions Maven / Gradle / Ivy
Show all versions of jwebmp-c3 Show documentation
/*
* Copyright (C) 2017 GedMarc
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
package com.jwebmp.plugins.c3.options;
import com.jwebmp.core.htmlbuilder.javascript.JavaScriptPart;
/**
* All the options for the tooltip library
*
*
* @author GedMarc
* @version 1.0
*
*
* @since Mar 9, 2016
*/
public class C3SizeOptions
extends JavaScriptPart
{
private Integer width;
private Integer height;
public C3SizeOptions()
{
//Nothing Needed
}
/**
* The desired width of the chart element.
*
* If this option is not specified, the width of the chart will be calculated by the size of the parent element it's appended to.
*
* @return
*/
public Integer getWidth()
{
return width;
}
/**
* The desired width of the chart element.
*
* If this option is not specified, the width of the chart will be calculated by the size of the parent element it's appended to.
*
* @param width
*/
public void setWidth(Integer width)
{
this.width = width;
}
/**
* The desired height of the chart element.
*
* If this option is not specified, the height of the chart will be calculated by the size of the parent element it's appended to.
*
* @return
*/
public Integer getHeight()
{
return height;
}
/**
* The desired height of the chart element.
*
* If this option is not specified, the height of the chart will be calculated by the size of the parent element it's appended to.
*
* @param height
*/
public void setHeight(Integer height)
{
this.height = height;
}
}