Package mgui.interfaces.shapes
Interface ShapePanel2D
public interface ShapePanel2D
Interface for panels hosting 2D shapes
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Andrew Reid
-
Method Summary
Modifier and Type Method Description DrawingEngine
getDrawingEngine()
Returns the drawing engine for this paneljava.util.ArrayList<PickInfoShape2D>
getPickShapes(java.awt.Point point)
Searches the currently displayed shapes for an intersection withpoint
.
-
Method Details
-
getPickShapes
Searches the currently displayed shapes for an intersection withpoint
. Returns a list of objects, sorted by the distance to a shape's nearest vertex.- Parameters:
point
-- Returns:
- a list of objects, sorted by the distance to a shape's nearest vertex.
-
getDrawingEngine
DrawingEngine getDrawingEngine()Returns the drawing engine for this panel- Returns:
-