Package com._1c.g5.v8.dt.moxel.ui.editor
Class GeometryTools
- java.lang.Object
-
- com._1c.g5.v8.dt.moxel.ui.editor.GeometryTools
-
public final class GeometryTools extends Object
Различные геометрические функции.
-
-
Constructor Summary
Constructors Constructor Description GeometryTools()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
deflateRect(org.eclipse.swt.graphics.Rectangle rectangle, int horizontalSize, int verticalSize)
Deflate rectangle for specific amount of pixels.static SpreadsheetPoint
getMaxSpreadsheetPoint(SpreadsheetPoint point1, SpreadsheetPoint point2)
Получить максимальную точку.static SpreadsheetPoint
getMinSpreadsheetPoint(SpreadsheetPoint point1, SpreadsheetPoint point2)
Получить минимальную точку.static void
inflateRect(org.eclipse.swt.graphics.Rectangle rectangle, int horizontalSize, int verticalSize)
Увеличить прямоуольник на заданный размер.static SpreadsheetRect
normalizeRect(SpreadsheetRect rectangle)
Нормализовать прямоугольник.static org.eclipse.swt.graphics.Rectangle
normalizeRect(org.eclipse.swt.graphics.Rectangle rectangle)
Нормализовать прямоугольник.static void
shiftRect(org.eclipse.swt.graphics.Rectangle rectangle, int horizontalShift, int verticalShift)
Сдвинуть прямоугольник.static SpreadsheetRect
unionRect(SpreadsheetRect boundRect, SpreadsheetRect drawingPosition)
Объединить прямоугольник.
-
-
-
Method Detail
-
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 deflatehorizontalSize
- amount of pixels for horizontal deflationverticalSize
- 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)
Объединить прямоугольник.
-
-