Class GeometryTools

java.lang.Object
com._1c.g5.v8.dt.moxel.geometry.GeometryTools

public final class GeometryTools extends Object
Различные геометрические функции.
  • Constructor Details

    • GeometryTools

      public GeometryTools()
  • Method Details

    • normalizeRect

      public static org.eclipse.swt.graphics.Rectangle normalizeRect(org.eclipse.swt.graphics.Rectangle rectangle)
      Нормализовать прямоугольник.
    • inflateRect

      public static void inflateRect(org.eclipse.swt.graphics.Rectangle rectangle, int horizontalSize, int verticalSize)
      Увеличить прямоуольник на заданный размер.
    • deflateRect

      public static void deflateRect(org.eclipse.swt.graphics.Rectangle rectangle, int horizontalSize, int verticalSize)
      Deflate rectangle for specific amount of pixels.
      Parameters:
      rectangle - Rectangle to deflate
      horizontalSize - amount of pixels for horizontal deflation
      verticalSize - amount of pixels for vertical deflation
    • shiftRect

      public static void shiftRect(org.eclipse.swt.graphics.Rectangle rectangle, int horizontalShift, int verticalShift)
      Сдвинуть прямоугольник.
    • getMinSpreadsheetPoint

      public static SpreadsheetPoint getMinSpreadsheetPoint(SpreadsheetPoint point1, SpreadsheetPoint point2)
      Получить минимальную точку.
    • getMaxSpreadsheetPoint

      public static SpreadsheetPoint getMaxSpreadsheetPoint(SpreadsheetPoint point1, SpreadsheetPoint point2)
      Получить максимальную точку.
    • normalizeRect

      public static SpreadsheetRect normalizeRect(SpreadsheetRect rectangle)
      Нормализовать прямоугольник.
    • unionRect

      public static SpreadsheetRect unionRect(SpreadsheetRect boundRect, SpreadsheetRect drawingPosition)
      Объединить прямоугольник.