gc.setBackground( EColor.LIGHTGRAY ); gc.setLineWidth( 1 ); gc.fillRoundRectangle( popupX, popupY, popupWidth, popupHeight, 7, 7 ); gc.setBackground( EColor.LIGHTGRAY ); gc.drawRoundRectangle( popupX, popupY, popupWidth, popupHeight, 7, 7 ); gc.setBackground( EColor.BACKGROUND ); } else { gc.setBackground( EColor.LIGHTGRAY ); gc.setBackground( EColor.BACKGROUND ); gc.setBackground( EColor.BACKGROUND ); } else { gc.setBackground( EColor.LIGHTGRAY ); gc.setBackground( EColor.LIGHTGRAY ); rowX += titleWidth; gc.setBackground( EColor.BACKGROUND ); } else { gc.setBackground( EColor.LIGHTGRAY );
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(); }
gc.setBackground( EColor.BACKGROUND ); gc.setLineStyle( ELineStyle.SOLID );
private void drawDurations( List<MetricsDuration> durations, List<MetricsDrawArea> areas, double pixelsPerMs ) { // set top indent int y = 20; for ( MetricsDuration duration : durations ) { Long realDuration = duration.getEndDate().getTime() - duration.getDate().getTime(); // How many pixels does it take to drawn this duration? // int durationWidth = (int) ( realDuration * pixelsPerMs ); int x = 2 + (int) ( ( duration.getDate().getTime() - periodStart ) * pixelsPerMs ); getGc().setBackground( EColor.BACKGROUND ); getGc().setForeground( EColor.LIGHTBLUE ); getGc().fillGradientRectangle( x, y, durationWidth, barHeight, false ); getGc().setForeground( EColor.BLACK ); getGc().drawRectangle( x, y, durationWidth, barHeight ); areas.add( new MetricsDrawArea( new Rectangle( x, y, durationWidth, barHeight ), duration ) ); LoggingObjectInterface loggingObject = LoggingRegistry.getInstance().getLoggingObject( duration.getLogChannelId() ); String message = duration.getDescription() + " - " + loggingObject.getObjectName() + " : " + duration.getDuration() + "ms"; if ( duration.getCount() > 1 ) { message += " " + duration.getCount() + " calls, avg=" + ( duration.getDuration() / duration.getCount() ); } getGc().setFont( EFont.GRAPH ); getGc().textExtent( message ); getGc().drawText( message, x + 3, y + 4, true ); y += barHeight + 5; } }
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.setLineWidth( 1 ); gc.setForeground( EColor.GRAY ); gc.setBackground( EColor.BACKGROUND ); gc.setFont( EFont.GRAPH ); String nrInput = Integer.toString( stepMeta.getRemoteInputSteps().size() ); gc.setLineWidth( 1 ); gc.setForeground( EColor.GRAY ); gc.setBackground( EColor.BACKGROUND ); gc.setFont( EFont.GRAPH ); String nrOutput = Integer.toString( stepMeta.getRemoteOutputSteps().size() ); gc.setLineWidth( 1 ); gc.setForeground( EColor.RED ); gc.setBackground( EColor.BACKGROUND ); gc.setFont( EFont.GRAPH ); gc.setBackground( EColor.BACKGROUND ); gc.fillRoundRectangle( x - 1, y - 1, iconsize + 1, iconsize + 1, 8, 8 ); gc.drawStepIcon( x, y, stepMeta, magnification ); int tmpAlpha = gc.getAlpha(); 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.setBackground( EColor.BACKGROUND ); gc.setForeground( EColor.BLACK );
gc.setBackground( EColor.BACKGROUND ); gc.fillRoundRectangle( x - 1, y - 1, iconsize + 1, iconsize + 1, 7, 7 ); gc.drawJobEntryIcon( x, y, jobEntryCopy, magnification ); Point textsize = new Point( gc.textExtent( "" + name ).x, gc.textExtent( "" + name ).y ); gc.setBackground( EColor.BACKGROUND ); gc.setLineWidth( 1 ); gc.setBackground( EColor.CRYSTAL ); gc.setLineWidth( 1 ); gc.fillRoundRectangle( areaX, areaY, totalWidth, totalHeight, BasePainter.CORNER_RADIUS_5, BasePainter.CORNER_RADIUS_5 ); gc.setBackground( EColor.WHITE ); + MINI_ICON_MARGIN, true ); gc.setForeground( EColor.CRYSTAL ); gc.setBackground( EColor.CRYSTAL ); areaX + totalWidth / 2 + MINI_ICON_TRIANGLE_BASE / 2, areaY + 2, areaX + totalWidth / 2 - MINI_ICON_SKEW, areaY - MINI_ICON_DISTANCE - 3, } ); gc.setBackground( EColor.WHITE );
note.x + s, note.y + height + 2 * margin + s // bottom left }; gc.setBackground( EColor.LIGHTGRAY ); gc.fillPolygon( shadowa ); gc.setBackground( notePadMeta.getBackGroundColorRed(), notePadMeta.getBackGroundColorGreen(), notePadMeta .getBackGroundColorBlue() ); gc.setForeground( notePadMeta.getBorderColorRed(), notePadMeta.getBorderColorGreen(), notePadMeta
gc.setBackground( EColor.BACKGROUND ); gc.setLineStyle( ELineStyle.SOLID );
gc.setBackground( EColor.BACKGROUND );