public void setBrush(AbstractBrush brush) { currentBrush = brush;  Rectangle brushRedraw = currentBrush.getBounds();   cursorHighlight.setOffset(0, 0);   cursorHighlight.resize(brushRedraw.width, brushRedraw.height, 0, 0); cursorHighlight.selectRegion(currentBrush.getShape());
public void setBrush(String tool, AbstractBrush brush) { System.out.println("setting "+tool+" to "+brush); brushes.put(tool, brush);
    public void setBrush(AbstractBrush brush) {        currentBrush = brush;        Rectangle brushRedraw = currentBrush.getBounds();        // Make sure it's clean        cursorHighlight.setOffset(0, 0);        // Resize and select the region        cursorHighlight.resize(brushRedraw.width, brushRedraw.height, 0, 0);        cursorHighlight.selectRegion(currentBrush.getShape());        /*if (currentBrush instanceof CustomBrush) {            cursorHighlight.setVisible(false);        } else {            cursorHighlight.setVisible(true);        }*/    }