objectMoveButton.setSelected(state == PS_MOVEOBJ);
    private void setCurrentPointerState(int state) {        currentPointerState = state;        // Select the matching button        paintButton.setSelected(state == PS_PAINT);        eraseButton.setSelected(state == PS_ERASE);        pourButton.setSelected(state == PS_POUR);        eyedButton.setSelected(state == PS_EYED);        marqueeButton.setSelected(state == PS_MARQUEE);        moveButton.setSelected(state == PS_MOVE);        // Set the matching cursor        if (mapView != null) {            switch (currentPointerState) {                case PS_PAINT:                    mapView.setCursor(curPaint);                    break;                case PS_ERASE:                    mapView.setCursor(curErase);                    break;                case PS_POINT:                    mapView.setCursor(curDefault);                    break;                case PS_POUR:                    mapView.setCursor(curPour);                    break;                case PS_EYED:                    mapView.setCursor(curEyed);                    break;                case PS_MARQUEE:                    mapView.setCursor(curMarquee);                    break;            }        }    }