@Dependent public class CanvasLayoutUtils extends Object
| Constructor and Description |
|---|
CanvasLayoutUtils(GraphBoundsIndexer graphBoundsIndexer) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
static void |
fireElementSelectedEvent(javax.enterprise.event.Event<CanvasSelectionEvent> selectionEvent,
AbstractCanvasHandler canvasHandler,
String uuid) |
static Element<? extends Definition<?>> |
getElement(AbstractCanvasHandler canvasHandler,
String uuid) |
Point2D |
getNext(AbstractCanvasHandler canvasHandler,
Node<View<?>,Edge> root,
double rootNodeWidth,
double rootNodeHeight,
double newNodeWidth,
double newNodeHeight,
Point2D offset,
Point2D rootNodeCoordinates) |
Point2D |
getNext(AbstractCanvasHandler canvasHandler,
Node<View<?>,Edge> root,
Node<View<?>,Edge> newNode) |
static int |
getPaddingX() |
static int |
getPaddingY() |
static boolean |
isCanvasRoot(Diagram diagram,
Element parent) |
static boolean |
isCanvasRoot(Diagram diagram,
String pUUID) |
@Inject public CanvasLayoutUtils(GraphBoundsIndexer graphBoundsIndexer)
public static int getPaddingX()
public static int getPaddingY()
@PreDestroy public void destroy()
public Point2D getNext(AbstractCanvasHandler canvasHandler, Node<View<?>,Edge> root, Node<View<?>,Edge> newNode)
public Point2D getNext(AbstractCanvasHandler canvasHandler, Node<View<?>,Edge> root, double rootNodeWidth, double rootNodeHeight, double newNodeWidth, double newNodeHeight, Point2D offset, Point2D rootNodeCoordinates)
public static Element<? extends Definition<?>> getElement(AbstractCanvasHandler canvasHandler, String uuid)
public static void fireElementSelectedEvent(javax.enterprise.event.Event<CanvasSelectionEvent> selectionEvent, AbstractCanvasHandler canvasHandler, String uuid)
Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.