- Rectangle2D vertical = new Rectangle2D.Double(bounds.getMinX(), bounds.getMinY(), bounds.getMaxX(), bounds.getMinY()+20);
+ int rulerPixelSize = (int) DPIUtil.upscale(rulerSize);
+ int u7 = DPIUtil.upscale(7);
+ int u4 = DPIUtil.upscale(4);
+ int u2 = DPIUtil.upscale(2);
+
+ Rectangle2D vertical = new Rectangle2D.Double(bounds.getMinX(), bounds.getMinY(), bounds.getMaxX(), bounds.getMinY()+rulerPixelSize);