本文整理汇总了Java中org.pentaho.di.job.entry.JobEntryCopy.isSpecial方法的典型用法代码示例。如果您正苦于以下问题:Java JobEntryCopy.isSpecial方法的具体用法?Java JobEntryCopy.isSpecial怎么用?Java JobEntryCopy.isSpecial使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.pentaho.di.job.entry.JobEntryCopy
的用法示例。
在下文中一共展示了JobEntryCopy.isSpecial方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: drawJobEntryIcon
import org.pentaho.di.job.entry.JobEntryCopy; //导入方法依赖的package包/类
public void drawJobEntryIcon(int x, int y, JobEntryCopy jobEntryCopy) {
if (jobEntryCopy == null)
return; // Don't draw anything
Image image = null;
if (jobEntryCopy.isSpecial()) {
if (jobEntryCopy.isStart()) {
image = GUIResource.getInstance().getImageStart();
}
if (jobEntryCopy.isDummy()) {
image = GUIResource.getInstance().getImageDummy();
}
} else {
String configId = jobEntryCopy.getEntry().getPluginId();
if (configId != null) {
image = GUIResource.getInstance().getImagesJobentries().get(configId);
}
}
if (image==null) {
return;
}
org.eclipse.swt.graphics.Rectangle bounds = image.getBounds();
gc.drawImage(image, 0, 0, bounds.width, bounds.height, x, y, iconsize, iconsize);
}
示例2: drawJobEntryIcon
import org.pentaho.di.job.entry.JobEntryCopy; //导入方法依赖的package包/类
public void drawJobEntryIcon(int x, int y, JobEntryCopy jobEntryCopy) {
if (jobEntryCopy == null)
return; // Don't draw anything
BufferedImage 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;
}
drawPixelatedImage(image, x + xOffset, y + xOffset);
// gc.drawImage(image, x+xOffset, y+yOffset, observer);
}