-
public interface ChartInsetter
-
-
Method Summary
Modifier and Type Method Description UnitgetInsets(MeasureContext context, Insets outInsets, HorizontalDimensions horizontalDimensions)Called during the measurement phase, before getHorizontalInsets. UnitgetHorizontalInsets(MeasureContext context, Float availableHeight, HorizontalInsets outInsets)Called during the measurement phase, after getInsets. -
-
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.
-
-
-
-