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
    boolean contains​(drawit.IntPoint p)  
    ControlPoint[] createControlPoints()  
    String getDrawingCommands()  
    drawit.shapegroups1.ShapeGroup getParent()  
    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.
    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.
  • 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()