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);
}
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);
}
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);
}
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);
}
}
Aggregations