FractionSnappingModel class final
Snapping model that calculates snapping positions based on fraction of the sheet's viewport.
This model defines snapping offsets as proportions of the viewport's height, allowing for dynamic adjustments based on the available space. It is used with the sheet's SnappingBehavior to provide fraction-based snapping states.
- Inheritance
-
- Object
- SnappingModel
- FractionSnappingModel
Constructors
-
FractionSnappingModel(Set<
double> fractions) -
Constructs an FractionSnappingModel with the given
fractions.
Properties
Methods
-
getOffsets<
T> (MultiStateSheetExtent< T> extent) → SplayTreeSet<double> -
Calculates snapping offsets based on the fractions of the viewport.
override
-
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