-
- All Implemented Interfaces:
-
com.patrykandpatrick.vico.core.dimensions.BoundsAware
public interface Legend implements BoundsAware
Defines the functions required by the library to draw a chart legend.
-
-
Method Summary
Modifier and Type Method Description abstract FloatgetHeight(MeasureContext context, Float availableWidth)Returns the height of the legend. abstract Unitdraw(ChartDrawContext context)Draws the legend. abstract RectFgetBounds()The bounds of the abstract component. -
-
Method Detail
-
getHeight
abstract Float getHeight(MeasureContext context, Float availableWidth)
Returns the height of the legend.
-
draw
abstract Unit draw(ChartDrawContext context)
Draws the legend.
-
-
-
-