本文整理汇总了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);
}
示例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);
}
示例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);
}
}
示例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);
}
示例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);
}
}
示例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);
}
示例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);
}
示例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);
}