Search in sources :

Example 11 with SwingUniversalImage

use of org.pentaho.di.core.SwingUniversalImage in project pentaho-kettle by pentaho.

the class SwingDirectGC method drawJobEntryIcon.

public void drawJobEntryIcon(int x, int y, JobEntryCopy jobEntryCopy, float magnification) {
    if (jobEntryCopy == null) {
        // Don't draw anything
        return;
    }
    SwingUniversalImage image = null;
    if (jobEntryCopy.isSpecial()) {
        if (jobEntryCopy.isStart()) {
            image = imageStart;
        }
        if (jobEntryCopy.isDummy()) {
            image = imageDummy;
        }
    } else {
        String configId = jobEntryCopy.getEntry().getPluginId();
        if (configId != null) {
            image = entryImages.get(configId);
        }
    }
    if (image == null) {
        return;
    }
    drawImage(image, x + xOffset, y + xOffset, iconsize);
// gc.drawImage(image, x+xOffset, y+yOffset, observer);
}
Also used : SwingUniversalImage(org.pentaho.di.core.SwingUniversalImage)

Example 12 with SwingUniversalImage

use of org.pentaho.di.core.SwingUniversalImage in project pentaho-kettle by pentaho.

the class SwingDirectGC method drawImage.

@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);
}
Also used : SwingUniversalImage(org.pentaho.di.core.SwingUniversalImage)

Example 13 with SwingUniversalImage

use of org.pentaho.di.core.SwingUniversalImage in project pentaho-kettle by pentaho.

the class SwingGC method drawImage.

@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);
}
Also used : SwingUniversalImage(org.pentaho.di.core.SwingUniversalImage)

Example 14 with SwingUniversalImage

use of org.pentaho.di.core.SwingUniversalImage in project pentaho-kettle by pentaho.

the class SwingGC method drawStepIcon.

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);
    }
}
Also used : SwingUniversalImage(org.pentaho.di.core.SwingUniversalImage)

Aggregations

SwingUniversalImage (org.pentaho.di.core.SwingUniversalImage)14 FileNotFoundException (java.io.FileNotFoundException)4 KettleException (org.pentaho.di.core.exception.KettleException)4 BufferedImage (java.awt.image.BufferedImage)3 FileInputStream (java.io.FileInputStream)3 InputStream (java.io.InputStream)3 SwingUniversalImageBitmap (org.pentaho.di.core.SwingUniversalImageBitmap)3 SwingUniversalImageSvg (org.pentaho.di.core.SwingUniversalImageSvg)3 SvgImage (org.pentaho.di.core.svg.SvgImage)3 WaitingImageObserver (org.pentaho.reporting.libraries.base.util.WaitingImageObserver)3 HashMap (java.util.HashMap)1 PluginInterface (org.pentaho.di.core.plugins.PluginInterface)1 PluginRegistry (org.pentaho.di.core.plugins.PluginRegistry)1