public boolean doMousePressed(MouseEvent event,Positionable pos){
  if (_drawFrame instanceof DrawPolygon) {
    DrawPolygon f=(DrawPolygon)_drawFrame;
    f.anchorPoint(event.getX(),event.getY());
  }
  if (pos instanceof PositionableShape && _editor.isEditable()) {
    if (!pos.equals(_currentSelection)) {
      if (_currentSelection != null) {
        _currentSelection.removeHandles();
      }
      _currentSelection=(PositionableShape)pos;
      _currentSelection.drawHandles();
    }
    return true;
  }
  if (_currentSelection != null) {
    _currentSelection.removeHandles();
    _currentSelection=null;
  }
  return false;
}

public boolean doMousePressed ( MouseEvent event , Positionable pos ) { if ( _drawFrame instanceof DrawPolygon ) { DrawPolygon f = ( DrawPolygon ) _drawFrame ; f . anchorPoint ( event . getX ( ) , event . getY ( ) ) ; } if ( pos instanceof PositionableShape && _editor . isEditable ( ) ) { if ( ! pos . equals ( _currentSelection ) ) { if ( _currentSelection != null ) { _currentSelection . removeHandles ( ) ; } _currentSelection = ( PositionableShape ) pos ; _currentSelection . drawHandles ( ) ; } return true ; } if ( _currentSelection != null ) { _currentSelection . removeHandles ( ) ; _currentSelection = null ; } return false ; }
* * * return true if creating or editing
