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


Java Browser.setVisible方法代码示例

本文整理汇总了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( );
	}
}
 
开发者ID:eclipse,项目名称:birt,代码行数:61,代码来源:SvgInteractivityViewer.java

示例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( );
}
 
开发者ID:eclipse,项目名称:birt,代码行数:56,代码来源:Regression_145712_svg.java

示例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( );
	}
}
 
开发者ID:eclipse,项目名称:birt,代码行数:58,代码来源:Regression_117511_svg.java

示例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( );
}
 
开发者ID:eclipse,项目名称:birt,代码行数:56,代码来源:Regression_132620_svg.java

示例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( );
	}
}
 
开发者ID:eclipse,项目名称:birt,代码行数:58,代码来源:Regression_131260_svg.java

示例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( );
}
 
开发者ID:eclipse,项目名称:birt,代码行数:56,代码来源:Regression_145144_svg.java

示例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( );
}
 
开发者ID:eclipse,项目名称:birt,代码行数:56,代码来源:Regression_117865_svg.java

示例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( );
	}
}
 
开发者ID:eclipse,项目名称:birt,代码行数:58,代码来源:Regression_131658_svg.java

示例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( );
}
 
开发者ID:eclipse,项目名称:birt,代码行数:56,代码来源:Regression_117876_svg.java

示例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( );
}
 
开发者ID:eclipse,项目名称:birt,代码行数:55,代码来源:Regression_128590_svg.java


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