@Override @SuppressWarnings("deprecation") public void applyShape(Region shape){
  if (shapeLog.isLoggable(PlatformLogger.Level.FINER)) {
    shapeLog.finer("*** INFO: Setting shape: PEER: " + this + "; TARGET: "+ target+ "; SHAPE: "+ shape);
  }
  if (shape != null) {
    setRectangularShape(shape.getLoX(),shape.getLoY(),shape.getHiX(),shape.getHiY(),(shape.isRectangular() ? null : shape));
  }
 else {
    setRectangularShape(0,0,0,0,null);
  }
}

@ Override @ SuppressWarnings ( "deprecation" ) public void applyShape ( Region shape ) { if ( shapeLog . isLoggable ( PlatformLogger . Level . FINER ) ) { shapeLog . finer ( "*** INFO: Setting shape: PEER: " + this + "; TARGET: " + target + "; SHAPE: " + shape ) ; } if ( shape != null ) { setRectangularShape ( shape . getLoX ( ) , shape . getLoY ( ) , shape . getHiX ( ) , shape . getHiY ( ) , ( shape . isRectangular ( ) ? null : shape ) ) ; } else { setRectangularShape ( 0 , 0 , 0 , 0 , null ) ; } }
applies the shape to the native component window .
