@Override
  public void draw(Graphics2D g, int cellSize) {
    if (area != null) {

      CanvaGraphics gg = new CanvaGraphics(1000, 1000, 1000, 1000, cellSize, g);

      gg.setColor(Color.BLUE);
      Polygon p = new Polygon();
      p.setAntialiasing(false);

      p.processMousePress(area.getTopLeft().get(0), area.getTopLeft().get(1));
      p.processMousePress(area.getTopRight().get(0), area.getTopRight().get(1));
      p.processMousePress(area.getBottomRight().get(0), area.getBottomRight().get(1));
      p.processMousePress(area.getBottomLeft().get(0), area.getBottomLeft().get(1));

      p.processMouseDoubleClick(area.getBottomLeft().get(0), area.getBottomLeft().get(1));

      p.draw(gg);
    }
  }
 @Override
 public boolean processMousePress(int x, int y, int cellSize) {
   pressed = true;
   if (!complete) {
     area = new Area(new Coordinate(null, (double) x / cellSize, (double) y / cellSize), 0);
     return true;
   } else {
     if (x > area.getTopLeft().get(0) * cellSize
         && x < area.getTopRight().get(0) * cellSize
         && y > area.getTopLeft().get(1) * cellSize
         && y < area.getBottomLeft().get(1) * cellSize) {
       prevMousePress = new Coordinate(null, x / cellSize, y / cellSize);
       return true;
     }
     object.setCSTrunckateScreen(null);
     return false;
   }
 }