ClassBreak class final
A class break object used to categorize a group of values that fall within a range of values.
The ClassBreak is used to categorize a group of values that fall within a
range defined by ClassBreak.minValue
and ClassBreak.maxValue
properties.
A value is determined to be within this range if it is greater than the
ClassBreak.minValue
but less than or equal to the ClassBreak.maxValue
.
When written as an algebraic equation, it would look like
(ClassBreak.minValue
< value <= ClassBreak.maxValue
).
For example, assume you wanted to create a set of ClassBreak categories based on the following integers (0, 0, 1, 1, 2, 4, 6, 6, 7, 10).
The following table would be helpful in defining the ClassBreak range settings
categorized group of values | count | label | minValue | maxValue |
---|---|---|---|---|
0 | 2 | none | -1 | 0 |
1-2 | 3 | one to two | 0 | 2 |
3-5 | 1 | three to five | 2 | 5 |
6-10 | 4 | six to ten | 5 | 10 |
- Implemented types
- Mixed in types
Constructors
-
ClassBreak({String description = '', String label = '', double minValue = double.nan, double maxValue = double.nan, ArcGISSymbol? symbol, List<
ArcGISSymbol> alternateSymbols = const []}) -
Creates a new class break object with alternate symbols.
factory
-
ClassBreak.fromJson(Map<
String, dynamic> json) -
factory
- ClassBreak.fromJsonString(String jsonString)
-
factory
Properties
-
alternateSymbols
→ List<
ArcGISSymbol> -
The alternate symbols for the class break's primary symbol. Symbols in
this list should be of type
MultilayerSymbol and must have
SymbolReferenceProperties set
with valid minimum and maximum scale at which symbol becomes visible.
Renderer will pick only one symbol at a given map scale. If primary
symbol's scale range falls within the map's scale, primary symbol is used.
If not, then symbols in alternate symbols list are iterated through and
first symbol matching the current map scale is picked for rendering. A
symbol becomes visible if the map scale is less than or equal to symbol's
minimum scale and greater than symbol's maximum scale.
no setter
- description ↔ String
-
A description of the class break. "Cities with a population under
100,000", for example.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
- label ↔ String
-
A label for the class break. "0 - 100000", for example.
getter/setter pair
- maxValue ↔ double
-
The maximum value of the range that defines the break.
getter/setter pair
- minValue ↔ double
-
The minimum value of the range that defines the break.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- symbol ↔ ArcGISSymbol?
-
A symbol used to represent elements in the class break.
getter/setter pair
Methods
-
clone(
) → ClassBreak - Clones the ClassBreak.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Returns a JSON representation of this Object in the data type used by jsonDecode.
inherited
-
toJsonString(
) → String -
Returns a JSON representation of this Object as a String.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override