Java Code Examples for org.eclipse.draw2d.BorderLayout#setVerticalSpacing()

The following examples show how to use org.eclipse.draw2d.BorderLayout#setVerticalSpacing() . 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: RootFigure.java    From nebula with Eclipse Public License 2.0 6 votes vote down vote up
public RootFigure(ResourceManager resourceManager) {
	fResourceManager = resourceManager;
	setStyleProvider(null);

	fTimeViewDetails = new TimeBaseConverter(this);

	final BorderLayout layout = new BorderLayout();
	layout.setVerticalSpacing(10);
	setLayoutManager(layout);

	setOpaque(true);
	updateStyle(fStyleProvider);

	fDetailFigure = new DetailFigure(getStyleProvider());
	add(fDetailFigure, BorderLayout.CENTER);

	fOverviewFigure = new OverviewFigure(getStyleProvider());
	add(fOverviewFigure, BorderLayout.BOTTOM);
}
 
Example 2
Source File: DetailFigure.java    From nebula with Eclipse Public License 2.0 5 votes vote down vote up
public DetailFigure(ITimelineStyleProvider styleProvider) {
	final BorderLayout layout = new BorderLayout();
	layout.setHorizontalSpacing(0);
	layout.setVerticalSpacing(0);
	setLayoutManager(layout);

	add(new TracksFigure(styleProvider), BorderLayout.CENTER);
	add(new TimeAxisFigure(styleProvider), BorderLayout.BOTTOM);

	new DetailAreaListener(this);
}