Class MeterOptions

    • Method Detail

      • setCutoutPercentage

        public void setCutoutPercentage​(String cutout)
        Description copied from class: AbstractPieOptions
        Sets the portion of the chart that is cut out of the middle.
        As String and ending with '%', percentage of the chart radius.
        Overrides:
        setCutoutPercentage in class AbstractPieOptions
        Parameters:
        cutout - the portion of the chart that is cut out of the middle.
        As String and ending with '%', percentage of the chart radius.
      • setCutout

        public final void setCutout​(double cutout)
        Description copied from class: AbstractPieOptions
        Sets the portion of the chart that is cut out of the middle.
        As Double, it is considered to be pixels.
        Overrides:
        setCutout in class AbstractPieOptions
        Parameters:
        cutout - the portion of the chart that is cut out of the middle.
        As Double, it is considered to be pixels.
      • getCutout

        public double getCutout()
        Description copied from class: AbstractPieOptions
        Returns the portion of the chart that is cut out of the middle.
        As Double, it is considered to be pixels.
        Overrides:
        getCutout in class AbstractPieOptions
        Returns:
        the portion of the chart that is cut out of the middle.
        As Double, it is considered to be pixels.
      • setCircumference

        public final void setCircumference​(double circumference)
        Description copied from class: AbstractPieOptions
        Sets the sweep to allow arcs to cover.
        Overrides:
        setCircumference in class AbstractPieOptions
        Parameters:
        circumference - the sweep to allow arcs to cover.
      • setRotation

        public final void setRotation​(double rotation)
        Description copied from class: AbstractPieOptions
        Sets the starting angle to draw arcs from.
        Overrides:
        setRotation in class AbstractPieOptions
        Parameters:
        rotation - starting angle to draw arcs from.
      • setConfiguration

        protected final void setConfiguration​(T configuration)
        Parameters:
        configuration - the configuration to set
      • getConfiguration

        protected final T getConfiguration()
        Returns the configuration element.
        Returns:
        the configuration element.
      • merge

        public final void merge​(NativeObjectContainer source,
                                String property)
        Merge a native object in the this one with a specific property name.
        This is used by plugins implementation (native java script ones) when they are not using the standard way to add plugin configuration in the options of chart.
        Parameters:
        source - native object container to add
        property - property name
      • toJSON

        public final String toJSON()
        Returns the JSON representation of the object.
        Returns:
        the JSON representation of the object.
      • loadNativeObject

        public final ChartEnvelop<NativeObject> loadNativeObject​(ChartEnvelop<NativeObject> envelop)
        Returns the native object instance inside an envelop.
        It can be called only from org.pepstock.charba.client package.
        Parameters:
        envelop - envelop instance which will contain the native object
        Returns:
        the envelop, passed as argument, loaded with the native object
      • getChart

        public final IsChart getChart()
        Returns the chart instance
        Returns:
        the chart