Class SizeItem

  • Direct Known Subclasses:
    LegendHitBoxItem

    public class SizeItem
    extends NativeObjectContainer
    This item contains the new size of the chart after it has been resized.
    This object has been created ONLY when a resize event occurs.
    Author:
    Andrea "Stock" Stocchero
    • Constructor Detail

      • SizeItem

        public SizeItem​(ConfigurationEnvelop<NativeObject> envelop)
        Creates the item using an envelop (from configuration package) of native java script object which contains all properties.
        Parameters:
        envelop - envelop of native java script object which contains all properties.
    • Method Detail

      • getWidth

        public final double getWidth()
        Returns the width of the chart item in pixel.
        Returns:
        the width of the chart item in pixel.
      • getHeight

        public final double getHeight()
        Returns the height of the chart item in pixel.
        Returns:
        the height of the chart item in pixel.