本文整理汇总了Java中org.eclipse.draw2d.FreeformLayer类的典型用法代码示例。如果您正苦于以下问题:Java FreeformLayer类的具体用法?Java FreeformLayer怎么用?Java FreeformLayer使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
FreeformLayer类属于org.eclipse.draw2d包,在下文中一共展示了FreeformLayer类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createFigure
import org.eclipse.draw2d.FreeformLayer; //导入依赖的package包/类
@Override
protected IFigure createFigure() {
final LineLayout layout = new LineLayout();
layout.setHorizontal(true);
layout.setMajorAlignment(FlowLayout.ALIGN_TOPLEFT);
layout.setMinorAlignment(FlowLayout.ALIGN_BOTTOMRIGHT);
layout.setMinorSpacing(SPACING);
layout.setMargin(MARGIN);
FreeformLayer res = new FreeformLayer();
final Label toolTip = new Label();
toolTip.setFont(JFaceResources.getFont(JFaceResources.TEXT_FONT));
toolTip.setBackgroundColor(ColorConstants.tooltipBackground);
toolTip.setForegroundColor(ColorConstants.tooltipForeground);
toolTip.setText(getModel().getTimelineWindow().getProvider().getTextAt(getModel().getBranch()));
res.setToolTip(toolTip);
res.setLayoutManager(layout);
return res;
}
示例2: TableModelFigure
import org.eclipse.draw2d.FreeformLayer; //导入依赖的package包/类
public TableModelFigure()
{
ToolbarLayout layout = new ToolbarLayout();
layout.setHorizontal(true);
layout.setSpacing(10);
layout.setMinorAlignment(ToolbarLayout.ALIGN_TOPLEFT);
setLayoutManager(new FillLayout());
setOpaque(true);
setBackgroundColor(ColorConstants.white);
border = new FrameBorder("列表");
border.setLabel("Block");
this.setBorder(border);
ScrollPane scrollpane = new ScrollPane();
scrollpane.setHorizontalScrollBarVisibility(1);
scrollpane.setVerticalScrollBarVisibility(0);
headerFigure = new FreeformLayer();
headerFigure.setLayoutManager(new ScrollAreaLayout());
headerFigure.setBackgroundColor(ColorConstants.white);
add(scrollpane);
scrollpane.setViewport(new FreeformViewport());
scrollpane.setContents(headerFigure);
}
示例3: createFigure
import org.eclipse.draw2d.FreeformLayer; //导入依赖的package包/类
@Override
protected IFigure createFigure() {
final LineLayout layout = new LineLayout();
layout.setHorizontal(false);
layout.setMajorAlignment(FlowLayout.ALIGN_TOPLEFT);
layout.setMinorAlignment(FlowLayout.ALIGN_TOPLEFT);
layout.setMinorSpacing(SPACING);
layout.setMargin(MARGIN);
FreeformLayer res = new FreeformLayer();
res.setLayoutManager(layout);
return res;
}
示例4: createFigure
import org.eclipse.draw2d.FreeformLayer; //导入依赖的package包/类
@Override
protected IFigure createFigure() {
final LineLayout layout = new LineLayout();
layout.setHorizontal(false);
layout.setMajorAlignment(FlowLayout.ALIGN_TOPLEFT);
layout.setMinorAlignment(FlowLayout.ALIGN_TOPLEFT);
layout.setMinorSpacing(SPACING);
FreeformLayer res = new FreeformLayer();
res.setLayoutManager(layout);
label = new Label();
res.add(label);
return res;
}
示例5: createFigure
import org.eclipse.draw2d.FreeformLayer; //导入依赖的package包/类
@Override
protected IFigure createFigure() {
Figure f = new FreeformLayer();
f.setBorder(new MarginBorder(3));
f.setLayoutManager(new FreeformLayout());
// Create the static router for the connection layer
ConnectionLayer connLayer = (ConnectionLayer) getLayer(LayerConstants.CONNECTION_LAYER);
connLayer.setConnectionRouter(new ManhattanConnectionRouter());
return f;
}
示例6: createFigure
import org.eclipse.draw2d.FreeformLayer; //导入依赖的package包/类
@Override
protected IFigure createFigure() {
Figure figure = new FreeformLayer();
figure.setBorder(new MarginBorder(3));
figure.setLayoutManager(new FreeformLayout());
return figure;
}
示例7: createFigure
import org.eclipse.draw2d.FreeformLayer; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
protected IFigure createFigure() {
final FreeformLayer layer = new FreeformLayer();
layer.setLayoutManager(new FreeformLayout());
return layer;
}
示例8: createFigure
import org.eclipse.draw2d.FreeformLayer; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
protected IFigure createFigure() {
FreeformLayer layer = new FreeformLayer();
layer.setLayoutManager(new FreeformLayout());
return layer;
}
示例9: PickerColumnFigure
import org.eclipse.draw2d.FreeformLayer; //导入依赖的package包/类
public PickerColumnFigure() {
pane = new FreeformLayer();
pane.setLayoutManager(new FreeformLayout());
setLayoutManager(new StackLayout());
container = new TitaniumFigure();
container.setLayoutManager(new FreeformLayout());
pane.add(container);
scrollpane = new ScrollPane();
scrollpane.setHorizontalScrollBarVisibility(ScrollPane.NEVER);
scrollpane.setVerticalScrollBarVisibility(ScrollPane.NEVER);
scrollpane.setViewport(new FreeformViewport());
scrollpane.setContents(pane);
add(scrollpane);
}
示例10: ScrollViewFigure
import org.eclipse.draw2d.FreeformLayer; //导入依赖的package包/类
public ScrollViewFigure() {
pane = new FreeformLayer();
pane.setLayoutManager(new FreeformLayout());
setLayoutManager(new StackLayout());
container = new TitaniumFigure();
container.setLayoutManager(new FreeformLayout());
pane.add(container);
scrollpane = new ScrollPane();
scrollpane.setScrollBarVisibility(ScrollPane.AUTOMATIC);
scrollpane.setViewport(new FreeformViewport());
scrollpane.setContents(pane);
add(scrollpane);
}
示例11: createScaledLayers
import org.eclipse.draw2d.FreeformLayer; //导入依赖的package包/类
/**
* @see org.eclipse.gef.editparts.ScalableFreeformRootEditPart#createScaledLayers()
*/
protected ScalableFreeformLayeredPane createScaledLayers() {
ScalableFreeformLayeredPane layers = super.createScaledLayers();
layers.add(new FreeformLayer(), PRINT_PREVIEW_LAYER, 0);
return layers;
}
示例12: createFigure
import org.eclipse.draw2d.FreeformLayer; //导入依赖的package包/类
/**
* @see org.eclipse.gef.editparts.AbstractGraphicalEditPart#createFigure()
*/
@Override
protected IFigure createFigure() {
Figure figure = new FreeformLayer();
figure.setBorder(new MarginBorder(10));
figure.setLayoutManager(new FreeformLayout());
figure.setOpaque(false);
Diagram diagram = null;
if (getModel() instanceof Diagram) {
diagram = (Diagram) getModel();
if (!(diagram.getType().equals(DiagramType.SEQUENCE_DIAGRAM))) {
for (AbstractNode node : diagram.getNodeList()) {
if (node instanceof NotationNode) {
ViewModelUtil.clearGarbageNode(node);
ViewModelUtil.setModelInfo((NotationNode) node);
}
}
for ( AbstractConnection connection : diagram.getConnectionList() ) {
ViewModelUtil.clearGarbageNode(connection);
}
}
}
figure.addLayoutListener(new PrintPreviewLayoutListener());
return figure;
}
示例13: createFigure
import org.eclipse.draw2d.FreeformLayer; //导入依赖的package包/类
/**
* @see org.eclipse.gef.editparts.AbstractGraphicalEditPart#createFigure()
*/
@Override
protected IFigure createFigure() {
Figure fiugre = new FreeformLayer();
fiugre.setBorder(new MarginBorder(10));
fiugre.setLayoutManager(new FreeformLayout());
fiugre.setOpaque(false);
LayoutManager layout = new ActivityDiagramLayout();
fiugre.setLayoutManager(layout);
return fiugre;
}
示例14: createFigure
import org.eclipse.draw2d.FreeformLayer; //导入依赖的package包/类
@Override
protected IFigure createFigure() {
FreeformLayer fig = new FreeformLayer();
fig.setLayoutManager(new GraphLayoutManager(this));
fig.setOpaque(true);
return fig;
}
示例15: createScaledLayers
import org.eclipse.draw2d.FreeformLayer; //导入依赖的package包/类
@Override
protected ScalableFreeformLayeredPane createScaledLayers() {
ScalableFreeformLayeredPane layers = new J2DScalableFreeformLayeredPane();
// layers.add(createGridLayer(), GRID_LAYER);
layers.add(getPrintableLayers(), PRINTABLE_LAYERS);
layers.add(new FeedbackLayer(), SCALED_FEEDBACK_LAYER);
layers.add(new FreeformLayer(), REPORT_LAYER);
layers.add(new FreeformLayer(), SECTIONS_LAYER);
layers.add(new FreeformLayer(), ELEMENTS_LAYER);
return layers;
}