本文整理了Java中org.eclipse.swt.widgets.Canvas.redraw()
方法的一些代码示例,展示了Canvas.redraw()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Canvas.redraw()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Canvas
类名称:Canvas
方法名:redraw
暂无
代码示例来源:origin: pentaho/pentaho-kettle
public void widgetSelected( SelectionEvent se ) {
Slider sl = (Slider) se.widget;
scale = sl.getSelection();
wCanvas.redraw();
}
} );
代码示例来源:origin: pentaho/pentaho-kettle
public void widgetSelected( SelectionEvent se ) {
Slider sl = (Slider) se.widget;
nrcols = sl.getSelection();
wCanvas.redraw();
}
} );
代码示例来源:origin: pentaho/pentaho-kettle
public void widgetSelected( SelectionEvent se ) {
Slider sl = (Slider) se.widget;
nrrows = sl.getSelection();
wCanvas.redraw();
}
} );
代码示例来源:origin: pentaho/pentaho-kettle
void refreshObject() {
int index = list.getSelectionIndex();
if ( index == -1 ) {
return;
}
if ( check.getSelection() ) {
ByteArrayOutputStream stream = new ByteArrayOutputStream();
PrintStream s = new PrintStream( stream );
errors[index].printStackTrace( s );
text.setText( stream.toString() );
text.setVisible( true );
canvas.setVisible( false );
} else {
canvas.setVisible( true );
text.setVisible( false );
canvas.redraw();
}
}
代码示例来源:origin: pentaho/pentaho-kettle
public void widgetSelected( SelectionEvent arg0 ) {
graphFont.dispose();
graphFontData = props.getDefaultFontData();
graphFont = new Font( display, graphFontData );
wGFont.redraw();
}
} );
代码示例来源:origin: pentaho/pentaho-kettle
public void redraw() {
if ( isDisposed() || canvas.isDisposed() ) {
return;
}
canvas.redraw();
setZoomLabel();
}
代码示例来源:origin: pentaho/pentaho-kettle
public void widgetSelected( SelectionEvent arg0 ) {
noteFontData = props.getDefaultFontData();
noteFont.dispose();
noteFont = new Font( display, noteFontData );
wNFont.redraw();
}
} );
代码示例来源:origin: pentaho/pentaho-kettle
public void widgetSelected( SelectionEvent arg0 ) {
tabColor.dispose();
tabColorRGB = new RGB( ConstUI.COLOR_TAB_RED, ConstUI.COLOR_TAB_GREEN, ConstUI.COLOR_TAB_BLUE );
tabColor = new Color( display, tabColorRGB );
wTabColor.setBackground( tabColor );
wTabColor.redraw();
}
} );
代码示例来源:origin: pentaho/pentaho-kettle
public void widgetSelected( SelectionEvent arg0 ) {
background.dispose();
backgroundRGB =
new RGB( ConstUI.COLOR_BACKGROUND_RED, ConstUI.COLOR_BACKGROUND_GREEN, ConstUI.COLOR_BACKGROUND_BLUE );
background = new Color( display, backgroundRGB );
wBGColor.setBackground( background );
wBGColor.redraw();
}
} );
代码示例来源:origin: pentaho/pentaho-kettle
public void run() {
if ( metricsComposite != null && !metricsComposite.isDisposed() && canvas != null && !canvas.isDisposed()
&& jobMetricsTab != null && !jobMetricsTab.isDisposed() ) {
if ( jobMetricsTab.isShowing() ) {
canvas.redraw();
}
}
}
} );
代码示例来源:origin: pentaho/pentaho-kettle
public void widgetSelected( SelectionEvent arg0 ) {
graphColor.dispose();
graphColorRGB = new RGB( ConstUI.COLOR_GRAPH_RED, ConstUI.COLOR_GRAPH_GREEN, ConstUI.COLOR_GRAPH_BLUE );
graphColor = new Color( display, graphColorRGB );
wGrColor.setBackground( graphColor );
wGrColor.redraw();
}
} );
代码示例来源:origin: pentaho/pentaho-kettle
public void run() {
if ( metricsComposite != null
&& !metricsComposite.isDisposed() && canvas != null && !canvas.isDisposed() && transMetricsTab != null
&& !transMetricsTab.isDisposed() ) {
if ( transMetricsTab.isShowing() ) {
canvas.redraw();
}
}
}
} );
代码示例来源:origin: pentaho/pentaho-kettle
public void widgetSelected( SelectionEvent arg0 ) {
FontDialog fd = new FontDialog( shell );
fd.setFontList( new FontData[] { graphFontData } );
FontData newfd = fd.open();
if ( newfd != null ) {
graphFontData = newfd;
graphFont.dispose();
graphFont = new Font( display, graphFontData );
wGFont.redraw();
}
}
} );
代码示例来源:origin: pentaho/pentaho-kettle
public void widgetSelected( SelectionEvent arg0 ) {
FontDialog fd = new FontDialog( shell );
fd.setFontList( new FontData[] { noteFontData } );
FontData newfd = fd.open();
if ( newfd != null ) {
noteFontData = newfd;
noteFont.dispose();
noteFont = new Font( display, noteFontData );
wNFont.redraw();
}
}
} );
代码示例来源:origin: pentaho/pentaho-kettle
public void widgetSelected( SelectionEvent arg0 ) {
FontDialog fd = new FontDialog( shell );
fd.setFontList( new FontData[] { fixedFontData } );
FontData newfd = fd.open();
if ( newfd != null ) {
fixedFontData = newfd;
fixedFont.dispose();
fixedFont = new Font( display, fixedFontData );
wFFont.redraw();
}
}
} );
代码示例来源:origin: pentaho/pentaho-kettle
public void widgetSelected( SelectionEvent arg0 ) {
ColorDialog cd = new ColorDialog( shell );
cd.setRGB( props.getBackgroundRGB() );
RGB newbg = cd.open();
if ( newbg != null ) {
backgroundRGB = newbg;
background.dispose();
background = new Color( display, backgroundRGB );
wBGColor.setBackground( background );
wBGColor.redraw();
}
}
} );
代码示例来源:origin: pentaho/pentaho-kettle
public void widgetSelected( SelectionEvent arg0 ) {
ColorDialog cd = new ColorDialog( shell );
cd.setRGB( props.getGraphColorRGB() );
RGB newbg = cd.open();
if ( newbg != null ) {
graphColorRGB = newbg;
graphColor.dispose();
graphColor = new Color( display, graphColorRGB );
wGrColor.setBackground( graphColor );
wGrColor.redraw();
}
}
} );
代码示例来源:origin: pentaho/pentaho-kettle
public void widgetSelected( SelectionEvent arg0 ) {
ColorDialog cd = new ColorDialog( shell );
cd.setRGB( props.getTabColorRGB() );
RGB newbg = cd.open();
if ( newbg != null ) {
tabColorRGB = newbg;
tabColor.dispose();
tabColor = new Color( display, tabColorRGB );
wTabColor.setBackground( tabColor );
wTabColor.redraw();
}
}
} );
代码示例来源:origin: pentaho/pentaho-kettle
list.removeAll();
text.setText( "" );
canvas.redraw();
for ( int i = 0; i < objects.length; i++ ) {
list.add( objects[i].toString() );
代码示例来源:origin: pentaho/pentaho-kettle
public void widgetSelected( SelectionEvent arg0 ) {
fixedFontData = new FontData( PropsUI.getInstance().getFixedFont().getName(),
PropsUI.getInstance().getFixedFont().getHeight(), PropsUI.getInstance().getFixedFont().getStyle() );
fixedFont.dispose();
fixedFont = new Font( display, fixedFontData );
wFFont.redraw();
}
} );
内容来源于网络,如有侵权,请联系作者删除!