• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java NotePadDialog类的典型用法和代码示例

java 1次浏览

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

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

示例1: newNote

点赞 3

import org.pentaho.di.ui.spoon.dialog.NotePadDialog; //导入依赖的package包/类
public void newNote() {
  selectionRegion = null;
  String title = BaseMessages.getString(PKG, "TransGraph.Dialog.NoteEditor.Title"); //$NON-NLS-1$
  NotePadDialog dd = new NotePadDialog(transMeta, shell, title); //$NON-NLS-1$
  NotePadMeta n = dd.open();
  if (n != null)
  {
      NotePadMeta npi = new NotePadMeta(n.getNote(), lastclick.x, lastclick.y, ConstUI.NOTE_MIN_SIZE, 
      		ConstUI.NOTE_MIN_SIZE,n.getFontName(),n.getFontSize(), n.isFontBold(), n.isFontItalic(),
      		n.getFontColorRed(),n.getFontColorGreen(),n.getFontColorBlue(),
      		n.getBackGroundColorRed(), n.getBackGroundColorGreen(),n.getBackGroundColorBlue(), 
      		n.getBorderColorRed(), n.getBorderColorGreen(),n.getBorderColorBlue(), 
      		n.isDrawShadow());
      transMeta.addNote(npi);
      spoon.addUndoNew(transMeta, new NotePadMeta[] { npi }, new int[] { transMeta.indexOfNote(npi) });
      redraw();
    }
}
 

开发者ID:yintaoxue,
项目名称:read-open-source-code,
代码行数:19,
代码来源:TransGraph.java

示例2: newNote

点赞 3

import org.pentaho.di.ui.spoon.dialog.NotePadDialog; //导入依赖的package包/类
public void newNote() {
  String title = BaseMessages.getString( PKG, "JobGraph.Dialog.EditNote.Title" );
  NotePadDialog dd = new NotePadDialog( jobMeta, shell, title );
  NotePadMeta n = dd.open();
  if ( n != null ) {
    NotePadMeta npi =
        new NotePadMeta( n.getNote(), lastclick.x, lastclick.y, ConstUI.NOTE_MIN_SIZE, ConstUI.NOTE_MIN_SIZE, n
          .getFontName(), n.getFontSize(), n.isFontBold(), n.isFontItalic(), n.getFontColorRed(), n
          .getFontColorGreen(), n.getFontColorBlue(), n.getBackGroundColorRed(), n.getBackGroundColorGreen(), n
          .getBackGroundColorBlue(), n.getBorderColorRed(), n.getBorderColorGreen(), n.getBorderColorBlue(), n
          .isDrawShadow() );
    jobMeta.addNote( npi );
    spoon.addUndoNew( jobMeta, new NotePadMeta[] { npi }, new int[] { jobMeta.indexOfNote( npi ) } );
    redraw();
  }
}
 

开发者ID:pentaho,
项目名称:pentaho-kettle,
代码行数:17,
代码来源:JobGraph.java

示例3: newNote

点赞 3

import org.pentaho.di.ui.spoon.dialog.NotePadDialog; //导入依赖的package包/类
public void newNote() {
  selectionRegion = null;
  String title = BaseMessages.getString( PKG, "TransGraph.Dialog.NoteEditor.Title" );
  NotePadDialog dd = new NotePadDialog( transMeta, shell, title );
  NotePadMeta n = dd.open();
  if ( n != null ) {
    NotePadMeta npi =
      new NotePadMeta( n.getNote(), lastclick.x, lastclick.y, ConstUI.NOTE_MIN_SIZE, ConstUI.NOTE_MIN_SIZE, n
        .getFontName(), n.getFontSize(), n.isFontBold(), n.isFontItalic(), n.getFontColorRed(), n
        .getFontColorGreen(), n.getFontColorBlue(), n.getBackGroundColorRed(), n.getBackGroundColorGreen(), n
        .getBackGroundColorBlue(), n.getBorderColorRed(), n.getBorderColorGreen(), n.getBorderColorBlue(), n
        .isDrawShadow() );
    transMeta.addNote( npi );
    spoon.addUndoNew( transMeta, new NotePadMeta[] { npi }, new int[] { transMeta.indexOfNote( npi ) } );
    redraw();
  }
}
 

