NmGalaxyLayout class abstract
Places liens on one NmGalaxyDimension: normalized positions, colour and radius per lien. Colours come from the theme c (plus fixed data-encoding colours for exemptions, stages and property types).
Constructors
- NmGalaxyLayout(NmColors c)
-
Creates a layout drawing with the theme colours
c.
Properties
- c → NmColors
-
Theme colours.
final
- dimension → NmGalaxyDimension
-
Dimension this layout places liens on.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
calculatePositions(
List< NmGalaxyLien> properties) → List<NmGalaxyPoint> - Calculate positions for all properties
-
getColorForProperty(
NmGalaxyLien property) → Color - Get the color for a property in this dimension
-
getRadiusForProperty(
NmGalaxyLien property) → double - Get the radius for a property based on value
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
radiusFromTaxAmount(
double amount) → double - Utility: calculate radius from tax amount
-
radiusFromValue(
double value) → double - Utility: calculate radius from property value (log scale)
-
toString(
) → String -
A string representation of this object.
inherited
-
withMargin(
double value, {double margin = 0.1}) → double - Utility: add margin to normalized coordinates
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited