Gets the snap unit count.
Namespace: com.mindfusion.scheduling
Package: com.mindfusion.scheduling
Java Copy Code |
---|
public Integer getSnapUnitCount () |
A positive integer value specifying the number of units from the associated SnapUnit to snap to.
When getSnapUnitCount is 1 the snapping is absolute. When getSnapUnitCount is greater than 1, then the snapping is relative to the element being dragged. For example, if the item is moved or its start is being resized, the snapping is relative to the item's start. If the item's end is being resized, the snapping is relative to the item's end. For example, if the item starts at 02/16, the unit count is 3 and the unit is TimeUnit.Day, an attempt to resize the item's start on the left would cause snapping at 02/13 (which is the item's start time minus 3 days).
JPlanner Programmer's Guide | © 2023 MindFusion |