public void buildTransformationImage() { Point max = transMeta.getMaximum(); Point thumb = getThumb( area, max ); offset = getOffset( thumb, area ); // First clear the image in the background color gc.setBackground( EColor.BACKGROUND ); gc.fillRectangle( 0, 0, area.x, area.y ); // If there is a shadow, we draw the transformation first with an alpha setting // if ( shadowSize > 0 ) { shadow = true; gc.setTransform( translationX, translationY, shadowSize, magnification ); gc.setAlpha( 20 ); drawTrans( thumb ); } // Draw the transformation onto the image // shadow = false; gc.setTransform( translationX, translationY, 0, magnification ); gc.setAlpha( 255 ); drawTrans( thumb ); gc.dispose(); }
public void drawJob() { Point max = jobMeta.getMaximum(); Point thumb = getThumb( area, max ); offset = getOffset( thumb, area ); gc.setBackground( EColor.BACKGROUND ); if ( hori != null ) { hori.setThumb( thumb.x ); } if ( vert != null ) { vert.setThumb( thumb.y ); } // If there is a shadow, we draw the transformation first with an alpha // setting // if ( shadowSize > 0 ) { gc.setAlpha( 20 ); gc.setTransform( translationX, translationY, shadowSize, magnification ); shadow = true; drawJobElements(); } // Draw the transformation onto the image // gc.setAlpha( 255 ); gc.setTransform( translationX, translationY, 0, magnification ); shadow = false; drawJobElements(); gc.dispose(); }
gc.setAlpha( 192 ); gc.setBackground( 216, 230, 241 ); gc.fillRoundRectangle( namePosition.x - 8, namePosition.y - 2, gc.textExtent( name ).x + 15, 25, BasePainter.CORNER_RADIUS_5 + 15, BasePainter.CORNER_RADIUS_5 + 15 ); gc.setAlpha( tmpAlpha ); gc.setAlpha( 255 ); } else { gc.setAlpha( 100 ); gc.setAlpha( alpha );