Skip to content
Snippets Groups Projects
Commit 54460123 authored by Alexander Diewald's avatar Alexander Diewald
Browse files

- YELLOW

- 2 additional static imports.
- No static import of ZoomUtils.screenToInternalDimension. The method name exists in ZoomUtils and ZoomUiUtils. Same naming due to same functionality, use is context-dependent (UI/non-UI).
refs 2983
parent 6972584f
No related branches found
No related tags found
No related merge requests found
......@@ -17,6 +17,8 @@ $Id$
+--------------------------------------------------------------------------*/
package org.fortiss.tooling.base.ui.utils;
import static java.lang.Math.round;
import static org.fortiss.tooling.base.ui.utils.SnapToGridUtils.snapToGrid;
import static org.fortiss.tooling.base.utils.LayoutModelElementFactory.createDimension;
import static org.fortiss.tooling.base.utils.LayoutModelElementFactory.createPoint;
......@@ -35,9 +37,8 @@ import org.fortiss.tooling.base.utils.ZoomUtils;
* @author hummel
* @author $Author$
* @version $Rev$
* @ConQAT.Rating YELLOW Hash: FDBEA15E01470E5D318805D3653A4F3F
* @ConQAT.Rating YELLOW Hash: C039A18E383BB6EEF05185DB450142CA
*/
// TODO (FH): use import static (multiple occurences below)
public class ZoomUIUtils {
/** Factor to align zoomed movements to 0.05 steps (==> avail. zoom factors). */
......@@ -81,8 +82,7 @@ public class ZoomUIUtils {
// Adjust to grid (snap).
Point reqPoint = request.getMoveDelta();
SnapToGridUtils.snapToGrid(reqPoint,
(int)Math.round(DefaultLayoutConstants.DEFAULT_GRID_SIZE * zoom));
snapToGrid(reqPoint, (int)round(DefaultLayoutConstants.DEFAULT_GRID_SIZE * zoom));
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment