当前位置: 首页>>代码示例>>Java>>正文


Java ScalableFreeformRootEditPart.getFigure方法代码示例

本文整理汇总了Java中org.eclipse.gef.editparts.ScalableFreeformRootEditPart.getFigure方法的典型用法代码示例。如果您正苦于以下问题:Java ScalableFreeformRootEditPart.getFigure方法的具体用法?Java ScalableFreeformRootEditPart.getFigure怎么用?Java ScalableFreeformRootEditPart.getFigure使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.eclipse.gef.editparts.ScalableFreeformRootEditPart的用法示例。


在下文中一共展示了ScalableFreeformRootEditPart.getFigure方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: showThumbnail

import org.eclipse.gef.editparts.ScalableFreeformRootEditPart; //导入方法依赖的package包/类
private void showThumbnail() {
	// RootEditPartのビューをソースとしてサムネイルを作成
	ScalableFreeformRootEditPart editPart = (ScalableFreeformRootEditPart) this.graphicalViewer
			.getRootEditPart();

	if (this.thumbnail != null) {
		this.thumbnail.deactivate();
	}

	this.thumbnail = new ScrollableThumbnail((Viewport) editPart
			.getFigure());
	this.thumbnail.setSource(editPart
			.getLayer(LayerConstants.PRINTABLE_LAYERS));

	this.lws.setContents(this.thumbnail);

}
 
开发者ID:kozake,项目名称:ermaster-k,代码行数:18,代码来源:ERDiagramOutlinePage.java

示例2: initializeOverview

import org.eclipse.gef.editparts.ScalableFreeformRootEditPart; //导入方法依赖的package包/类
/**
 * Initialize overview.
 */
protected void initializeOverview() {
	LightweightSystem lws = new J2DLightweightSystem(overview);

	RootEditPart rep = editor.getGraphicalViewer().getRootEditPart();
	if (rep instanceof MainDesignerRootEditPart) {
		ScalableFreeformRootEditPart root = (ScalableFreeformRootEditPart) rep;
		thumbnail = new JSSScrollableThumbnail((Viewport) root.getFigure(), (MRoot)getViewer().getContents().getModel());
		thumbnail.setSource(root.getLayer(LayerConstants.PRINTABLE_LAYERS));
		lws.setContents(thumbnail);
		disposeListener = new DisposeListener() {
			public void widgetDisposed(DisposeEvent e) {
				if (thumbnail != null) {
					thumbnail.deactivate();
					thumbnail = null;
				}
			}
		};
		editor.getEditor().addDisposeListener(disposeListener);
	}
	lws.setControl(overview);
}
 
开发者ID:OpenSoftwareSolutions,项目名称:PDFReporter-Studio,代码行数:25,代码来源:JDReportOutlineView.java

示例3: initializeOverview

import org.eclipse.gef.editparts.ScalableFreeformRootEditPart; //导入方法依赖的package包/类
protected void initializeOverview()
{
    LightweightSystem lws = new LightweightSystem(mOverview);
    RootEditPart rep = getGraphicalViewer().getRootEditPart();
    if (rep instanceof ScalableFreeformRootEditPart) {
        ScalableFreeformRootEditPart root = (ScalableFreeformRootEditPart)rep;
        mThumbnail = new ScrollableThumbnail((Viewport)root.getFigure());
        mThumbnail.setBorder(new MarginBorder(3));
        mThumbnail.setSource(root
                        .getLayer(LayerConstants.PRINTABLE_LAYERS));
        lws.setContents(mThumbnail);
        mDisposeListener = new DisposeListener() {
            public void widgetDisposed(DisposeEvent e)
            {
                if (mThumbnail != null) {
                    mThumbnail.deactivate();
                    mThumbnail = null;
                }
            }
        };
        getEditor().addDisposeListener(mDisposeListener);
    }
}
 
开发者ID:henrikor2,项目名称:eclipsensis,代码行数:24,代码来源:InstallOptionsDesignEditor.java

示例4: createEyeViewControl

import org.eclipse.gef.editparts.ScalableFreeformRootEditPart; //导入方法依赖的package包/类
public void createEyeViewControl(Composite parent) {
	Canvas canvas = new Canvas(parent, SWT.NONE);
	canvas.setLayoutData(new GridData(GridData.FILL_BOTH));
	LightweightSystem liSystem = new LightweightSystem(canvas);
	ScalableFreeformRootEditPart rootEditPart = ((ScalableFreeformRootEditPart) dbToolGefEditor.getGraphicalViewer().getRootEditPart());
	ScrollableThumbnail thumbnail = new ScrollableThumbnail((Viewport) rootEditPart.getFigure());
	thumbnail.setSource(rootEditPart.getLayer(LayerConstants.SCALABLE_LAYERS));
	liSystem.setContents(thumbnail);
}
 
开发者ID:bsteker,项目名称:bdf2,代码行数:10,代码来源:DbToolGefEditorOutlinePage.java

示例5: initializeOverview

import org.eclipse.gef.editparts.ScalableFreeformRootEditPart; //导入方法依赖的package包/类
protected void initializeOverview() {
	LightweightSystem lws = new LightweightSystem(overview);
	if (rep instanceof ScalableFreeformRootEditPart) {
		ScalableFreeformRootEditPart root = (ScalableFreeformRootEditPart)rep;
		thumbnail = new ScrollableThumbnail((Viewport)root.getFigure());
		thumbnail.setBorder(new MarginBorder(3));
		thumbnail.setSource(root.getLayer(LayerConstants.PRINTABLE_LAYERS));
		lws.setContents(thumbnail);
	}
}
 
开发者ID:ShoukriKattan,项目名称:ForgedUI-Eclipse,代码行数:11,代码来源:DiagramOutlinePage2.java

示例6: createThumbnailViewer

import org.eclipse.gef.editparts.ScalableFreeformRootEditPart; //导入方法依赖的package包/类
/**
 * Creates the graphical Thumbnail viewer.
 */
protected void createThumbnailViewer() {
  LightweightSystem lws = new LightweightSystem(_overview);
  ScalableFreeformRootEditPart rootEditPart = (ScalableFreeformRootEditPart) _graphicalViewer.getRootEditPart();
  _thumbnail = new FixedScrollableThumbnail((Viewport) rootEditPart.getFigure());
  _thumbnail.setBorder(new MarginBorder(3));
  _thumbnail.setSource(rootEditPart.getLayer(LayerConstants.PRINTABLE_LAYERS));
  lws.setContents(_thumbnail);
}
 
开发者ID:eclipse,项目名称:triquetrum,代码行数:12,代码来源:DiagramEditorOutlinePage.java

示例7: createThumbnailViewer

import org.eclipse.gef.editparts.ScalableFreeformRootEditPart; //导入方法依赖的package包/类
/**
 * Creates the graphical Thumbnail viewer.
 */
protected void createThumbnailViewer() {
	LightweightSystem lws = new LightweightSystem(_overview);
	ScalableFreeformRootEditPart rootEditPart = (ScalableFreeformRootEditPart) _graphicalViewer.getRootEditPart();
	_thumbnail = new FixedScrollableThumbnail((Viewport) rootEditPart.getFigure());
	_thumbnail.setBorder(new MarginBorder(3));
	_thumbnail.setSource(rootEditPart.getLayer(LayerConstants.PRINTABLE_LAYERS));
	lws.setContents(_thumbnail);
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:12,代码来源:GraphicsEditorOutlinePage.java

示例8: showThumbnail

import org.eclipse.gef.editparts.ScalableFreeformRootEditPart; //导入方法依赖的package包/类
private void showThumbnail() {
    if (quickMode) {
        return;
    }
    final ScalableFreeformRootEditPart editPart = (ScalableFreeformRootEditPart) graphicalViewer.getRootEditPart();
    if (thumbnail != null) {
        thumbnail.deactivate();
    }
    this.thumbnail = new ScrollableThumbnail((Viewport) editPart.getFigure());
    thumbnail.setSource(editPart.getLayer(LayerConstants.PRINTABLE_LAYERS));
    lws.setContents(thumbnail);
}
 
开发者ID:dbflute-session,项目名称:erflute,代码行数:13,代码来源:ERDiagramOutlinePage.java


注:本文中的org.eclipse.gef.editparts.ScalableFreeformRootEditPart.getFigure方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。