Java Code Examples for org.eclipse.swt.browser.Browser#setVisible()
The following examples show how to use
org.eclipse.swt.browser.Browser#setVisible() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SvgInteractivityViewer.java From birt with Eclipse Public License 1.0 | 4 votes |
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( ); } }
Example 2
Source File: Regression_145712_svg.java From birt with Eclipse Public License 1.0 | 4 votes |
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( ); }
Example 3
Source File: Regression_117511_svg.java From birt with Eclipse Public License 1.0 | 4 votes |
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( ); } }
Example 4
Source File: Regression_132620_svg.java From birt with Eclipse Public License 1.0 | 4 votes |
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( ); }
Example 5
Source File: Regression_131260_svg.java From birt with Eclipse Public License 1.0 | 4 votes |
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( ); } }
Example 6
Source File: Regression_145144_svg.java From birt with Eclipse Public License 1.0 | 4 votes |
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( ); }
Example 7
Source File: Regression_117865_svg.java From birt with Eclipse Public License 1.0 | 4 votes |
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( ); }
Example 8
Source File: Regression_141706_svg.java From birt with Eclipse Public License 1.0 | 4 votes |
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( ); } }
Example 9
Source File: Regression_131658_svg.java From birt with Eclipse Public License 1.0 | 4 votes |
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( ); } }
Example 10
Source File: Regression_136069_svg.java From birt with Eclipse Public License 1.0 | 4 votes |
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( ); } }
Example 11
Source File: Regression_117876_svg.java From birt with Eclipse Public License 1.0 | 4 votes |
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( ); }
Example 12
Source File: Regression_128590_svg.java From birt with Eclipse Public License 1.0 | 4 votes |
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( ); }