Class Gauge
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.react.ReactAdapterComponent
in.virit.Gauge
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasStyle, Serializable
- Direct Known Subclasses:
HumidityGauge, TemperatureGauge
@NpmPackage(value="react-gauge-component",
version="1.2.64")
@JsModule("./viritin/react-gauge.tsx")
@Tag("react-gauge")
public class Gauge
extends com.vaadin.flow.component.react.ReactAdapterComponent
Vaadin wrapper for the react-gauge-component React component.
Provides a comprehensive API for creating customizable gauge charts.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classstatic classstatic classstatic enumstatic classstatic enumstatic enum -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetArc(Gauge.GaugeArc arc) voidsetArcWidth(int width) voidsetLabels(Gauge.GaugeLabels labels) voidsetMaxValue(double maxValue) voidsetMinValue(double minValue) voidsetPointer(Gauge.GaugePointer pointer) voidsetType(Gauge.GaugeType type) voidsetValue(double value) Methods inherited from class com.vaadin.flow.component.react.ReactAdapterComponent
addStateChangeListener, addStateChangeListener, getContentElement, getState, getState, readFromJson, readFromJson, readFromJson, readFromJson, setState, writeAsJson, writeToJsonMethods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setVisibleMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Constructor Details
-
Gauge
public Gauge() -
Gauge
public Gauge(double value)
-
-
Method Details
-
setValue
public void setValue(double value) -
setMinValue
public void setMinValue(double minValue) -
setMaxValue
public void setMaxValue(double maxValue) -
setType
-
setArcWidth
public void setArcWidth(int width) -
setArc
-
setPointer
-
setLabels
-