org.eclipse.swt.widgets.Canvas.redraw()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(5.5k)|赞(0)|评价(0)|浏览(202)

本文整理了Java中org.eclipse.swt.widgets.Canvas.redraw()方法的一些代码示例,展示了Canvas.redraw()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Canvas.redraw()方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Canvas
类名称:Canvas
方法名:redraw

Canvas.redraw介绍

暂无

代码示例

代码示例来源:origin: pentaho/pentaho-kettle

  1. public void widgetSelected( SelectionEvent se ) {
  2. Slider sl = (Slider) se.widget;
  3. scale = sl.getSelection();
  4. wCanvas.redraw();
  5. }
  6. } );

代码示例来源:origin: pentaho/pentaho-kettle

  1. public void widgetSelected( SelectionEvent se ) {
  2. Slider sl = (Slider) se.widget;
  3. nrcols = sl.getSelection();
  4. wCanvas.redraw();
  5. }
  6. } );

代码示例来源:origin: pentaho/pentaho-kettle

  1. public void widgetSelected( SelectionEvent se ) {
  2. Slider sl = (Slider) se.widget;
  3. nrrows = sl.getSelection();
  4. wCanvas.redraw();
  5. }
  6. } );

代码示例来源:origin: pentaho/pentaho-kettle

  1. void refreshObject() {
  2. int index = list.getSelectionIndex();
  3. if ( index == -1 ) {
  4. return;
  5. }
  6. if ( check.getSelection() ) {
  7. ByteArrayOutputStream stream = new ByteArrayOutputStream();
  8. PrintStream s = new PrintStream( stream );
  9. errors[index].printStackTrace( s );
  10. text.setText( stream.toString() );
  11. text.setVisible( true );
  12. canvas.setVisible( false );
  13. } else {
  14. canvas.setVisible( true );
  15. text.setVisible( false );
  16. canvas.redraw();
  17. }
  18. }

代码示例来源:origin: pentaho/pentaho-kettle

  1. public void widgetSelected( SelectionEvent arg0 ) {
  2. graphFont.dispose();
  3. graphFontData = props.getDefaultFontData();
  4. graphFont = new Font( display, graphFontData );
  5. wGFont.redraw();
  6. }
  7. } );

代码示例来源:origin: pentaho/pentaho-kettle

  1. public void redraw() {
  2. if ( isDisposed() || canvas.isDisposed() ) {
  3. return;
  4. }
  5. canvas.redraw();
  6. setZoomLabel();
  7. }

代码示例来源:origin: pentaho/pentaho-kettle

  1. public void widgetSelected( SelectionEvent arg0 ) {
  2. noteFontData = props.getDefaultFontData();
  3. noteFont.dispose();
  4. noteFont = new Font( display, noteFontData );
  5. wNFont.redraw();
  6. }
  7. } );

代码示例来源:origin: pentaho/pentaho-kettle

  1. public void widgetSelected( SelectionEvent arg0 ) {
  2. tabColor.dispose();
  3. tabColorRGB = new RGB( ConstUI.COLOR_TAB_RED, ConstUI.COLOR_TAB_GREEN, ConstUI.COLOR_TAB_BLUE );
  4. tabColor = new Color( display, tabColorRGB );
  5. wTabColor.setBackground( tabColor );
  6. wTabColor.redraw();
  7. }
  8. } );

代码示例来源:origin: pentaho/pentaho-kettle

  1. public void widgetSelected( SelectionEvent arg0 ) {
  2. background.dispose();
  3. backgroundRGB =
  4. new RGB( ConstUI.COLOR_BACKGROUND_RED, ConstUI.COLOR_BACKGROUND_GREEN, ConstUI.COLOR_BACKGROUND_BLUE );
  5. background = new Color( display, backgroundRGB );
  6. wBGColor.setBackground( background );
  7. wBGColor.redraw();
  8. }
  9. } );

代码示例来源:origin: pentaho/pentaho-kettle

  1. public void run() {
  2. if ( metricsComposite != null && !metricsComposite.isDisposed() && canvas != null && !canvas.isDisposed()
  3. && jobMetricsTab != null && !jobMetricsTab.isDisposed() ) {
  4. if ( jobMetricsTab.isShowing() ) {
  5. canvas.redraw();
  6. }
  7. }
  8. }
  9. } );

代码示例来源:origin: pentaho/pentaho-kettle

  1. public void widgetSelected( SelectionEvent arg0 ) {
  2. graphColor.dispose();
  3. graphColorRGB = new RGB( ConstUI.COLOR_GRAPH_RED, ConstUI.COLOR_GRAPH_GREEN, ConstUI.COLOR_GRAPH_BLUE );
  4. graphColor = new Color( display, graphColorRGB );
  5. wGrColor.setBackground( graphColor );
  6. wGrColor.redraw();
  7. }
  8. } );

