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

com.jwebmp.plugins.jqxwidgets.gauge.JQXGauge Maven / Gradle / Ivy

/*
 * Copyright (C) 2017 Marc Magon
 *
 * 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.jqxwidgets.gauge;

import com.jwebmp.core.base.html.Div;
import com.jwebmp.core.plugins.ComponentInformation;

/**
 * jqxGauge displays an indicator within a range of values.
 * 

* Gauges can be used in a table or matrix to show the relative value of a field in a range of values in the data region, for example, as a KPI. It supports SVG and VML rendering. *

* * @author Marc Magon * @version 1.0 * @since 15 Dec 2015 */ @ComponentInformation(name = "JQX Gauge", description = "jqxGauge displays an indicator within a range of values. Gauges can be used in a table or matrix to show the relative value of a field in a range of values in the data region, for example, as a KPI.", url = "http://www.jqwidgets.com/jquery-widgets-documentation/documentation/jqxgauge/jquery-gauge-getting-started.htm?search=", wikiUrl = "https://github.com/GedMarc/JWebMP-JQXWidgetsPlugin/wiki") public class JQXGauge extends Div { private JQXGaugeFeature feature; public JQXGauge() { addFeature(getFeature()); } public JQXGaugeFeature getFeature() { if (feature == null) { feature = new JQXGaugeFeature(this); } return feature; } @Override public JQXGaugeOptions getOptions() { return getFeature().getOptions(); } @Override public int hashCode() { int result = super.hashCode(); result = 31 * result + getFeature().hashCode(); return result; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } if (!super.equals(o)) { return false; } JQXGauge jqxGauge = (JQXGauge) o; return getFeature().equals(jqxGauge.getFeature()); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy