当前位置: 首页>>代码示例>>Java>>正文


Java EImage类代码示例

本文整理汇总了Java中org.pentaho.di.core.gui.PrimitiveGCInterface.EImage的典型用法代码示例。如果您正苦于以下问题:Java EImage类的具体用法?Java EImage怎么用?Java EImage使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


EImage类属于org.pentaho.di.core.gui.PrimitiveGCInterface包,在下文中一共展示了EImage类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getStreamIconImage

import org.pentaho.di.core.gui.PrimitiveGCInterface.EImage; //导入依赖的package包/类
public static EImage getStreamIconImage( StreamIcon streamIcon ) {
  switch ( streamIcon ) {
    case TRUE:
      return EImage.TRUE;
    case FALSE:
      return EImage.FALSE;
    case ERROR:
      return EImage.ERROR;
    case INFO:
      return EImage.INFO;
    case TARGET:
      return EImage.TARGET;
    case INPUT:
      return EImage.INPUT;
    case OUTPUT:
      return EImage.OUTPUT;
    default:
      return EImage.ARROW;
  }
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:21,代码来源:BasePainter.java

示例2: getStreamIconImage

import org.pentaho.di.core.gui.PrimitiveGCInterface.EImage; //导入依赖的package包/类
public static EImage getStreamIconImage(StreamIcon streamIcon) {
switch(streamIcon) {
case TRUE   : return EImage.TRUE;
case FALSE  : return EImage.FALSE;
case ERROR  : return EImage.ERROR;
case INFO   : return EImage.INFO;
case TARGET : return EImage.TARGET;
case INPUT  : return EImage.INPUT;
case OUTPUT : return EImage.OUTPUT;
default:      return EImage.ARROW;
}
  }
 
开发者ID:jjeb,项目名称:kettle-trunk,代码行数:13,代码来源:BasePainter.java

示例3: drawArrow

import org.pentaho.di.core.gui.PrimitiveGCInterface.EImage; //导入依赖的package包/类
protected void drawArrow( EImage arrow, int[] line, Hop hop, Object startObject, Object endObject ) {
  Point screen_from = real2screen( line[0], line[1] );
  Point screen_to = real2screen( line[2], line[3] );

  drawArrow( arrow, screen_from.x, screen_from.y, screen_to.x, screen_to.y, theta, calcArrowLength(), -1, hop,
    startObject, endObject );
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:8,代码来源:BasePainter.java

示例4: drawLine

import org.pentaho.di.core.gui.PrimitiveGCInterface.EImage; //导入依赖的package包/类
/**
 * Calculates line coordinates from center to center.
 */
protected void drawLine( JobHopMeta jobHop, boolean is_candidate ) {
  int[] line = getLine( jobHop.getFromEntry(), jobHop.getToEntry() );

  gc.setLineWidth( linewidth );
  EColor col;

  if ( jobHop.getFromEntry().isLaunchingInParallel() ) {
    gc.setLineStyle( ELineStyle.PARALLEL );
  } else {
    gc.setLineStyle( ELineStyle.SOLID );
  }

  EImage arrow;
  if ( is_candidate ) {
    col = EColor.BLUE;
    arrow = EImage.ARROW_CANDIDATE;
  } else if ( jobHop.isEnabled() ) {
    if ( jobHop.isUnconditional() ) {
      col = EColor.HOP_DEFAULT;
      arrow = EImage.ARROW_DEFAULT;
    } else {
      if ( jobHop.getEvaluation() ) {
        col = EColor.HOP_OK;
        arrow = EImage.ARROW_OK;
      } else {
        col = EColor.RED;
        arrow = EImage.ARROW_ERROR;
        gc.setLineStyle( ELineStyle.DASH );
      }
    }
  } else {
    col = EColor.GRAY;
    arrow = EImage.ARROW_DISABLED;
  }

  gc.setForeground( col );

  if ( jobHop.isSplit() ) {
    gc.setLineWidth( linewidth + 2 );
  }
  drawArrow( arrow, line, jobHop );
  if ( jobHop.isSplit() ) {
    gc.setLineWidth( linewidth );
  }

  gc.setForeground( EColor.BLACK );
  gc.setBackground( EColor.BACKGROUND );
  gc.setLineStyle( ELineStyle.SOLID );
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:53,代码来源:JobPainter.java

示例5: drawArrow

import org.pentaho.di.core.gui.PrimitiveGCInterface.EImage; //导入依赖的package包/类
private void drawArrow( EImage arrow, int[] line, JobHopMeta jobHop ) {
  drawArrow( arrow, line, jobHop, jobHop.getFromEntry(), jobHop.getToEntry() );
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:4,代码来源:JobPainter.java

示例6: drawLine

import org.pentaho.di.core.gui.PrimitiveGCInterface.EImage; //导入依赖的package包/类
private void drawLine( StepMeta fs, StepMeta ts, TransHopMeta hi, boolean is_candidate ) {
  int[] line = getLine( fs, ts );

  EColor col;
  ELineStyle linestyle = ELineStyle.SOLID;
  int activeLinewidth = linewidth;

  EImage arrow;
  if ( is_candidate ) {
    col = EColor.BLUE;
    arrow = EImage.ARROW_CANDIDATE;
  } else {
    if ( hi.isEnabled() ) {
      if ( fs.isSendingErrorRowsToStep( ts ) ) {
        col = EColor.RED;
        linestyle = ELineStyle.DASH;
        activeLinewidth = linewidth + 1;
        arrow = EImage.ARROW_ERROR;
      } else {
        col = EColor.HOP_DEFAULT;
        arrow = EImage.ARROW_DEFAULT;
      }
    } else {
      col = EColor.GRAY;
      arrow = EImage.ARROW_DISABLED;
    }
  }
  if ( hi.split ) {
    activeLinewidth = linewidth + 2;
  }

  // Check to see if the source step is an info step for the target step.
  //
  StepIOMetaInterface ioMeta = ts.getStepMetaInterface().getStepIOMeta();
  List<StreamInterface> infoStreams = ioMeta.getInfoStreams();
  if ( !infoStreams.isEmpty() ) {
    // Check this situation, the source step can't run in multiple copies!
    //
    for ( StreamInterface stream : infoStreams ) {
      if ( fs.getName().equalsIgnoreCase( stream.getStepname() ) ) {
        // This is the info step over this hop!
        //
        if ( fs.getCopies() > 1 ) {
          // This is not a desirable situation, it will always end in error.
          // As such, it's better not to give feedback on it.
          // We do this by drawing an error icon over the hop...
          //
          col = EColor.RED;
          arrow = EImage.ARROW_ERROR;
        }
      }
    }
  }

  gc.setForeground( col );
  gc.setLineStyle( linestyle );
  gc.setLineWidth( activeLinewidth );

  drawArrow( arrow, line, hi, fs, ts );

  if ( hi.split ) {
    gc.setLineWidth( linewidth );
  }

  gc.setForeground( EColor.BLACK );
  gc.setBackground( EColor.BACKGROUND );
  gc.setLineStyle( ELineStyle.SOLID );
}
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:69,代码来源:TransPainter.java

示例7: getDistributionImage

import org.pentaho.di.core.gui.PrimitiveGCInterface.EImage; //导入依赖的package包/类
/**
 * Which mini-icon needs to be shown on the hop?
 *
 * @return the available code EImage or null if the standard icon needs to be used.
 */
public EImage getDistributionImage();
 
开发者ID:pentaho,项目名称:pentaho-kettle,代码行数:7,代码来源:RowDistributionInterface.java


注:本文中的org.pentaho.di.core.gui.PrimitiveGCInterface.EImage类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。