@Override protected void paintOverlay( Graphics g ) { boolean removal = AbstractScreenDockWindow.this.removal; if( isMoveOnTitleGrab() ){ removal = false; } if( combination != null || removal ){ ScreenDockStation station = getStation(); StationPaint paint = station.getPaint().get(); if( paint != null ){ Insets insets = getInsets(); Rectangle bounds = new Rectangle( 0, 0, getWidth(), getHeight() ); Rectangle insert = new Rectangle( 2*insets.left, 2*insets.top, getWidth() - 2*(insets.left+insets.right), getHeight() - 2*(insets.top+insets.bottom )); if( combination != null ){ combination.paint( g, contentBackground, paint, bounds, insert ); } else if( removal ){ paint.drawRemoval( g, station, bounds, insert ); } } } } };
@Override protected void paintOverlay( Graphics g ) { boolean removal = AbstractScreenDockWindow.this.removal; if( isMoveOnTitleGrab() ){ removal = false; } if( combination != null || removal ){ ScreenDockStation station = getStation(); StationPaint paint = station.getPaint().get(); if( paint != null ){ Insets insets = getInsets(); Rectangle bounds = new Rectangle( 0, 0, getWidth(), getHeight() ); Rectangle insert = new Rectangle( 2*insets.left, 2*insets.top, getWidth() - 2*(insets.left+insets.right), getHeight() - 2*(insets.top+insets.bottom )); if( combination != null ){ combination.paint( g, contentBackground, paint, bounds, insert ); } else if( removal ){ paint.drawRemoval( g, station, bounds, insert ); } } } } };