Codota Logo
SvgSupport.isSvgName
Code IndexAdd Codota to your IDE (free)

How to use
isSvgName
method
in
org.pentaho.di.core.svg.SvgSupport

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Gson g =
  • Codota Iconnew Gson()
  • Codota IconGsonBuilder gsonBuilder;gsonBuilder.create()
  • Codota Iconnew GsonBuilder().create()
  • Smart code suggestions by Codota
}
origin: pentaho/pentaho-kettle

/**
 * Converts SVG file name to PNG.
 */
public static String toPngName( String name ) {
 if ( isSvgName( name ) ) {
  name = name.substring( 0, name.length() - 4 ) + PNG_EXTENSION;
 }
 return name;
}
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

 resource = resource.substring( 0, resource.indexOf( ":" ) ) + resource.substring( resource.indexOf( "." ) );
if ( SvgSupport.isSvgEnabled() && ( SvgSupport.isSvgName( resource ) || SvgSupport.isPngName( resource ) ) ) {
 InputStream in = null;
 try {
origin: pentaho/pentaho-kettle

 /**
  * Load image from InputStream as bitmap image, or SVG image conversion to bitmap image.
  */
 private static SwtUniversalImage loadImage( Display display, InputStream in, String filename ) {
  if ( !SvgSupport.isSvgName( filename ) ) {
   // bitmap image
   return new SwtUniversalImageBitmap( new Image( display, in ) );
  } else {
   // svg image - need to convert to bitmap
   try {
    return new SwtUniversalImageSvg( SvgSupport.loadSvgImage( in ) );
   } catch ( Exception ex ) {
    throw new RuntimeException( ex );
   }
  }
 }
}
origin: pentaho/pentaho-kettle

if ( SvgSupport.isSvgEnabled() && SvgSupport.isSvgName( fileName ) ) {
 try {
  inputStream = new FileInputStream( fileName );
origin: pentaho/pentaho-kettle

if ( SvgSupport.isSvgEnabled() && SvgSupport.isSvgName( fileName ) ) {
 try {
  inputStream = new FileInputStream( fileName );
origin: pentaho/pentaho-kettle

if ( SvgSupport.isSvgEnabled() && SvgSupport.isSvgName( filename ) ) {
origin: pentaho/pentaho-kettle

if ( SvgSupport.isSvgEnabled() && ( SvgSupport.isSvgName( resource ) || SvgSupport.isPngName( resource ) ) ) {
 InputStream in = null;
 try {
org.pentaho.di.core.svgSvgSupportisSvgName

Javadoc

Check by file name if image is SVG.

Popular methods of SvgSupport

  • isPngName
    Check by file name if image is PNG.
  • isSvgEnabled
  • loadSvgImage
    Load SVG from file.
  • toPngName
    Converts SVG file name to PNG.
  • toSvgName
    Converts PNG file name to SVG.
  • createFactory
  • getSvgFactory

Popular in Java

  • Finding current android device location
  • setContentView (Activity)
  • getSystemService (Context)
  • onRequestPermissionsResult (Fragment)
  • Color (java.awt)
    The Color class is used encapsulate colors in the default sRGB color space or colors in arbitrary co
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • DataSource (javax.sql)
    A factory for connections to the physical data source that this DataSource object represents. An alt
  • IsNull (org.hamcrest.core)
    Is the value null?
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