开发者ID:pentaho,
项目名称:pentaho-kettle,
代码行数:18,
代码来源:TransGraph.java

示例4: editNote

点赞 2

import org.pentaho.di.ui.spoon.dialog.NotePadDialog; //导入依赖的package包/类
protected void editNote(NotePadMeta ni) {
  NotePadMeta before = (NotePadMeta) ni.clone();
  String title = BaseMessages.getString(PKG, "JobGraph.Dialog.EditNote.Title");
  
  NotePadDialog dd = new NotePadDialog(jobMeta, shell, title, ni);
  NotePadMeta n = dd.open();
  if (n != null)
  {
      ni.setChanged();
      ni.setNote(n.getNote());
      ni.setFontName(n.getFontName());
      ni.setFontSize(n.getFontSize());
      ni.setFontBold(n.isFontBold());
      ni.setFontItalic(n.isFontItalic());
      // font color
      ni.setFontColorRed(n.getFontColorRed());
      ni.setFontColorGreen(n.getFontColorGreen());
      ni.setFontColorBlue(n.getFontColorBlue());
      // background color
      ni.setBackGroundColorRed(n.getBackGroundColorRed());
      ni.setBackGroundColorGreen(n.getBackGroundColorGreen());
      ni.setBackGroundColorBlue(n.getBackGroundColorBlue());
      // border color
      ni.setBorderColorRed(n.getBorderColorRed());
      ni.setBorderColorGreen(n.getBorderColorGreen());
      ni.setBorderColorBlue(n.getBorderColorBlue());
      ni.setDrawShadow(n.isDrawShadow());

      spoon.addUndoChange(jobMeta, new NotePadMeta[] { before }, new NotePadMeta[] { ni }, new int[] { jobMeta
              .indexOfNote(ni) });
ni.width = ConstUI.NOTE_MIN_SIZE;
ni.height = ConstUI.NOTE_MIN_SIZE;
spoon.refreshGraph();
  }
}
 

开发者ID:yintaoxue,
项目名称:read-open-source-code,
代码行数:36,
代码来源:JobGraph.java

示例5: editNote

点赞 2

import org.pentaho.di.ui.spoon.dialog.NotePadDialog; //导入依赖的package包/类
private void editNote(NotePadMeta ni) {
  NotePadMeta before = (NotePadMeta) ni.clone();

  String title = BaseMessages.getString(PKG, "TransGraph.Dialog.EditNote.Title"); //$NON-NLS-1$
  NotePadDialog dd = new NotePadDialog(transMeta, shell, title, ni);
  NotePadMeta n = dd.open();

  if (n != null)
  {
      ni.setChanged();
      ni.setNote(n.getNote());
      ni.setFontName(n.getFontName());
      ni.setFontSize(n.getFontSize());
      ni.setFontBold(n.isFontBold());
      ni.setFontItalic(n.isFontItalic());
      // font color
      ni.setFontColorRed(n.getFontColorRed());
      ni.setFontColorGreen(n.getFontColorGreen());
      ni.setFontColorBlue(n.getFontColorBlue());
      // background color
      ni.setBackGroundColorRed(n.getBackGroundColorRed());
      ni.setBackGroundColorGreen(n.getBackGroundColorGreen());
      ni.setBackGroundColorBlue(n.getBackGroundColorBlue());
      // border color
      ni.setBorderColorRed(n.getBorderColorRed());
      ni.setBorderColorGreen(n.getBorderColorGreen());
      ni.setBorderColorBlue(n.getBorderColorBlue());
      ni.setDrawShadow(n.isDrawShadow());
      ni.width = ConstUI.NOTE_MIN_SIZE;
      ni.height = ConstUI.NOTE_MIN_SIZE;

      NotePadMeta after = (NotePadMeta) ni.clone();
      spoon.addUndoChange(transMeta, new NotePadMeta[] { before }, new NotePadMeta[] { after }, new int[] { transMeta
              .indexOfNote(ni) });
      spoon.refreshGraph();
  }
}
 

