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

com.pingunaut.wicket.chartjs.options.PolarAreaChartOptions Maven / Gradle / Ivy

Go to download

chart.js for wicket projects. simple but nice looking charts with html5/css/js

There is a newer version: 7.0.1
Show newest version
/*******************************************************************************
 * Copyright 2013 Martin Spielmann
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *   http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 ******************************************************************************/
package com.pingunaut.wicket.chartjs.options;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.pingunaut.wicket.chartjs.chart.impl.PolarArea;

/**
 * The Class PolarAreaChartOptions provides options, that are available for.
 * 
 * {@link PolarArea}.
 * 
 * @author Martin Spielmann
 */
@JsonInclude(Include.NON_NULL)
public class PolarAreaChartOptions extends AbstractScalableChartOptions {

	/** The Constant serialVersionUID. */
	@JsonIgnore
	private static final long serialVersionUID = -5356780831848556616L;
	
	/** The scale show label backdrop. */
	private Boolean scaleShowLabelBackdrop;

	/** The scale backdrop color. */
	private String scaleBackdropColor;

	/** The scale backdrop padding y. */
	private Integer scaleBackdropPaddingY;

	/** The scale backdrop padding x. */
	private Integer scaleBackdropPaddingX;

	/** The segment show stroke. */
	private Boolean segmentShowStroke;

	/** The segment stroke color. */
	private String segmentStrokeColor;

	/** The segment stroke width. */
	private Integer segmentStrokeWidth;

	/** The animate rotate. */
	private Boolean animateRotate;

	/** The animate scale. */
	private Boolean animateScale;

	private Boolean scaleBeginAtZero = true;

  private Boolean scaleShowLine = true;

  private String legendTemplate = "
    -legend\"><% for (var i=0; i
  • \"><%if(segments[i].label){%><%=segments[i].label%><%}%>
  • <%}%>
"; public Boolean getScaleBeginAtZero() { return scaleBeginAtZero; } public void setScaleBeginAtZero(Boolean scaleBeginAtZero) { this.scaleBeginAtZero = scaleBeginAtZero; } public Boolean getScaleShowLine() { return scaleShowLine; } public void setScaleShowLine(Boolean scaleShowLine) { this.scaleShowLine = scaleShowLine; } public String getLegendTemplate() { return legendTemplate; } public void setLegendTemplate(String legendTemplate) { this.legendTemplate = legendTemplate; } /** * Gets the scale show label backdrop. * * @return the scale show label backdrop */ public Boolean getScaleShowLabelBackdrop() { return scaleShowLabelBackdrop; } /** * Sets the scale show label backdrop. * * @param scaleShowLabelBackdrop * decides whether to show a backdrop to the scale label */ public void setScaleShowLabelBackdrop(Boolean scaleShowLabelBackdrop) { this.scaleShowLabelBackdrop = scaleShowLabelBackdrop; } /** * Gets the scale backdrop color. * * @return the scale backdrop color */ public String getScaleBackdropColor() { return scaleBackdropColor; } /** * Sets the scale backdrop color. * * @param scaleBackdropColor * the new scale backdrop color (default is * "rgba(255,255,255,0.75)"). */ public void setScaleBackdropColor(String scaleBackdropColor) { this.scaleBackdropColor = scaleBackdropColor; } /** * Gets the scale backdrop padding y. * * @return the scale backdrop padding y */ public Integer getScaleBackdropPaddingY() { return scaleBackdropPaddingY; } /** * Sets the scale backdrop padding y. * * @param scaleBackdropPaddingY * the backdrop padding above and below the label in pixels * (default is 2). */ public void setScaleBackdropPaddingY(Integer scaleBackdropPaddingY) { this.scaleBackdropPaddingY = scaleBackdropPaddingY; } /** * Gets the scale backdrop padding x. * * @return the scale backdrop padding x */ public Integer getScaleBackdropPaddingX() { return scaleBackdropPaddingX; } /** * Sets the scale backdrop padding x. * * @param scaleBackdropPaddingX * the backdrop padding to the side of the label in pixels * (default is 2). */ public void setScaleBackdropPaddingX(Integer scaleBackdropPaddingX) { this.scaleBackdropPaddingX = scaleBackdropPaddingX; } /** * Gets the segment show stroke. * * @return the segment show stroke */ public Boolean getSegmentShowStroke() { return segmentShowStroke; } /** * Sets the segment show stroke. * * @param segmentShowStroke * decides whether we should show a stroke on each segment * (default is true) */ public void setSegmentShowStroke(Boolean segmentShowStroke) { this.segmentShowStroke = segmentShowStroke; } /** * Gets the segment stroke color. * * @return the segment stroke color */ public String getSegmentStrokeColor() { return segmentStrokeColor; } /** * Sets the segment stroke color. * * @param segmentStrokeColor * the new segment stroke color (default is "#fff"). */ public void setSegmentStrokeColor(String segmentStrokeColor) { this.segmentStrokeColor = segmentStrokeColor; } /** * Gets the segment stroke width. * * @return the segment stroke width */ public Integer getSegmentStrokeWidth() { return segmentStrokeWidth; } /** * Sets the segment stroke width. * * @param segmentStrokeWidth * the new segment stroke width (default is 2). */ public void setSegmentStrokeWidth(Integer segmentStrokeWidth) { this.segmentStrokeWidth = segmentStrokeWidth; } /** * Gets the animate rotate. * * @return the animate rotate */ public Boolean getAnimateRotate() { return animateRotate; } /** * Sets the animate rotate. * * @param animateRotate * decides whether we animate the rotation of the pie (default is * true). */ public void setAnimateRotate(Boolean animateRotate) { this.animateRotate = animateRotate; } /** * Gets the animate scale. * * @return the animate scale */ public Boolean getAnimateScale() { return animateScale; } /** * Sets the animate scale. * * @param animateScale * decides whether we animate scaling the Pie from the center * (default is false). */ public void setAnimateScale(Boolean animateScale) { this.animateScale = animateScale; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy