Legend class

Inheritance

Constructors

Legend()
default constructor
Legend.fromList(List<LegendEntry> entries)
Constructor. Provide entries for the legend.

Properties

calculatedLabelBreakPoints List<bool?>
no setter
calculatedLabelSizes List<FSize?>
no setter
calculatedLineSizes List<FSize?>
no setter
direction LegendDirection
getter/setter pair
drawInside bool
getter/setter pair
enabled bool
getter/setter pairinherited
entries List<LegendEntry?>
getter/setter pair
extraEntries List<LegendEntry>?
no setter
formLineWidth double
getter/setter pair
formSize double
getter/setter pair
formToTextSpace double
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
horizontalAlignment LegendHorizontalAlignment
getter/setter pair
isLegendCustom bool
no setter
maxSizePercent double
getter/setter pair
neededHeight double
no setter
neededWidth double
no setter
orientation LegendOrientation
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shape LegendForm
getter/setter pair
stackSpace double
getter/setter pair
textColor Color
getter/setter pairinherited
textHeightMax double
no setter
textSize double
getter/setter pairinherited
textWidthMax double
no setter
typeface TypeFace?
getter/setter pairinherited
verticalAlignment LegendVerticalAlignment
getter/setter pair
wordWrapEnabled bool
getter/setter pair
xEntrySpace double
getter/setter pair
xOffset double
getter/setter pairinherited
yEntrySpace double
getter/setter pair
yOffset double
getter/setter pairinherited

Methods

calculateDimensions(TextPainter? labelpainter, ViewPortHandler? viewPortHandler) → void
Calculates the dimensions of the Legend. This includes the maximum width and height of a single entry, as well as the total width and height of the Legend.
getFormLineDashEffect() DashPathEffect?
@return The line dash path effect used for shapes that consist of lines.
getMaximumEntryHeight(TextPainter? p) double
returns the maximum height in pixels across all legend labels
getMaximumEntryWidth(TextPainter? p) double
returns the maximum length in pixels across all legend labels + formsize
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resetCustom() → void
Calling this will disable the custom legend entries (set by setCustom(...)). Instead, the entries will again be calculated automatically (after notifyDataSetChanged() is called).
setCustom(List<LegendEntry> entries) → void
Sets a custom legend's entries array.
setExtra1(List<LegendEntry> entries) → void
setExtra2(List<Color> colors, List<String> labels) → void
Entries that will be appended to the end of the auto calculated entries after calculating the legend. (if the legend has already been calculated, you will need to call notifyDataSetChanged() to let the changes take effect)
setFormLineDashEffect(DashPathEffect dashPathEffect) → void
Sets the line dash path effect used for shapes that consist of lines.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited