gc.drawImage( arrow, mx + 1, my, magnification, angle ); } else if ( q2 || q4 ) { gc.drawImage( arrow, mx, my, magnification, angle ); gc.drawImage( hopsIcon, mx, my, magnification ); if ( !shadow ) { areaOwners gc.drawImage( hopsIcon, mx, my, magnification ); if ( !shadow ) { areaOwners.add( new AreaOwner(
gc.drawImage( arrow, mx + 1, my, magnification, angle ); } else if ( q2 || q4 ) { gc.drawImage( arrow, mx, my, magnification, angle ); EImage hopsIcon = BasePainter.getStreamIconImage( targetStream.getStreamIcon() ); Point bounds = gc.getImageBounds( hopsIcon ); gc.drawImage( hopsIcon, mx, my, magnification ); if ( !shadow ) { areaOwners.add( new AreaOwner( if ( eImage != null ) { Point bounds = gc.getImageBounds( eImage ); gc.drawImage( eImage, mx, my, magnification ); gc.drawImage( EImage.COPY_ROWS, mx, my, magnification ); gc.drawImage( EImage.FALSE, mx, my, magnification ); if ( !shadow ) { areaOwners.add( new AreaOwner( AreaType.HOP_ERROR_ICON, mx, my, bounds.x, bounds.y, offset, fs, ts ) ); || Const.indexOfString( fs.getName(), infoStepnames ) >= 0 ) { Point bounds = gc.getImageBounds( EImage.INFO ); gc.drawImage( EImage.INFO, mx, my, magnification ); if ( !shadow ) { areaOwners.add( new AreaOwner( AreaType.HOP_INFO_ICON, mx, my, bounds.x, bounds.y, offset, fs, ts ) ); gc.drawImage( EImage.ERROR, mx, my, magnification ); if ( !shadow ) { areaOwners.add( new AreaOwner(
private void drawStepStatusIndicator( StepMeta stepMeta ) { if ( stepMeta == null ) { return; } // draw status indicator if ( trans != null ) { Point pt = stepMeta.getLocation(); if ( pt == null ) { pt = new Point( 50, 50 ); } Point screen = real2screen( pt.x, pt.y ); int x = screen.x; int y = screen.y; List<StepInterface> steps = trans.findBaseSteps( stepMeta.getName() ); for ( StepInterface step : steps ) { if ( step.getStatus().equals( StepExecutionStatus.STATUS_FINISHED ) ) { gc.drawImage( EImage.TRUE, ( x + iconsize ) - ( MINI_ICON_SIZE / 2 ) + 4, y - ( MINI_ICON_SIZE / 2 ) - 1, magnification ); } } } }
int iconX = ( x + iconsize ) - ( MINI_ICON_SIZE / 2 ); int iconY = y - ( MINI_ICON_SIZE / 2 ); gc.drawImage( EImage.BUSY, iconX, iconY, magnification ); areaOwners.add( new AreaOwner( AreaType.JOB_ENTRY_BUSY, iconX, iconY, MINI_ICON_SIZE, MINI_ICON_SIZE, offset, subject, jobEntryCopy ) ); } else { gc.drawImage( EImage.CHECKPOINT, iconX, iconY, magnification ); areaOwners.add( new AreaOwner( AreaType.JOB_ENTRY_RESULT_CHECKPOINT, iconX, iconY, MINI_ICON_SIZE, MINI_ICON_SIZE, offset, jobEntryCopy, jobEntryResult ) ); } else { if ( result.getResult() ) { gc.drawImage( EImage.TRUE, iconX, iconY, magnification ); areaOwners.add( new AreaOwner( AreaType.JOB_ENTRY_RESULT_SUCCESS, iconX, iconY, MINI_ICON_SIZE, MINI_ICON_SIZE, offset, jobEntryCopy, jobEntryResult ) ); } else { gc.drawImage( EImage.FALSE, iconX, iconY, magnification ); areaOwners.add( new AreaOwner( AreaType.JOB_ENTRY_RESULT_FAILURE, iconX, iconY, MINI_ICON_SIZE, MINI_ICON_SIZE, offset, jobEntryCopy, jobEntryResult ) ); gc.setAlpha( 100 ); gc.drawImage( miniIcon, xIcon, yIcon, BasePainter.FACTOR_1_TO_1 ); xIcon += bounds.x + 5;
int yError = y - ( MINI_ICON_SIZE / 2 ) - 1; Point ib = gc.getImageBounds( EImage.STEP_ERROR_RED ); gc.drawImage( EImage.STEP_ERROR_RED, xError, yError, magnification ); if ( !shadow ) { areaOwners.add( new AreaOwner( gc.setAlpha( 100 ); gc.drawImage( miniIcon, xIcon, yIcon, BasePainter.FACTOR_1_TO_1 ); xIcon += bounds.x + 5;