@Override
	public void drawTool(Graphics g, int mouseX, int mouseY)
	{
		((Graphics2D) g).setStroke(new BasicStroke(2));
		Canvas c = MainWindow.MAIN_WINDOW.getCanvas();
		super.drawTool(g, mouseX, mouseY);
		if (rect != null){
			g.setColor(Color.CYAN);
			switch (state){
			case FIRST:
				g.drawRect(c.getScaledCoord(rect.x), c.getScaledCoord(rect.y), 
						c.getScaledCoord(mouseX - rect.x + 1), c.getScaledCoord(mouseY - rect.y + 1));
				break;
			case SECOND:
				g.drawRect(c.getScaledCoord(rect.x), c.getScaledCoord(rect.y), 
						c.getScaledCoord(rect.width), c.getScaledCoord(rect.height));
				break;
			case START:
				break;
			case SELECTED:
				
				g.setColor(Color.RED);
				g.drawRect(c.getScaledCoord(rect.x), c.getScaledCoord(rect.y), 
						c.getScaledCoord(rect.width), c.getScaledCoord(rect.height));
			}
		}
	}