开发者ID:yintaoxue,
项目名称:read-open-source-code,
代码行数:38,
代码来源:TransGraph.java

示例6: editNote

点赞 2

import org.pentaho.di.ui.spoon.dialog.NotePadDialog; //导入依赖的package包/类
protected void editNote( NotePadMeta ni ) {
  NotePadMeta before = (NotePadMeta) ni.clone();
  String title = BaseMessages.getString( PKG, "JobGraph.Dialog.EditNote.Title" );

  NotePadDialog dd = new NotePadDialog( jobMeta, shell, title, ni );
  NotePadMeta n = dd.open();
  if ( n != null ) {
    ni.setChanged();
    ni.setNote( n.getNote() );
    ni.setFontName( n.getFontName() );
    ni.setFontSize( n.getFontSize() );
    ni.setFontBold( n.isFontBold() );
    ni.setFontItalic( n.isFontItalic() );
    // font color
    ni.setFontColorRed( n.getFontColorRed() );
    ni.setFontColorGreen( n.getFontColorGreen() );
    ni.setFontColorBlue( n.getFontColorBlue() );
    // background color
    ni.setBackGroundColorRed( n.getBackGroundColorRed() );
    ni.setBackGroundColorGreen( n.getBackGroundColorGreen() );
    ni.setBackGroundColorBlue( n.getBackGroundColorBlue() );
    // border color
    ni.setBorderColorRed( n.getBorderColorRed() );
    ni.setBorderColorGreen( n.getBorderColorGreen() );
    ni.setBorderColorBlue( n.getBorderColorBlue() );
    ni.setDrawShadow( n.isDrawShadow() );

    spoon.addUndoChange( jobMeta, new NotePadMeta[] { before }, new NotePadMeta[] { ni }, new int[] { jobMeta
      .indexOfNote( ni ) } );
    ni.width = ConstUI.NOTE_MIN_SIZE;
    ni.height = ConstUI.NOTE_MIN_SIZE;
    spoon.refreshGraph();
  }
}
 

开发者ID:pentaho,
项目名称:pentaho-kettle,
代码行数:35,
代码来源:JobGraph.java

示例7: editNote

点赞 2

import org.pentaho.di.ui.spoon.dialog.NotePadDialog; //导入依赖的package包/类
private void editNote( NotePadMeta ni ) {
  NotePadMeta before = (NotePadMeta) ni.clone();

  String title = BaseMessages.getString( PKG, "TransGraph.Dialog.EditNote.Title" );
  NotePadDialog dd = new NotePadDialog( transMeta, shell, title, ni );
  NotePadMeta n = dd.open();

  if ( n != null ) {
    ni.setChanged();
    ni.setNote( n.getNote() );
    ni.setFontName( n.getFontName() );
    ni.setFontSize( n.getFontSize() );
    ni.setFontBold( n.isFontBold() );
    ni.setFontItalic( n.isFontItalic() );
    // font color
    ni.setFontColorRed( n.getFontColorRed() );
    ni.setFontColorGreen( n.getFontColorGreen() );
    ni.setFontColorBlue( n.getFontColorBlue() );
    // background color
    ni.setBackGroundColorRed( n.getBackGroundColorRed() );
    ni.setBackGroundColorGreen( n.getBackGroundColorGreen() );
    ni.setBackGroundColorBlue( n.getBackGroundColorBlue() );
    // border color
    ni.setBorderColorRed( n.getBorderColorRed() );
    ni.setBorderColorGreen( n.getBorderColorGreen() );
    ni.setBorderColorBlue( n.getBorderColorBlue() );
    ni.setDrawShadow( n.isDrawShadow() );
    ni.width = ConstUI.NOTE_MIN_SIZE;
    ni.height = ConstUI.NOTE_MIN_SIZE;

    NotePadMeta after = (NotePadMeta) ni.clone();
    spoon.addUndoChange( transMeta, new NotePadMeta[] { before }, new NotePadMeta[] { after }, new int[] { transMeta
      .indexOfNote( ni ) } );
    spoon.refreshGraph();
  }
}
 

开发者ID:pentaho,
项目名称:pentaho-kettle,
代码行数:37,
代码来源:TransGraph.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)