本文整理汇总了Java中org.pentaho.di.job.JobPainter.setStartHopEntry方法的典型用法代码示例。如果您正苦于以下问题:Java JobPainter.setStartHopEntry方法的具体用法?Java JobPainter.setStartHopEntry怎么用?Java JobPainter.setStartHopEntry使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.pentaho.di.job.JobPainter
的用法示例。
在下文中一共展示了JobPainter.setStartHopEntry方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getJobImage
import org.pentaho.di.job.JobPainter; //导入方法依赖的package包/类
public Image getJobImage(Device device, int x, int y, float magnificationFactor) {
GCInterface gc = new SWTGC(device, new Point(x, y), iconsize);
JobPainter jobPainter = new JobPainter( gc,
jobMeta, new Point(x, y), new SwtScrollBar(hori), new SwtScrollBar(vert), hop_candidate, drop_candidate,
selectionRegion,
areaOwners,
mouseOverEntries,
PropsUI.getInstance().getIconSize(),
PropsUI.getInstance().getLineWidth(),
PropsUI.getInstance().getCanvasGridSize(),
PropsUI.getInstance().getShadowSize(),
PropsUI.getInstance().isAntiAliasingEnabled(),
PropsUI.getInstance().getNoteFont().getName(),
PropsUI.getInstance().getNoteFont().getHeight()
);
jobPainter.setMagnification(magnificationFactor);
jobPainter.setEntryLogMap(entryLogMap);
jobPainter.setStartHopEntry(startHopEntry);
jobPainter.setEndHopLocation(endHopLocation);
jobPainter.setEndHopEntry(endHopEntry);
jobPainter.setNoInputEntry(noInputEntry);
if (job!=null) {
jobPainter.setJobEntryResults(job.getJobEntryResults());
} else {
jobPainter.setJobEntryResults(new ArrayList<JobEntryResult>());
}
List<JobEntryCopy> activeJobEntries = new ArrayList<JobEntryCopy>();
if (job!=null) {
if (job.getActiveJobEntryJobs().size()>0) {
activeJobEntries.addAll( job.getActiveJobEntryJobs().keySet() );
}
if (job.getActiveJobEntryTransformations().size()>0) {
activeJobEntries.addAll( job.getActiveJobEntryTransformations().keySet() );
}
}
jobPainter.setActiveJobEntries(activeJobEntries);
jobPainter.drawJob();
return (Image) gc.getImage();
}
示例2: getJobImage
import org.pentaho.di.job.JobPainter; //导入方法依赖的package包/类
public Image getJobImage( Device device, int x, int y, float magnificationFactor ) {
GCInterface gc = new SWTGC( device, new Point( x, y ), iconsize );
int gridSize =
PropsUI.getInstance().isShowCanvasGridEnabled() ? PropsUI.getInstance().getCanvasGridSize() : 1;
JobPainter jobPainter =
new JobPainter(
gc, jobMeta, new Point( x, y ), new SwtScrollBar( hori ), new SwtScrollBar( vert ), hop_candidate,
drop_candidate, selectionRegion, areaOwners, mouseOverEntries, PropsUI.getInstance().getIconSize(),
PropsUI.getInstance().getLineWidth(), gridSize, PropsUI
.getInstance().getShadowSize(), PropsUI.getInstance().isAntiAliasingEnabled(), PropsUI
.getInstance().getNoteFont().getName(), PropsUI.getInstance().getNoteFont().getHeight() );
jobPainter.setMagnification( magnificationFactor );
jobPainter.setEntryLogMap( entryLogMap );
jobPainter.setStartHopEntry( startHopEntry );
jobPainter.setEndHopLocation( endHopLocation );
jobPainter.setEndHopEntry( endHopEntry );
jobPainter.setNoInputEntry( noInputEntry );
if ( job != null ) {
jobPainter.setJobEntryResults( job.getJobEntryResults() );
} else {
jobPainter.setJobEntryResults( new ArrayList<JobEntryResult>() );
}
List<JobEntryCopy> activeJobEntries = new ArrayList<>();
if ( job != null ) {
if ( job.getActiveJobEntryJobs().size() > 0 ) {
activeJobEntries.addAll( job.getActiveJobEntryJobs().keySet() );
}
if ( job.getActiveJobEntryTransformations().size() > 0 ) {
activeJobEntries.addAll( job.getActiveJobEntryTransformations().keySet() );
}
}
jobPainter.setActiveJobEntries( activeJobEntries );
jobPainter.drawJob();
return (Image) gc.getImage();
}