Community
Participate
Working Groups
import org.eclipse.draw2d.geometry.Rectangle;
/**
* A Canvas that contains {@link Figure Figures}.
* A scrolling Canvas that contains {@link Figure Figures}
*
* viewed through a {@link Viewport}. Call {@link #setContents(IFigure)}
* to specify the root of the tree of <tt>Figures</tt> to be viewed
* through the <tt>Viewport</tt>.
* <p>
* Normal procedure for using a FigureCanvas:
* <ol>
* <li>Create a FigureCanvas.
* <li>Create a Draw2d Figure and call {@link #setContents(IFigure)}. This Figure will be the
* top-level Figure of the Draw2d application.
* </ol>
* Note: Only one of the styles RIGHT_TO_LEFT, LEFT_TO_RIGHT may be specified.
* </p>