|
Eclipse Draw2d 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.draw2d.LightweightSystem
The LightweightSystem is the link between SWT and draw2d.
It is the component that provides the ability for Figures
to
be hosted on an SWT Canvas.
Normal procedure for using a LightweightSystem:
1) Create an SWT Canvas.
2) Create a LightweightSystem passing it that Canvas.
3) Create a draw2d Figure and call setContents(IFigure).
This Figure will be the top-level Figure of the draw2d
application.
Nested Class Summary | |
protected class |
LightweightSystem.EventHandler
|
protected class |
LightweightSystem.RootFigure
|
Constructor Summary | |
LightweightSystem()
|
|
LightweightSystem(Canvas c)
Constructs a LightweightSystem on Canvas c. |
Method Summary | |
protected void |
addListeners()
Adds SWT listeners to the LightWeightSystem's Canvas. |
protected void |
controlResized()
|
protected LightweightSystem.EventHandler |
createEventHandler()
Returns a new instance of this LightweightSystem's. |
protected LightweightSystem.RootFigure |
createRootFigure()
|
protected EventDispatcher |
getEventDispatcher()
Returns this LightwightSystem's EventDispatcher. |
IFigure |
getRootFigure()
Returns this LightweightSystem's root Figure. |
UpdateManager |
getUpdateManager()
Returns this LightweightSystem's UpdateManager. |
protected void |
init()
|
void |
paint(GC gc)
Invokes this LightweightSystem's UpdateManager
to paint this LightweightSystem's Canvas and contents. |
void |
setContents(IFigure figure)
Sets the contents of the LightweightSystem to the passed Figure. |
void |
setControl(Canvas c)
Sets the LightweightSystem's control to the passed Canvas. |
void |
setEventDispatcher(EventDispatcher dispatcher)
Sets this LightweightSystem's EventDispatcher to dispatcher. |
protected void |
setRootPaneFigure(LightweightSystem.RootFigure root)
|
void |
setUpdateManager(UpdateManager um)
Sets this LightweightSystem's UpdateManager to um. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LightweightSystem(Canvas c)
public LightweightSystem()
Method Detail |
protected void addListeners()
EventDispatcher
.
protected void controlResized()
protected EventDispatcher getEventDispatcher()
public IFigure getRootFigure()
protected final LightweightSystem.EventHandler createEventHandler()
protected LightweightSystem.RootFigure createRootFigure()
public UpdateManager getUpdateManager()
protected void init()
public void paint(GC gc)
UpdateManager
to paint this LightweightSystem's Canvas and contents.
public void setContents(IFigure figure)
public void setControl(Canvas c)
public void setEventDispatcher(EventDispatcher dispatcher)
protected void setRootPaneFigure(LightweightSystem.RootFigure root)
public void setUpdateManager(UpdateManager um)
|
Eclipse Draw2d 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |