| Summary: | Demonstrate snap-to-grid in MVC logo example. | ||
|---|---|---|---|
| Product: | [Tools] GEF | Reporter: | Alexander Nyßen <nyssen> |
| Component: | GEF MVC | Assignee: | Matthias Wienand <matthias.wienand> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | ctg, matthias.wienand |
| Version: | 0.2.0 | ||
| Target Milestone: | 4.0.0 (Neon) RC1 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Alexander Nyßen
I added an "isSnapToGrid" property to FXGeometricModel and created a property source for it. The FXGeometricModel needs to be selected when the selection is cleared so that its properties will be displayed in that case. I pushed the following changes to origin/master: - Display the properties of "FXGeometricModel" when the selection is unset (i.e. when nothing is selected). - Ensure changes to the "snap-to-grid" property are transferred over to the GridModel. - Remove snap-to-grid functionality from the transactional policies and add it to the interaction policies instead. - Make the snapping granularity configurable for subclasses. Anchor computations do not need to perform snap-to-grid, because the interaction policies already constrain segment/bendpoint locations (which the anchor computation depends on) when snap-to-grid is enabled, so that the anchor positions will also be constrained accordingly. Therefore, I resolve this ticket as fixed for 4.0.0 RC1. |