Package com._1c.g5.v8.dt.moxel.geometry
Class GeometryTools
java.lang.Object
com._1c.g5.v8.dt.moxel.geometry.GeometryTools
Различные геометрические функции.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voiddeflateRect(org.eclipse.swt.graphics.Rectangle rectangle, int horizontalSize, int verticalSize) Deflate rectangle for specific amount of pixels.static SpreadsheetPointgetMaxSpreadsheetPoint(SpreadsheetPoint point1, SpreadsheetPoint point2) Получить максимальную точку.static SpreadsheetPointgetMinSpreadsheetPoint(SpreadsheetPoint point1, SpreadsheetPoint point2) Получить минимальную точку.static voidinflateRect(org.eclipse.swt.graphics.Rectangle rectangle, int horizontalSize, int verticalSize) Увеличить прямоуольник на заданный размер.static SpreadsheetRectnormalizeRect(SpreadsheetRect rectangle) Нормализовать прямоугольник.static org.eclipse.swt.graphics.RectanglenormalizeRect(org.eclipse.swt.graphics.Rectangle rectangle) Нормализовать прямоугольник.static voidshiftRect(org.eclipse.swt.graphics.Rectangle rectangle, int horizontalShift, int verticalShift) Сдвинуть прямоугольник.static SpreadsheetRectunionRect(SpreadsheetRect boundRect, SpreadsheetRect drawingPosition) Объединить прямоугольник.
-
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-Rectangleto 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
Нормализовать прямоугольник. -
unionRect
Объединить прямоугольник.
-