Codota Logo
SwingUniversalImageSvg
Code IndexAdd Codota to your IDE (free)

How to use
SwingUniversalImageSvg
in
org.pentaho.di.core

Best Java code snippets using org.pentaho.di.core.SwingUniversalImageSvg (Showing top 8 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
OutputStreamWriter o =
  • Codota IconOutputStream out;new OutputStreamWriter(out)
  • Codota IconOutputStream out;String charsetName;new OutputStreamWriter(out, charsetName)
  • Codota IconHttpURLConnection connection;new OutputStreamWriter(connection.getOutputStream())
  • Smart code suggestions by Codota
}
origin: pentaho/pentaho-kettle

@Override
protected void renderSimple( BufferedImage area ) {
 Graphics2D gc = createGraphics( area );
 render( gc, area.getWidth() / 2, area.getHeight() / 2, area.getWidth(), area.getHeight(), 0 );
 gc.dispose();
}
origin: pentaho/pentaho-kettle

/**
 * Draw SVG image to Graphics2D.
 */
@Override
protected void render( Graphics2D gc, int centerX, int centerY, int width, int height, double angleRadians ) {
 render( gc, svgGraphicsNode, svgGraphicsSize, centerX, centerY, width, height, angleRadians );
}
origin: pentaho/pentaho-kettle

 /**
  * Load image from InputStream as bitmap image, or SVG image conversion to bitmap image.
  */
 private static SwingUniversalImage loadImage( InputStream in, String filename ) {
  if ( !SvgSupport.isSvgName( filename ) ) {
   // bitmap image
   try {
    return new SwingUniversalImageBitmap( ImageIO.read( in ) );
   } catch ( IOException e ) {
    throw new RuntimeException( e );
   }
  } else {
   // svg image - need to convert to bitmap
   try {
    return new SwingUniversalImageSvg( SvgSupport.loadSvgImage( in ) );
   } catch ( Exception ex ) {
    throw new RuntimeException( ex );
   }
  }
 }
}
origin: pentaho/pentaho-kettle

 @Override
 protected Image renderRotated( Device device, int width, int height, double angleRadians ) {
  BufferedImage doubleArea = SwingUniversalImage.createDoubleBitmap( width, height );

  Graphics2D gc = SwingUniversalImage.createGraphics( doubleArea );
  SwingUniversalImageSvg.render( gc, svgGraphicsNode, svgGraphicsSize, doubleArea.getWidth() / 2, doubleArea
    .getHeight() / 2, width, height, angleRadians );

  gc.dispose();

  return swing2swt( device, doubleArea );
 }
}
origin: pentaho/pentaho-kettle

try {
 SvgImage svg = SvgSupport.loadSvgImage( inputStream );
 image = new SwingUniversalImageSvg( svg );
} catch ( Exception ex ) {
 throw new KettleException( "Unable to load image from classpath : '" + fileName + "'", ex );
origin: pentaho/pentaho-kettle

@Override
protected Image renderSimple( Device device, int width, int height ) {
 BufferedImage area = SwingUniversalImage.createBitmap( width, height );
 Graphics2D gc = SwingUniversalImage.createGraphics( area );
 SwingUniversalImageSvg.render( gc, svgGraphicsNode, svgGraphicsSize, width / 2, height / 2, width, height, 0 );
 gc.dispose();
 return swing2swt( device, area );
}
origin: pentaho/pentaho-kettle

try {
 SvgImage svg = SvgSupport.loadSvgImage( inputStream );
 image = new SwingUniversalImageSvg( svg );
} catch ( Exception ex ) {
 throw new KettleException( "Unable to load image from classpath : '" + fileName + "'", ex );
origin: pentaho/pentaho-kettle

try {
 SvgImage svg = SvgSupport.loadSvgImage( inputStream );
 image = new SwingUniversalImageSvg( svg );
} finally {
 IOUtils.closeQuietly( inputStream );
org.pentaho.di.coreSwingUniversalImageSvg

Most used methods

  • render
  • <init>
  • createGraphics

Popular in Java

  • Creating JSON documents from java classes using gson
  • runOnUiThread (Activity)
  • getSharedPreferences (Context)
  • startActivity (Activity)
  • FileWriter (java.io)
    Convenience class for writing character files. The constructors of this class assume that the defaul
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now