java.lang.Object
omix.util.math.curves.ShapeUtility
public abstract class ShapeUtility extends Object
This class provides miscellaneous computation methods for shapes.
- Author:
- Dr. Peter Droste, Omix Visualization
-
Method Summary
Modifier and Type Method Description static Shape
computeShape(Rectangle2D bounds, Shape shape, Map<DockingPosition,Point2D> edgePorts)
static Shape
getAWTShape(Shape shape, Rectangle2D.Double bounds)
static Vec2d
getDockingPosition(DockingPosition dock, Shape shape, Rectangle2D bounds)
computes the docking position on a certain shape (this method is not yet implemented and does currently return (0,0))
-
Method Details
-
getDockingPosition
computes the docking position on a certain shape (this method is not yet implemented and does currently return (0,0))- Parameters:
dock
- the docking positionshape
- the shape of the figurebounds
- the bounds of the figure- Returns:
- the coordinate of the docking position on the shape
-
getAWTShape
- Parameters:
shape
- omix.lang.Shape objectbounds
- bounds of the shape- Returns:
- java.awt.Shape object
-
computeShape
public static Shape computeShape(Rectangle2D bounds, Shape shape, Map<DockingPosition,Point2D> edgePorts)- Parameters:
shape
- omix.lang.Shape objectbounds
- bounds of the shapeedgePorts
- output map for the computed dock positions.- Returns:
- java.awt.Shape object
-