public void setLineWidth( int width ) { this.lineWidth = width; gc.setStroke( createStroke() ); }
@Override public void drawImage( EImage image, int x, int y, float magnification, double angle ) { SwingUniversalImage img = getNativeImage( image ); drawImage( img, x, y, angle, small_icon_size ); }
@Override public void drawJobEntryIcon( int x, int y, JobEntryCopy jobEntryCopy ) { drawJobEntryIcon( x, y, jobEntryCopy, 1.0f ); }
private BufferedImage generateJobImage( JobMeta jobMeta ) throws Exception { float magnification = 1.0f; Point maximum = jobMeta.getMaximum(); maximum.multiply( magnification ); SwingGC gc = new SwingGC( null, maximum, 32, 0, 0 ); JobPainter jobPainter = new JobPainter( gc, jobMeta, maximum, null, null, null, null, null, new ArrayList<AreaOwner>(), new ArrayList<JobEntryCopy>(), 32, 1, 0, 0, true, "Arial", 10 ); jobPainter.setMagnification( magnification ); jobPainter.drawJob(); BufferedImage image = (BufferedImage) gc.getImage(); return image; }
float magnification = (float) Math.min( 1, Math.min( magnificationX, magnificationY ) ); SwingGC gc = new SwingGC( g2d, rect, iconsize, 0, 0 ); gc.setDrawingPixelatedImages( pixelateImages );
GCInterface gc = new SwingGC( null, area, iconsize, 50, 20 ); List<AreaOwner> areaOwners = new ArrayList<AreaOwner>(); JobPainter painter =
@Override public void drawImage( EImage image, int x, int y ) { drawImage( image, x, y, 0.0f ); }
public void setForeground( int r, int g, int b ) { Color color = getColor( r, g, b ); gc.setColor( color ); }
public void drawText( String text, int x, int y, boolean transparent ) { drawText( text, x, y ); }
@Override public void drawStepIcon( int x, int y, StepMeta stepMeta ) { drawStepIcon( x, y, stepMeta, 1.0f ); }
public void fillGradientRectangle( int x, int y, int width, int height, boolean vertical ) { fillRectangle( x, y, width, height ); }
imageLocked = getImageIcon( BasePropertyHandler.getProperty( "Locked_image" ) ); imageStepError = getImageIcon( BasePropertyHandler.getProperty( "StepErrorLines_image" ) ); imageEdit = getImageIcon( BasePropertyHandler.getProperty( "EditSmall_image" ) ); imageContextMenu = getImageIcon( BasePropertyHandler.getProperty( "ContextMenu_image" ) ); imageTrue = getImageIcon( BasePropertyHandler.getProperty( "True_image" ) ); imageFalse = getImageIcon( BasePropertyHandler.getProperty( "False_image" ) ); imageErrorHop = getImageIcon( BasePropertyHandler.getProperty( "ErrorHop_image" ) ); imageInfoHop = getImageIcon( BasePropertyHandler.getProperty( "InfoHop_image" ) ); imageHopTarget = getImageIcon( BasePropertyHandler.getProperty( "HopTarget_image" ) ); imageHopInput = getImageIcon( BasePropertyHandler.getProperty( "HopInput_image" ) ); imageHopOutput = getImageIcon( BasePropertyHandler.getProperty( "HopOutput_image" ) ); imageArrow = getImageIcon( BasePropertyHandler.getProperty( "ArrowIcon_image" ) ); imageCopyHop = getImageIcon( BasePropertyHandler.getProperty( "CopyHop_image" ) ); imageLoadBalance = getImageIcon( BasePropertyHandler.getProperty( "LoadBalance_image" ) ); imageCheckpoint = getImageIcon( BasePropertyHandler.getProperty( "CheckeredFlag_image" ) ); imageDatabase = getImageIcon( BasePropertyHandler.getProperty( "Database_image" ) ); imageParallelHop = getImageIcon( BasePropertyHandler.getProperty( "ParallelHop_image" ) ); imageUnconditionalHop = getImageIcon( BasePropertyHandler.getProperty( "UnconditionalHop_image" ) ); imageStart = getImageIcon( BasePropertyHandler.getProperty( "STR_image" ) ); imageDummy = getImageIcon( BasePropertyHandler.getProperty( "DUM_image" ) ); imageBusy = getImageIcon( BasePropertyHandler.getProperty( "Busy_image" ) ); imageInject = getImageIcon( BasePropertyHandler.getProperty( "Inject_image" ) ); defaultArrow = getImageIcon( BasePropertyHandler.getProperty( "defaultArrow_image" ) ); okArrow = getImageIcon( BasePropertyHandler.getProperty( "okArrow_image" ) ); errorArrow = getImageIcon( BasePropertyHandler.getProperty( "errorArrow_image" ) ); disabledArrow = getImageIcon( BasePropertyHandler.getProperty( "disabledArrow_image" ) );
private BufferedImage generateTransformationImage( TransMeta transMeta ) throws Exception { float magnification = 1.0f; Point maximum = transMeta.getMaximum(); maximum.multiply( magnification ); SwingGC gc = new SwingGC( null, maximum, 32, 0, 0 ); TransPainter transPainter = new TransPainter( gc, transMeta, maximum, null, null, null, null, null, new ArrayList<AreaOwner>(), new ArrayList<StepMeta>(), 32, 1, 0, 0, true, "Arial", 10 ); transPainter.setMagnification( magnification ); transPainter.buildTransformationImage(); return (BufferedImage) gc.getImage(); }
float magnification = (float) Math.min( 1, Math.min( magnificationX, magnificationY ) ); SwingGC gc = new SwingGC( g2d, rect, iconsize, 0, 0 ); gc.setDrawingPixelatedImages( pixelateImages ); List<AreaOwner> areaOwners = new ArrayList<AreaOwner>(); JobPainter painter =
GCInterface gc = new SwingGC( null, area, iconsize, 50, 20 ); List<AreaOwner> areaOwners = new ArrayList<AreaOwner>(); TransPainter painter =
@Override public void drawImage( String location, ClassLoader classLoader, int x, int y ) { SwingUniversalImage img = SwingSvgImageUtil.getUniversalImage( classLoader, location ); drawImage( img, x, y, small_icon_size ); }
public void setForeground( EColor color ) { gc.setColor( getColor( color ) ); }
@Override public void drawImage( EImage image, int locationX, int locationY, float magnification ) { SwingUniversalImage img = getNativeImage( image ); drawImage( img, locationX, locationY, small_icon_size ); // gc.drawImage(img, locationX+xOffset, locationY+yOffset, observer); }
public void drawStepIcon( int x, int y, StepMeta stepMeta, float magnification ) { String steptype = stepMeta.getStepID(); SwingUniversalImage im = stepImages.get( steptype ); if ( im != null ) { // Draw the icon! drawImage( im, x + xOffset, y + xOffset, iconsize ); } }
public void setBackground( int r, int g, int b ) { Color color = getColor( r, g, b ); gc.setBackground( color ); }