Package 

Interface ChartInsetter


  • 
    public interface ChartInsetter
    
                        

    Enables a component to add insets to Charts to make room for itself. This is used by Axis, Marker, and the like.

    • Method Detail

      • getInsets

         Unit getInsets(MeasureContext context, Insets outInsets, HorizontalDimensions horizontalDimensions)

        Called during the measurement phase, before getHorizontalInsets. Both horizontal and vertical insets can be requested from this function. The final inset for a given edge of the associated Chart is the largest of the insets requested for the edge.

        Parameters:
        context - holds data used for the measuring of components.
        outInsets - used to store the requested insets.
        horizontalDimensions - the associated Chart’s HorizontalDimensions.
      • getHorizontalInsets

         Unit getHorizontalInsets(MeasureContext context, Float availableHeight, HorizontalInsets outInsets)

        Called during the measurement phase, after getInsets. Only horizontal insets can be requested from this function. Unless the available height is of interest, getInsets can be used to set all insets. The final inset for a given edge of the associated Chart is the largest of the insets requested for the edge.

        Parameters:
        context - holds data used for the measuring of components.
        availableHeight - the available height.
        outInsets - used to store the requested insets.