Class BaseBoxNodeItem<T extends Key>

  • Type Parameters:
    T - type of position, Position of AxisPosition
    All Implemented Interfaces:
    IsArea
    Direct Known Subclasses:
    LegendNode, ScaleItem, SubtitleNode, TitleNode

    public abstract class BaseBoxNodeItem<T extends Key>
    extends BaseBoxItem
    Base object which maps the CHART.JS chart items and represents main nodes of chart java script object.
    This is a wrapper of the CHART.JS item with all needed info.
    Implements all get methods to change java script object properties.
    Author:
    Andrea "Stock" Stocchero
    • Method Detail

      • isActive

        public final boolean isActive()
        Returns true if the element is active.
        Returns:
        true if the element is active.
      • isFullSize

        public final boolean isFullSize()
        Returns true if marks that this box should take the full width/height of the canvas (moving other boxes).
        Returns:
        true if marks that this box should take the full width/height of the canvas (moving other boxes)
      • getPosition

        public final T getPosition()
        Returns the position of node.
        Returns:
        the position of node.
      • getWeight

        public final double getWeight()
        Returns the weight.
        Returns:
        the weight.
      • getMaxWidth

        public final double getMaxWidth()
        Returns the max width in pixel.
        Returns:
        the max width in pixel.
      • getMaxHeight

        public final double getMaxHeight()
        Returns the max height in pixel.
        Returns:
        the max height in pixel.
      • getPaddingTop

        public final int getPaddingTop()
        Returns the padding top in pixel.
        Returns:
        the padding top in pixel.
      • getPaddingRight

        public final int getPaddingRight()
        Returns the padding right in pixel.
        Returns:
        the padding right in pixel.
      • getPaddingBottom

        public final int getPaddingBottom()
        Returns the padding bottom in pixel.
        Returns:
        the padding bottom in pixel.
      • getPaddingLeft

        public final int getPaddingLeft()
        Returns the padding left in pixel.
        Returns:
        the padding left in pixel.