HatchFillSymbolLayer class final
A struct that implements hatch fill symbol layer inside of the geometry attached to a multilayer polygon symbol.
A HatchFillSymbolLayer represents a polygon geometry filled with hatch lines.
"Hatch lines" are uniformly spaced parallel lines. A HatchFillSymbolLayer, in a multilayer polygon symbol, fills the geometry of the symbol with the specified hatch lines. Each hatch line is itself a multilayer polyline symbol. You can define a custom hatch line (through the setPolyline and certain create methods) that is repeated in parallel throughout the inside of the geometry attached to a multilayer polygon symbol's geometry.
The HatchFillSymbolLayer provides a similar experience to the SimpleFillSymbol, but with more customizability. Whereas you can select from a list of predefined hatch fill styles for a SimpleFillSymbol, the HatchFillSymbolLayer allows you to specify a fully-customized symbol to use as the hatch line. You can also adjust line angle, offset, and separation distance.
- Inheritance
-
- Object
- SymbolLayer
- FillSymbolLayer
- HatchFillSymbolLayer
Constructors
- HatchFillSymbolLayer({MultilayerPolylineSymbol? polylineSymbol, double angle = 0.0})
-
Create a hatch fill symbol layer, given a MultilayerPolylineSymbol and
an angle.
factory
Properties
- angle ↔ double
-
The angle of rotation of the hatch lines in a HatchFillSymbolLayer, in
degrees counterclockwise from East.
getter/setter pair
- colorLocked ↔ bool
-
The symbol layer color locked property.
getter/setter pairinherited
- enabled ↔ bool
-
The symbol layer enabled property.
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- polylineSymbol ↔ MultilayerPolylineSymbol
-
The polyline symbol used to symbolize the hatch lines of a
HatchFillSymbolLayer.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- separation ↔ double
-
The distance between the line symbols in the hatch pattern of a
HatchFillSymbolLayer.
getter/setter pair
Methods
-
clone(
) → SymbolLayer -
Clones the SymbolLayer.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited