本文整理汇总了Java中org.eclipse.gef.GraphicalViewer.createControl方法的典型用法代码示例。如果您正苦于以下问题:Java GraphicalViewer.createControl方法的具体用法?Java GraphicalViewer.createControl怎么用?Java GraphicalViewer.createControl使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.gef.GraphicalViewer
的用法示例。
在下文中一共展示了GraphicalViewer.createControl方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createEditor
import org.eclipse.gef.GraphicalViewer; //导入方法依赖的package包/类
/**
* Overrides the underlying editor widget to add the date slider to it.
* @param parent
*/
public void createEditor(Composite parent){
GraphicalViewer viewer = new ScrollingGraphicalViewer();
Control control = viewer.createControl(parent);
if(parent.getLayout() instanceof GridLayout){
GridData gridData = new GridData();
gridData.horizontalSpan = 2;
gridData.horizontalAlignment = SWT.FILL;
gridData.grabExcessHorizontalSpace = true;
gridData.verticalAlignment = SWT.FILL;
gridData.grabExcessVerticalSpace = true;
control.setLayoutData(gridData);
}
setGraphicalViewer(viewer);
configureGraphicalViewer();
hookGraphicalViewer();
initializeGraphicalViewer();
}
示例2: createGraphicalViewer
import org.eclipse.gef.GraphicalViewer; //导入方法依赖的package包/类
/**
* Creates the GraphicalViewer on the specified <code>Composite</code>. A J2DScrollingGraphicalViewer is internally
* created.
*
* @param parent
* The parent composite
*/
protected void createGraphicalViewer(Composite parent) {
GraphicalViewer viewer = new J2DScrollingGraphicalViewer();
viewer.createControl(parent);
setGraphicalViewer(viewer);
configureGraphicalViewer();
hookGraphicalViewer();
initializeGraphicalViewer();
}
示例3: createGraphicalViewer
import org.eclipse.gef.GraphicalViewer; //导入方法依赖的package包/类
/**
* Creates the GraphicalViewer on the specified <code>Composite</code>. A
* J2DScrollingGraphicalViewer is internally created.
*
* @param parent
* The parent composite
*/
protected void createGraphicalViewer(Composite parent) {
GraphicalViewer viewer = new J2DScrollingGraphicalViewer();
viewer.createControl(parent);
setGraphicalViewer(viewer);
configureGraphicalViewer();
hookGraphicalViewer();
initializeGraphicalViewer();
}
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:16,代码来源:J2DGraphicalEditorWithFlyoutPalette.java