Package drawit.shapes1
Interface Shape
- All Known Implementing Classes:
RoundedPolygonShape,ShapeGroupShape
public interface Shape
Interface that generalizes classes
RoundedPolygonShape and ShapeGroupShape.-
Method Summary
Modifier and Type Method Description booleancontains(drawit.IntPoint p)ControlPoint[]createControlPoints()StringgetDrawingCommands()drawit.shapegroups1.ShapeGroupgetParent()drawit.IntPointtoGlobalCoordinates(drawit.IntPoint p)Given the coordinates of a point in the shape coordinate system, returns the coordinates of the point in the global coordinate system.drawit.IntPointtoShapeCoordinates(drawit.IntPoint p)Given the coordinates of a point in the global coordinate system, returns the coordinates of the point in the shape coordinate system.
-
Method Details
-
getParent
drawit.shapegroups1.ShapeGroup getParent() -
contains
boolean contains(drawit.IntPoint p) -
getDrawingCommands
String getDrawingCommands() -
toShapeCoordinates
drawit.IntPoint toShapeCoordinates(drawit.IntPoint p)Given the coordinates of a point in the global coordinate system, returns the coordinates of the point in the shape coordinate system. -
toGlobalCoordinates
drawit.IntPoint toGlobalCoordinates(drawit.IntPoint p)Given the coordinates of a point in the shape coordinate system, returns the coordinates of the point in the global coordinate system. -
createControlPoints
ControlPoint[] createControlPoints()
-