本文整理汇总了Java中org.eclipse.swt.browser.Browser.setVisible方法的典型用法代码示例。如果您正苦于以下问题:Java Browser.setVisible方法的具体用法?Java Browser.setVisible怎么用?Java Browser.setVisible使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.swt.browser.Browser
的用法示例。
在下文中一共展示了Browser.setVisible方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: widgetSelected
import org.eclipse.swt.browser.Browser; //导入方法依赖的package包/类
public void widgetSelected( SelectionEvent e )
{
if ( e.widget == btn )
{
int i = cbType.getSelectionIndex( );
switch ( i )
{
case 0 :
cm = InteractivityCharts.createSVGHSChart( );
break;
case 1 :
cm = InteractivityCharts.createSTChart( );
break;
case 2 :
cm = InteractivityCharts.createTVChart( );
break;
case 3 :
cm = InteractivityCharts.createURChart( );
break;
}
try
{
RunTimeContext rtc = new RunTimeContext( );
rtc.setULocale( ULocale.getDefault( ) );
idr = PluginSettings.instance( ).getDevice( "dv.SVG" ); //$NON-NLS-1$
Generator gr = Generator.instance( );
Bounds bo = BoundsImpl.create( 0, 0, 450, 300 );
gcs = gr.build( idr.getDisplayServer( ),
cm,
bo,
null,
rtc,
null );
idr.setProperty( IDeviceRenderer.FILE_IDENTIFIER, "c:/test.svg" ); //$NON-NLS-1$
idr.setProperty( IDeviceRenderer.UPDATE_NOTIFIER,
new EmptyUpdateNotifier( cm, gcs.getChartModel( ) ) );
gr.render( idr, gcs );
}
catch ( ChartException ce )
{
ce.printStackTrace( );
}
Shell shell = new Shell( display );
shell.setSize( 620, 450 );
shell.setLayout( new GridLayout( ) );
Browser br = new Browser( shell, SWT.NONE );
br.setLayoutData( new GridData( GridData.FILL_BOTH ) );
br.setUrl( "c:/test.svg" );//$NON-NLS-1$
br.setVisible( true );
shell.open( );
}
}
示例2: main
import org.eclipse.swt.browser.Browser; //导入方法依赖的package包/类
public static void main( String args[] )
{
display = Display.getDefault( );
Shell shell = new Shell( display );
shell.setLocation( display.getClientArea( ).width / 2 - 110, display
.getClientArea( ).height / 2 - 40 );
shell.setSize( 620, 450 );
shell.setLayout( new GridLayout( ) );
Regression_117865_svg siv = new Regression_117865_svg( shell, SWT.NONE );
GridData gd = new GridData( GridData.BEGINNING );
gd.widthHint = 1;
gd.heightHint = 1;
siv.setLayoutData( gd );
try
{
RunTimeContext rtc = new RunTimeContext( );
rtc.setULocale( ULocale.getDefault( ) );
IDeviceRenderer idr = null;
Chart cm = showTooltip_AreaChart( );
idr = PluginSettings.instance( ).getDevice( "dv.SVG" ); //$NON-NLS-1$
Generator gr = Generator.instance( );
GeneratedChartState gcs = null;
Bounds bo = BoundsImpl.create( 0, 0, 450, 300 );
gcs = gr.build( idr.getDisplayServer( ), cm, bo, null, rtc, null );
idr.setProperty( IDeviceRenderer.FILE_IDENTIFIER, "c:/test.svg" ); //$NON-NLS-1$
idr.setProperty(
IDeviceRenderer.UPDATE_NOTIFIER,
new EmptyUpdateNotifier( cm, gcs.getChartModel( ) ) );
gr.render( idr, gcs );
}
catch ( ChartException ce )
{
ce.printStackTrace( );
}
Browser br = new Browser( shell, SWT.NONE );
br.setLayoutData( new GridData( GridData.FILL_BOTH ) );
br.setUrl( "c:/test.svg" );//$NON-NLS-1$
br.setVisible( true );
shell.open( );
while ( !shell.isDisposed( ) )
{
if ( !display.readAndDispatch( ) )
display.sleep( );
}
display.dispose( );
}
示例3: widgetSelected
import org.eclipse.swt.browser.Browser; //导入方法依赖的package包/类
public void widgetSelected( SelectionEvent e )
{
if ( e.widget == btn )
{
int i = cbType.getSelectionIndex( );
switch ( i )
{
case 0 :
cm = BarChart( );
break;
}
try
{
RunTimeContext rtc = new RunTimeContext( );
rtc.setULocale( ULocale.getDefault( ) );
idr = PluginSettings.instance( ).getDevice( "dv.SVG" ); //$NON-NLS-1$
Generator gr = Generator.instance( );
GeneratedChartState gcs = null;
Bounds bo = BoundsImpl.create( 0, 0, 450, 300 );
gcs = gr.build(
idr.getDisplayServer( ),
cm,
bo,
null,
rtc,
null );
idr
.setProperty(
IDeviceRenderer.FILE_IDENTIFIER,
"c:/test.svg" ); //$NON-NLS-1$
idr.setProperty(
IDeviceRenderer.UPDATE_NOTIFIER,
new EmptyUpdateNotifier( cm, gcs.getChartModel( ) ) );
gr.render( idr, gcs );
}
catch ( ChartException ce )
{
ce.printStackTrace( );
}
Shell shell = new Shell( display );
shell.setSize( 620, 450 );
shell.setLayout( new GridLayout( ) );
Browser br = new Browser( shell, SWT.NONE );
br.setLayoutData( new GridData( GridData.FILL_BOTH ) );
br.setUrl( "c:/test.svg" );//$NON-NLS-1$
br.setVisible( true );
shell.open( );
}
}
示例4: main
import org.eclipse.swt.browser.Browser; //导入方法依赖的package包/类
public static void main( String args[] )
{
display = Display.getDefault( );
Shell shell = new Shell( display );
shell.setLocation( display.getClientArea( ).width / 2 - 110, display
.getClientArea( ).height / 2 - 40 );
shell.setSize( 620, 450 );
shell.setLayout( new GridLayout( ) );
Regression_132620_svg siv = new Regression_132620_svg( shell, SWT.NONE );
GridData gd = new GridData( GridData.BEGINNING );
gd.widthHint = 1;
gd.heightHint = 1;
siv.setLayoutData( gd );
try
{
RunTimeContext rtc = new RunTimeContext( );
rtc.setULocale( ULocale.getDefault( ) );
IDeviceRenderer idr = null;
Chart cm = toggleVisibility_BarChart( );
idr = PluginSettings.instance( ).getDevice( "dv.SVG" ); //$NON-NLS-1$
Generator gr = Generator.instance( );
GeneratedChartState gcs = null;
Bounds bo = BoundsImpl.create( 0, 0, 450, 300 );
gcs = gr.build( idr.getDisplayServer( ), cm, bo, null, rtc, null );
idr.setProperty( IDeviceRenderer.FILE_IDENTIFIER, "c:/test.svg" ); //$NON-NLS-1$
idr.setProperty(
IDeviceRenderer.UPDATE_NOTIFIER,
new EmptyUpdateNotifier( cm, gcs.getChartModel( ) ) );
gr.render( idr, gcs );
}
catch ( ChartException ce )
{
ce.printStackTrace( );
}
Browser br = new Browser( shell, SWT.NONE );
br.setLayoutData( new GridData( GridData.FILL_BOTH ) );
br.setUrl( "c:/test.svg" );//$NON-NLS-1$
br.setVisible( true );
shell.open( );
while ( !shell.isDisposed( ) )
{
if ( !display.readAndDispatch( ) )
display.sleep( );
}
display.dispose( );
}
示例5: widgetSelected
import org.eclipse.swt.browser.Browser; //导入方法依赖的package包/类
public void widgetSelected( SelectionEvent e )
{
if ( e.widget == btn )
{
int i = cbType.getSelectionIndex( );
switch ( i )
{
case 0 :
cm = showTooltip_BarChart( );
break;
}
try
{
RunTimeContext rtc = new RunTimeContext( );
rtc.setULocale( ULocale.getDefault( ) );
idr = PluginSettings.instance( ).getDevice( "dv.SVG" ); //$NON-NLS-1$
Generator gr = Generator.instance( );
GeneratedChartState gcs = null;
Bounds bo = BoundsImpl.create( 0, 0, 450, 300 );
gcs = gr.build(
idr.getDisplayServer( ),
cm,
bo,
null,
rtc,
null );
idr
.setProperty(
IDeviceRenderer.FILE_IDENTIFIER,
"c:/test.svg" ); //$NON-NLS-1$
idr.setProperty(
IDeviceRenderer.UPDATE_NOTIFIER,
new EmptyUpdateNotifier( cm, gcs.getChartModel( ) ) );
gr.render( idr, gcs );
}
catch ( ChartException ce )
{
ce.printStackTrace( );
}
Shell shell = new Shell( display );
shell.setSize( 620, 450 );
shell.setLayout( new GridLayout( ) );
Browser br = new Browser( shell, SWT.NONE );
br.setLayoutData( new GridData( GridData.FILL_BOTH ) );
br.setUrl( "c:/test.svg" );//$NON-NLS-1$
br.setVisible( true );
shell.open( );
}
}
示例6: main
import org.eclipse.swt.browser.Browser; //导入方法依赖的package包/类
public static void main( String args[] )
{
display = Display.getDefault( );
Shell shell = new Shell( display );
shell.setLocation( display.getClientArea( ).width / 2 - 110, display
.getClientArea( ).height / 2 - 40 );
shell.setSize( 620, 450 );
shell.setLayout( new GridLayout( ) );
Regression_117865_svg siv = new Regression_117865_svg( shell, SWT.NONE );
GridData gd = new GridData( GridData.BEGINNING );
gd.widthHint = 1;
gd.heightHint = 1;
siv.setLayoutData( gd );
try
{
RunTimeContext rtc = new RunTimeContext( );
rtc.setULocale( ULocale.getDefault( ) );
IDeviceRenderer idr = null;
Chart cm = highlight_BarChart( );
idr = PluginSettings.instance( ).getDevice( "dv.SVG" ); //$NON-NLS-1$
Generator gr = Generator.instance( );
GeneratedChartState gcs = null;
Bounds bo = BoundsImpl.create( 0, 0, 450, 300 );
gcs = gr.build( idr.getDisplayServer( ), cm, bo, null, rtc, null );
idr.setProperty( IDeviceRenderer.FILE_IDENTIFIER, "c:/test.svg" ); //$NON-NLS-1$
idr.setProperty(
IDeviceRenderer.UPDATE_NOTIFIER,
new EmptyUpdateNotifier( cm, gcs.getChartModel( ) ) );
gr.render( idr, gcs );
}
catch ( ChartException ce )
{
ce.printStackTrace( );
}
Browser br = new Browser( shell, SWT.NONE );
br.setLayoutData( new GridData( GridData.FILL_BOTH ) );
br.setUrl( "c:/test.svg" );//$NON-NLS-1$
br.setVisible( true );
shell.open( );
while ( !shell.isDisposed( ) )
{
if ( !display.readAndDispatch( ) )
display.sleep( );
}
display.dispose( );
}
示例7: main
import org.eclipse.swt.browser.Browser; //导入方法依赖的package包/类
public static void main( String args[] )
{
display = Display.getDefault( );
Shell shell = new Shell( display );
shell.setLocation( display.getClientArea( ).width / 2 - 110, display
.getClientArea( ).height / 2 - 40 );
shell.setSize( 620, 450 );
shell.setLayout( new GridLayout( ) );
Regression_117865_svg siv = new Regression_117865_svg( shell, SWT.NONE );
GridData gd = new GridData( GridData.BEGINNING );
gd.widthHint = 1;
gd.heightHint = 1;
siv.setLayoutData( gd );
try
{
RunTimeContext rtc = new RunTimeContext( );
rtc.setULocale( ULocale.getDefault( ) );
IDeviceRenderer idr = null;
Chart cm = toggleVisibility_PieChart( );
idr = PluginSettings.instance( ).getDevice( "dv.SVG" ); //$NON-NLS-1$
Generator gr = Generator.instance( );
GeneratedChartState gcs = null;
Bounds bo = BoundsImpl.create( 0, 0, 450, 300 );
gcs = gr.build( idr.getDisplayServer( ), cm, bo, null, rtc, null );
idr.setProperty( IDeviceRenderer.FILE_IDENTIFIER, "c:/test.svg" ); //$NON-NLS-1$
idr.setProperty(
IDeviceRenderer.UPDATE_NOTIFIER,
new EmptyUpdateNotifier( cm, gcs.getChartModel( ) ) );
gr.render( idr, gcs );
}
catch ( ChartException ce )
{
ce.printStackTrace( );
}
Browser br = new Browser( shell, SWT.NONE );
br.setLayoutData( new GridData( GridData.FILL_BOTH ) );
br.setUrl( "c:/test.svg" );//$NON-NLS-1$
br.setVisible( true );
shell.open( );
while ( !shell.isDisposed( ) )
{
if ( !display.readAndDispatch( ) )
display.sleep( );
}
display.dispose( );
}
示例8: widgetSelected
import org.eclipse.swt.browser.Browser; //导入方法依赖的package包/类
public void widgetSelected( SelectionEvent e )
{
if ( e.widget == btn )
{
int i = cbType.getSelectionIndex( );
switch ( i )
{
case 0 :
cm = createMeterChart( );
break;
}
try
{
RunTimeContext rtc = new RunTimeContext( );
rtc.setULocale( ULocale.getDefault( ) );
idr = PluginSettings.instance( ).getDevice( "dv.SVG" ); //$NON-NLS-1$
Generator gr = Generator.instance( );
GeneratedChartState gcs = null;
Bounds bo = BoundsImpl.create( 0, 0, 450, 300 );
gcs = gr.build(
idr.getDisplayServer( ),
cm,
bo,
null,
rtc,
null );
idr
.setProperty(
IDeviceRenderer.FILE_IDENTIFIER,
"c:/test.svg" ); //$NON-NLS-1$
idr.setProperty(
IDeviceRenderer.UPDATE_NOTIFIER,
new EmptyUpdateNotifier( cm, gcs.getChartModel( ) ) );
gr.render( idr, gcs );
}
catch ( ChartException ce )
{
ce.printStackTrace( );
}
Shell shell = new Shell( display );
shell.setSize( 620, 450 );
shell.setLayout( new GridLayout( ) );
Browser br = new Browser( shell, SWT.NONE );
br.setLayoutData( new GridData( GridData.FILL_BOTH ) );
br.setUrl( "c:/test.svg" );//$NON-NLS-1$
br.setVisible( true );
shell.open( );
}
}
示例9: main
import org.eclipse.swt.browser.Browser; //导入方法依赖的package包/类
public static void main( String args[] )
{
display = Display.getDefault( );
Shell shell = new Shell( display );
shell.setLocation( display.getClientArea( ).width / 2 - 110, display
.getClientArea( ).height / 2 - 40 );
shell.setSize( 620, 450 );
shell.setLayout( new GridLayout( ) );
Regression_117876_svg siv = new Regression_117876_svg( shell, SWT.NONE );
GridData gd = new GridData( GridData.BEGINNING );
gd.widthHint = 1;
gd.heightHint = 1;
siv.setLayoutData( gd );
try
{
RunTimeContext rtc = new RunTimeContext( );
rtc.setULocale( ULocale.getDefault( ) );
IDeviceRenderer idr = null;
Chart cm = toggleVisibility_MeterChart( );
idr = PluginSettings.instance( ).getDevice( "dv.SVG" ); //$NON-NLS-1$
Generator gr = Generator.instance( );
GeneratedChartState gcs = null;
Bounds bo = BoundsImpl.create( 0, 0, 450, 300 );
gcs = gr.build( idr.getDisplayServer( ), cm, bo, null, rtc, null );
idr.setProperty( IDeviceRenderer.FILE_IDENTIFIER, "c:/test.svg" ); //$NON-NLS-1$
idr.setProperty(
IDeviceRenderer.UPDATE_NOTIFIER,
new EmptyUpdateNotifier( cm, gcs.getChartModel( ) ) );
gr.render( idr, gcs );
}
catch ( ChartException ce )
{
ce.printStackTrace( );
}
Browser br = new Browser( shell, SWT.NONE );
br.setLayoutData( new GridData( GridData.FILL_BOTH ) );
br.setUrl( "c:/test.svg" );//$NON-NLS-1$
br.setVisible( true );
shell.open( );
while ( !shell.isDisposed( ) )
{
if ( !display.readAndDispatch( ) )
display.sleep( );
}
display.dispose( );
}
示例10: main
import org.eclipse.swt.browser.Browser; //导入方法依赖的package包/类
public static void main( String args[] )
{
display = Display.getDefault( );
Shell shell = new Shell( display );
shell.setLocation( display.getClientArea( ).width / 2 - 110, display
.getClientArea( ).height / 2 - 40 );
shell.setSize( 620, 450 );
shell.setLayout( new GridLayout( ) );
Regression_128590_svg siv = new Regression_128590_svg( shell, SWT.NONE );
GridData gd = new GridData( GridData.BEGINNING );
gd.widthHint = 1;
gd.heightHint = 1;
siv.setLayoutData( gd );
try
{
RunTimeContext rtc = new RunTimeContext( );
rtc.setULocale( ULocale.getDefault( ) );
IDeviceRenderer idr = null;
Chart cm = showTooltip_BarChart( );
idr = PluginSettings.instance( ).getDevice( "dv.SVG" ); //$NON-NLS-1$
Generator gr = Generator.instance( );
GeneratedChartState gcs = null;
Bounds bo = BoundsImpl.create( 0, 0, 450, 300 );
gcs = gr.build( idr.getDisplayServer( ), cm, bo, null, rtc, null );
idr.setProperty( IDeviceRenderer.FILE_IDENTIFIER, "c:/test.svg" ); //$NON-NLS-1$
idr.setProperty(
IDeviceRenderer.UPDATE_NOTIFIER,
new EmptyUpdateNotifier( cm, gcs.getChartModel( ) ) );
gr.render( idr, gcs );
}
catch ( ChartException ce )
{
ce.printStackTrace( );
}
Browser br = new Browser( shell, SWT.NONE );
br.setLayoutData( new GridData( GridData.FILL_BOTH ) );
br.setUrl( "c:/test.svg" );//$NON-NLS-1$
br.setVisible( true );
shell.open( );
while ( !shell.isDisposed( ) )
{
if ( !display.readAndDispatch( ) )
display.sleep( );
}
display.dispose( );
}