g-Eclipse
Release 1.0.0

eu.geclipse.ui.visualisation
Class VisComposite

java.lang.Object
  extended by Composite
      extended by eu.geclipse.ui.visualisation.VisComposite

public class VisComposite
extends Composite

This class is simply an SWT Composite enhanced by the org.eclipse.swt.awt.SWT_AWT bridge class, which makes it possible to embed AWT components in SWT and vice versa. VisComposite contains SWT Composite and an an AWT Frame. After initialization of the SWT Composite, the AWT Frame gets initialized through the bridge class, using the SWT Composite as its parent. The subclasses of AbstractVisualisationWindow can then make use of the addToAWTFrame methods to readily assign their graphical components or a heavy weight component like the Canvas to this frame.


Constructor Summary
VisComposite(Composite vis, int style)
           
 
Method Summary
 void addToAWTFrame(java.awt.Canvas panel)
           
 void addToAWTFrame(java.awt.Component panel)
           
 void dispose()
           
 Label getStatsLabel()
           
 void setStatsLabel(Label statsLabel)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VisComposite

public VisComposite(Composite vis,
                    int style)
Parameters:
vis -
style -
Method Detail

addToAWTFrame

public void addToAWTFrame(java.awt.Canvas panel)
Parameters:
panel -

addToAWTFrame

public void addToAWTFrame(java.awt.Component panel)
Parameters:
panel -

dispose

public void dispose()

setStatsLabel

public void setStatsLabel(Label statsLabel)
Parameters:
statsLabel -

getStatsLabel

public Label getStatsLabel()
Returns:

g-Eclipse
Release 1.0.0