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 Classes
    Modifier and Type
    Class
    Description
    static class 
     
    static class 
     
    static class 
     
    static class 
     
    static class 
     
    static class 
     
    static enum 
     
    static class 
     
    static enum 
     
    static enum 
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    Gauge(double value)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    setArcWidth(int width)
     
    void
     
    void
    setMaxValue(double maxValue)
     
    void
    setMinValue(double minValue)
     
    void
     
    void
     
    void
    setValue(double value)
     

    Methods inherited from class com.vaadin.flow.component.react.ReactAdapterComponent

    addStateChangeListener, addStateChangeListener, getContentElement, getState, getState, readFromJson, readFromJson, readFromJson, readFromJson, setState, writeAsJson, writeToJson

    Methods 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, setVisible

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.vaadin.flow.component.AttachNotifier

    addAttachListener

    Methods inherited from interface com.vaadin.flow.component.DetachNotifier

    addDetachListener

    Methods 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

      public void setType(Gauge.GaugeType type)
    • setArcWidth

      public void setArcWidth(int width)
    • setArc

      public void setArc(Gauge.GaugeArc arc)
    • setPointer

      public void setPointer(Gauge.GaugePointer pointer)
    • setLabels

      public void setLabels(Gauge.GaugeLabels labels)