Package org.eclipse.draw2d
Class ScalableLightweightSystem
java.lang.Object
org.eclipse.draw2d.LightweightSystem
org.eclipse.draw2d.ScalableLightweightSystem
Custom lightweight-system that is used in combination with the
Important: This class is only public so that it can be referencd in the other GEF plugins. This class must not be used together with a
draw2d.enableAutoscale environment variable. The root figure of this
class implements the IScalablePane interface and is automatically
scaled to match the monitor zoom.Important: This class is only public so that it can be referencd in the other GEF plugins. This class must not be used together with a
Viewport. Otherwise the scrollbar and content are always rendered as
if at 100% zoom (at least on Windows}.- @noreference
- This class is not intended to be referenced by clients.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.draw2d.LightweightSystem
LightweightSystem.EventHandler, LightweightSystem.RootFigure -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.eclipse.draw2d.ScalableLightweightSystem.ScalableRootFigureCreates and returns the root figure.Returns this LightweightSystem's root figure.voidsetControl(Canvas c) Sets the LightweightSystem's control to the passed Canvas.Methods inherited from class org.eclipse.draw2d.LightweightSystem
addListeners, controlResized, createEventHandler, getEventDispatcher, getUpdateManager, init, paint, setContents, setEventDispatcher, setRootPaneFigure, setUpdateManager
-
Constructor Details
-
ScalableLightweightSystem
public ScalableLightweightSystem()
-
-
Method Details
-
setControl
Description copied from class:LightweightSystemSets the LightweightSystem's control to the passed Canvas.- Overrides:
setControlin classLightweightSystem- Parameters:
c- the canvas
-
createRootFigure
protected org.eclipse.draw2d.ScalableLightweightSystem.ScalableRootFigure createRootFigure()Description copied from class:LightweightSystemCreates and returns the root figure.- Overrides:
createRootFigurein classLightweightSystem- Returns:
- the newly created root figure
-
getRootFigure
Description copied from class:LightweightSystemReturns this LightweightSystem's root figure.- Overrides:
getRootFigurein classLightweightSystem- Returns:
- the root figure
-