代码示例来源:origin: pentaho/pentaho-kettle

  1. public void run() {
  2. if ( metricsComposite != null
  3. && !metricsComposite.isDisposed() && canvas != null && !canvas.isDisposed() && transMetricsTab != null
  4. && !transMetricsTab.isDisposed() ) {
  5. if ( transMetricsTab.isShowing() ) {
  6. canvas.redraw();
  7. }
  8. }
  9. }
  10. } );

代码示例来源:origin: pentaho/pentaho-kettle

  1. public void widgetSelected( SelectionEvent arg0 ) {
  2. FontDialog fd = new FontDialog( shell );
  3. fd.setFontList( new FontData[] { graphFontData } );
  4. FontData newfd = fd.open();
  5. if ( newfd != null ) {
  6. graphFontData = newfd;
  7. graphFont.dispose();
  8. graphFont = new Font( display, graphFontData );
  9. wGFont.redraw();
  10. }
  11. }
  12. } );

代码示例来源:origin: pentaho/pentaho-kettle

  1. public void widgetSelected( SelectionEvent arg0 ) {
  2. FontDialog fd = new FontDialog( shell );
  3. fd.setFontList( new FontData[] { noteFontData } );
  4. FontData newfd = fd.open();
  5. if ( newfd != null ) {
  6. noteFontData = newfd;
  7. noteFont.dispose();
  8. noteFont = new Font( display, noteFontData );
  9. wNFont.redraw();
  10. }
  11. }
  12. } );

代码示例来源:origin: pentaho/pentaho-kettle

  1. public void widgetSelected( SelectionEvent arg0 ) {
  2. FontDialog fd = new FontDialog( shell );
  3. fd.setFontList( new FontData[] { fixedFontData } );
  4. FontData newfd = fd.open();
  5. if ( newfd != null ) {
  6. fixedFontData = newfd;
  7. fixedFont.dispose();
  8. fixedFont = new Font( display, fixedFontData );
  9. wFFont.redraw();
  10. }
  11. }
  12. } );

代码示例来源:origin: pentaho/pentaho-kettle

  1. public void widgetSelected( SelectionEvent arg0 ) {
  2. ColorDialog cd = new ColorDialog( shell );
  3. cd.setRGB( props.getBackgroundRGB() );
  4. RGB newbg = cd.open();
  5. if ( newbg != null ) {
  6. backgroundRGB = newbg;
  7. background.dispose();
  8. background = new Color( display, backgroundRGB );
  9. wBGColor.setBackground( background );
  10. wBGColor.redraw();
  11. }
  12. }
  13. } );

代码示例来源:origin: pentaho/pentaho-kettle

  1. public void widgetSelected( SelectionEvent arg0 ) {
  2. ColorDialog cd = new ColorDialog( shell );
  3. cd.setRGB( props.getGraphColorRGB() );
  4. RGB newbg = cd.open();
  5. if ( newbg != null ) {
  6. graphColorRGB = newbg;
  7. graphColor.dispose();
  8. graphColor = new Color( display, graphColorRGB );
  9. wGrColor.setBackground( graphColor );
  10. wGrColor.redraw();
  11. }
  12. }
  13. } );

代码示例来源:origin: pentaho/pentaho-kettle

  1. public void widgetSelected( SelectionEvent arg0 ) {
  2. ColorDialog cd = new ColorDialog( shell );
  3. cd.setRGB( props.getTabColorRGB() );
  4. RGB newbg = cd.open();
  5. if ( newbg != null ) {
  6. tabColorRGB = newbg;
  7. tabColor.dispose();
  8. tabColor = new Color( display, tabColorRGB );
  9. wTabColor.setBackground( tabColor );
  10. wTabColor.redraw();
  11. }
  12. }
  13. } );

代码示例来源:origin: pentaho/pentaho-kettle

  1. list.removeAll();
  2. text.setText( "" );
  3. canvas.redraw();
  4. for ( int i = 0; i < objects.length; i++ ) {
  5. list.add( objects[i].toString() );

代码示例来源:origin: pentaho/pentaho-kettle

  1. public void widgetSelected( SelectionEvent arg0 ) {
  2. fixedFontData = new FontData( PropsUI.getInstance().getFixedFont().getName(),
  3. PropsUI.getInstance().getFixedFont().getHeight(), PropsUI.getInstance().getFixedFont().getStyle() );
  4. fixedFont.dispose();
  5. fixedFont = new Font( display, fixedFontData );
  6. wFFont.redraw();
  7. }
  8. } );

相关文章

Canvas类方法