private AffineTransform calcSelectionTransformationMatrix(
      final AffineTransform currentMatrix,
      final double xOffset,
      final double yOffset,
      final int lineNr) {
    final double scaleX = currentMatrix.getScaleX();
    final double scaleY = currentMatrix.getScaleY();
    final double translateX = currentMatrix.getTranslateX() + (xOffset * scaleX);
    final double translateY =
        currentMatrix.getTranslateY() + ((yOffset + (lineNr * getLineHeight())) * scaleY);
    return new AffineTransform(scaleX, 0, 0, scaleY, translateX, translateY);
  }
Boolean which indicates if the sloppy paint modus is on or not.
java/zylib/src/main/java/com/google/security/zynamics/zylib/gui/zygraph/realizers/ZyLabelContent.java