HierarchicalGridStyle class
Grid style that renders a two-level hierarchical grid.
Creates a grid with both minor and major lines at different intervals:
- Minor lines: Rendered at standard gridSize spacing with lighter color (30% opacity)
- Major lines: Rendered at gridSize * majorGridMultiplier spacing with full color and double thickness
This provides a multi-level visual hierarchy that makes it easier to align elements at different scales.
Constructors
- HierarchicalGridStyle({int majorGridMultiplier = 5})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- majorGridMultiplier → int
-
Multiplier for major grid spacing relative to minor grid.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createGridPaint(
NodeFlowTheme theme) → Paint -
Helper to create a base paint object with grid color and thickness.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
paint(
Canvas canvas, Size size, NodeFlowTheme theme, GraphViewport viewport) → void -
Paints the grid pattern on the canvas.
inherited
-
paintGrid(
Canvas canvas, NodeFlowTheme theme, ({double bottom, double left, double right, double top}) gridArea) → void -
Renders the style-specific grid pattern.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited