protected Image getImage() { return SwtSvgImageUtil .getImage( shell.getDisplay(), getClass().getClassLoader(), "JOB.svg", ConstUI.LARGE_ICON_SIZE, ConstUI.LARGE_ICON_SIZE ); }
protected Image getImage() { return SwtSvgImageUtil .getImage( shell.getDisplay(), getClass().getClassLoader(), "MAP.svg", ConstUI.ICON_SIZE, ConstUI.ICON_SIZE ); }
protected Image getImage() { return SwtSvgImageUtil .getImage( shell.getDisplay(), getClass().getClassLoader(), "TRN.svg", ConstUI.LARGE_ICON_SIZE, ConstUI.LARGE_ICON_SIZE ); }
protected Image getImage() { return SwtSvgImageUtil .getImage( shell.getDisplay(), getClass().getClassLoader(), "JOBEx.svg", ConstUI.LARGE_ICON_SIZE, ConstUI.LARGE_ICON_SIZE ); }
private Image getImage() { return SwtSvgImageUtil .getImage( shell.getDisplay(), getClass().getClassLoader(), "ESRI.svg", ConstUI.ICON_SIZE, ConstUI.ICON_SIZE ); } }
private Image getImage() { return SwtSvgImageUtil .getImage( shell.getDisplay(), getClass().getClassLoader(), "images/run_tree.svg", ConstUI.ICON_SIZE, ConstUI.ICON_SIZE ); }
protected Image getImage() { return SwtSvgImageUtil .getImage( shell.getDisplay(), getClass().getClassLoader(), "MAP.svg", ConstUI.LARGE_ICON_SIZE, ConstUI.LARGE_ICON_SIZE ); }
private Image getImage() { return SwtSvgImageUtil .getImage( shell.getDisplay(), getClass().getClassLoader(), "GenericTransform.svg", ConstUI.LARGE_ICON_SIZE, ConstUI.LARGE_ICON_SIZE ); }
private Image getImage() { return SwtSvgImageUtil .getImage( shell.getDisplay(), getClass().getClassLoader(), "images/run_tree.svg", ConstUI.ICON_SIZE, ConstUI.ICON_SIZE ); }
protected Image getImage() { return SwtSvgImageUtil .getImage( shell.getDisplay(), getClass().getClassLoader(), "TRNEx.svg", ConstUI.LARGE_ICON_SIZE, ConstUI.LARGE_ICON_SIZE ); }
protected Image getImage() { return SwtSvgImageUtil .getImage( shell.getDisplay(), getClass().getClassLoader(), "MAP.svg", ConstUI.LARGE_ICON_SIZE, ConstUI.LARGE_ICON_SIZE ); }
protected Image getImage() { return SwtSvgImageUtil .getImage( shell.getDisplay(), getClass().getClassLoader(), "CLC.svg", ConstUI.LARGE_ICON_SIZE, ConstUI.LARGE_ICON_SIZE ); } }
private Image getImage() { return SwtSvgImageUtil.getImage( shell.getDisplay(), getClass().getClassLoader(), "ABR.svg", ConstUI.LARGE_ICON_SIZE, ConstUI.LARGE_ICON_SIZE ); }
public void drawImage( String location, ClassLoader classLoader, int x, int y ) { Image img = SwtSvgImageUtil.getImage( PropsUI.getDisplay(), classLoader, location, Math.round( small_icon_size * currentMagnification ), Math.round( small_icon_size * currentMagnification ) ); if ( img != null ) { Rectangle bounds = img.getBounds(); gc.drawImage( img, 0, 0, bounds.width, bounds.height, x, y, small_icon_size, small_icon_size ); } }
public void drawImage( String location, ClassLoader classLoader, int x, int y ) { Image img = SwtSvgImageUtil.getImage( PropsUI.getDisplay(), classLoader, location, Math.round( small_icon_size * currentMagnification ), Math.round( small_icon_size * currentMagnification ) ); if ( img != null ) { Rectangle bounds = img.getBounds(); gc.drawImage( img, 0, 0, bounds.width, bounds.height, x, y, small_icon_size, small_icon_size ); } }
/** * Loads an image from a location once. The second time, the image comes from a cache. Because of this, it's important * to never dispose of the image you get from here. (easy!) The images are automatically disposed when the application * ends. * * @param location the location of the image resource to load * @param width The height to resize the image to * @param height The width to resize the image to * @return the loaded image */ public Image getImage( String location, int width, int height ) { Image image = imageMap.get( location ); if ( image == null ) { SwtUniversalImage svg = SwtSvgImageUtil.getImage( display, location ); image = new Image( display, svg.getAsBitmapForSize( display, width, height ), SWT.IMAGE_COPY ); svg.dispose(); imageMap.put( location, image ); } return image; }