CellUserSelectionModel class
A UserSelectionModel that represents a Range2D
of cells.
Unlike HeaderUserSelectionModel, the edges of this king of selection are defined by the coordinates in both axis. The selection only covers the cells in the axis.
- Inheritance
-
- Object
- BoundedSelection
- CellUserSelectionModel
- Implemented types
- Available extensions
Constructors
- CellUserSelectionModel.fromAnchorFocus({String? id, required IntVector2 anchor, required IntVector2 focus, SelectionStyle? style})
-
Create a CellUserSelectionModel given its opposite corners
(
anchor
andfocus
).factory - CellUserSelectionModel.fromSelectionModel(UserSelectionModel original, {required IntVector2 anchor, required IntVector2 focus})
-
Create a CellUserSelectionModel from any UserSelectionModel given an
anchor
andfocus
.factory
Properties
- anchor → IntVector2
-
The edge that should include anchorCoordinate. anchor is the origin of
a selection, it is the edge that should remain unchanged in an expansion
operation.
no setterinherited
- anchorCoordinate → IntVector2
-
See also:
no setterinherited
- anchorCorner → Corner
-
Defines which Corner represents the anchorCoordinate
finalinherited
- bottom → int?
-
no setterinherited
- focus → IntVector2
-
The edge that should include focusCoordinate. Focus should correspond
the edge that should be changed in a expansion operation.
no setterinherited
- focusCoordinate → IntVector2
-
See also:
no setterinherited
- hashCode → int
-
The hash code for this object.
no setteroverride
- id → String
-
Unique identifier of a selection in a UserSelectionState
final
- isNil → bool
-
no setterinherited
- isSingle → bool
-
no setterinherited
- isSingleCell → bool
-
Whether this selection that covers only one cell
no setter
- left → int?
-
no setterinherited
- leftBottom → IntVector2
-
no setterinherited
- leftTop → IntVector2
-
finalinherited
- right → int?
-
no setterinherited
- rightBottom → IntVector2
-
finalinherited
- rightTop → IntVector2
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → IntVector2
-
no setterinherited
- style → SelectionStyle?
-
final
- top → int?
-
no setterinherited
- xRange → Range
-
no setterinherited
- yRange → Range
-
no setterinherited
Methods
-
bound(
{required Range2D to}) → Range2D -
Available on Selection, provided by the SelectionMethods extension
Bound a Selection to aRange2D
. -
containsRange(
Range2D otherRange) → bool -
Defines if this range contains
otherRange
entirelyinherited -
containsVector(
IntVector2 intVector2) → bool -
Defines if this range contains a specific vector
inherited
-
copyWith(
{IntVector2? anchor, IntVector2? focus, SelectionStyle? style}) → CellUserSelectionModel - Creates a copy of the selection with the specified properties replaced.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
overlaps(
Range2D otherRange) → bool -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator &(
Range2D other) → Range2D -
inherited
-
operator ==(
Object other) → bool -
The equality operator.
override