public class ShapeUtils extends Object
| Constructor and Description |
|---|
ShapeUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
applyConnections(Edge<? extends ViewConnector<?>,Node> edge,
AbstractCanvasHandler canvasHandler,
MutationContext mutationContext) |
static double |
dist(double x0,
double y0,
double x1,
double y1)
Returns the distance between two points in a dual axis cartesian graph.
|
static void |
enforceLocationConstraints(ShapeView shape,
Bounds bounds) |
static ConnectorShape |
getConnectorShape(Edge edge,
CanvasHandler canvasHandler) |
static double |
getRadiusForBoundingBox(double width,
double height) |
static void |
moveViewConnectorsToTop(AbstractCanvasHandler canvasHandler,
Node<?,Edge> node) |
static void |
setSizeFromBoundingBox(ShapeView view,
double boundingBoxWidth,
double boundingBoxHeight) |
static void |
updateEdgeConnection(AbstractCanvasHandler context,
Connection connection,
Node<? extends View<?>,Edge> node) |
static void |
updateEdgeConnections(Edge<? extends ViewConnector<?>,Node> edge,
AbstractCanvasHandler context) |
public static void applyConnections(Edge<? extends ViewConnector<?>,Node> edge, AbstractCanvasHandler canvasHandler, MutationContext mutationContext)
public static ConnectorShape getConnectorShape(Edge edge, CanvasHandler canvasHandler)
public static void updateEdgeConnections(Edge<? extends ViewConnector<?>,Node> edge, AbstractCanvasHandler context)
public static void updateEdgeConnection(AbstractCanvasHandler context, Connection connection, Node<? extends View<?>,Edge> node)
public static void enforceLocationConstraints(ShapeView shape, Bounds bounds)
public static void moveViewConnectorsToTop(AbstractCanvasHandler canvasHandler, Node<?,Edge> node)
public static double getRadiusForBoundingBox(double width,
double height)
public static void setSizeFromBoundingBox(ShapeView view, double boundingBoxWidth, double boundingBoxHeight)
public static double dist(double x0,
double y0,
double x1,
double y1)
Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.