public class WiresLayoutUtilities extends Object
| Modifier and Type | Field and Description |
|---|---|
static double |
PADDING |
| Constructor and Description |
|---|
WiresLayoutUtilities() |
| Modifier and Type | Method and Description |
|---|---|
static Rectangle2D |
alignLayoutInCanvas(Map<WiresBaseShape,com.ait.lienzo.client.core.types.Point2D> layout)
Align the Layout within a Canvas
|
static Rectangle2D |
getCanvasBounds(Rectangle2D layoutBounds)
Get the bounds of the Canvas to hold the provided Layout bounds.
|
static Rectangle2D |
getLayoutBounds(Map<WiresBaseShape,com.ait.lienzo.client.core.types.Point2D> layout)
Get the bounds of the layout information
|
static void |
resizeViewPort(Rectangle2D canvasBounds,
com.ait.lienzo.client.core.shape.Viewport viewport)
Resize the canvas based on the layout information
|
public static final double PADDING
public static Rectangle2D getLayoutBounds(Map<WiresBaseShape,com.ait.lienzo.client.core.types.Point2D> layout)
layout - Layout informationpublic static Rectangle2D getCanvasBounds(Rectangle2D layoutBounds)
layoutBounds - The bounds of the Layoutpublic static Rectangle2D alignLayoutInCanvas(Map<WiresBaseShape,com.ait.lienzo.client.core.types.Point2D> layout)
layout - Layout informationpublic static void resizeViewPort(Rectangle2D canvasBounds, com.ait.lienzo.client.core.shape.Viewport viewport)
canvasBounds - Bounds of the Canvasviewport - Viewport to be re-sizedCopyright © 2012–2020 JBoss by Red Hat. All rights reserved.