本文整理汇总了Java中org.eclipse.draw2d.RectangleFigure.setOutline方法的典型用法代码示例。如果您正苦于以下问题:Java RectangleFigure.setOutline方法的具体用法?Java RectangleFigure.setOutline怎么用?Java RectangleFigure.setOutline使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.draw2d.RectangleFigure
的用法示例。
在下文中一共展示了RectangleFigure.setOutline方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createFigure
import org.eclipse.draw2d.RectangleFigure; //导入方法依赖的package包/类
@Override
protected IFigure createFigure()
{
RectangleFigure figure = new RectangleFigure();
figure.setBackgroundColor(BACKGROUND_COLOR);
Color borderCol = Display.getCurrent().getSystemColor(SWT.COLOR_GRAY);
Border figureBorder = new LineBorder(borderCol, 2);
figure.setBorder(figureBorder);
figure.setOutline(false);
GridLayout layoutManager = new GridLayout();
// zero margin, in order to connect the dependent axes to the shared one
layoutManager.marginHeight = 0;
layoutManager.marginWidth = 0;
figure.setLayoutManager(layoutManager);
datasetsPane = new RectangleFigure();
datasetsPane.setOutline(false);
final SimpleLoweredBorder datasetBorder = new SimpleLoweredBorder(3);
datasetsPane.setBorder(datasetBorder);
GridLayout datasetsPaneLayout = new GridLayout();
datasetsPane.setLayoutManager(datasetsPaneLayout);
figure.add(datasetsPane);
arrowFigure = new ArrowFigure(false);
figure.add(arrowFigure);
axisNameLabel = new AxisNameFigure(this);
figure.add(axisNameLabel);
return figure;
}
示例2: createFigure
import org.eclipse.draw2d.RectangleFigure; //导入方法依赖的package包/类
@Override
protected IFigure createFigure()
{
final RectangleFigure figure = new RectangleFigure();
figure.setOutline(false);
final Color borderCol = Display.getCurrent().getSystemColor(SWT.COLOR_GRAY);
final Border figureBorder = new LineBorder(borderCol, 2);
figure.setBorder(figureBorder);
figure.setLayoutManager(new GridLayout());
nameLabel = new DirectionalLabel(Activator.FONT_8);
final ChartPaneEditPart.AxisLandingPad pad =
(ChartPaneEditPart.AxisLandingPad) getModel();
nameLabel.setText(pad.pos == ChartPanePosition.MIN ? "Min Axis"
: "Max Axis");
figure.add(nameLabel);
figure.getLayoutManager().setConstraint(nameLabel, new GridData(
GridData.FILL, GridData.FILL, true, true));
return figure;
}
示例3: createFigure
import org.eclipse.draw2d.RectangleFigure; //导入方法依赖的package包/类
@Override
protected IFigure createFigure()
{
RectangleFigure rectangle = new RectangleFigure();
rectangle.setOutline(false);
GridLayout gridLayout = new GridLayout();
gridLayout.marginHeight = 0;
gridLayout.marginWidth = 0;
rectangle.setLayoutManager(gridLayout);
arrowFigure = new ArrowFigure(true);
rectangle.add(arrowFigure);
// and the text label
axisNameLabel = new DirectionalIconLabel(StackedchartsImages.getImage(
StackedchartsImages.DESC_AXIS));
axisNameLabel.getLabel().setTextAlignment(PositionConstants.TOP);
rectangle.add(axisNameLabel);
return rectangle;
}
示例4: SplitFigure
import org.eclipse.draw2d.RectangleFigure; //导入方法依赖的package包/类
public SplitFigure(int orientation) {
this.orientation = orientation;
setLayoutManager(new SplitFigureLayout());
dividerFigure = new RectangleFigure();
dividerFigure.setOutline(false);
dividerFigure.setBorder(new SimpleRaisedBorder());
switch(getOrientation()) {
case HORIZONTAL_SPLIT:
dividerFigure.setSize(5, 0);
dividerFigure.setPreferredSize(new Dimension(5, 0));
break;
case VERTICAL_SPLIT:
dividerFigure.setSize(0, 5);
dividerFigure.setPreferredSize(new Dimension(0, 5));
break;
}
add(dividerFigure, DIVIDER);
}
示例5: createContents
import org.eclipse.draw2d.RectangleFigure; //导入方法依赖的package包/类
private void createContents() {
nameLabel = new SyntaxColoringLabel();
GridData data = GridDataFactory.fillDefaults().grab(true, false).getData();
data.horizontalIndent = 5;
nameLabel.setTextPlacement(PositionConstants.WEST);
this.add(nameLabel, data);
/** Compartment container **/
compartmentPane = new RectangleFigure();
compartmentPane.setOutline(false);
compartmentPane.setLayoutManager(new StackLayout());
compartmentPane.setFill(false);
this.add(compartmentPane, GridDataFactory.fillDefaults().grab(true, true).getData());
}
示例6: createFigure
import org.eclipse.draw2d.RectangleFigure; //导入方法依赖的package包/类
@Override
protected IFigure createFigure()
{
final RectangleFigure figure = new RectangleFigure();
figure.setOutline(false);
final GridLayout layoutManager = new GridLayout();
// zero margin, in order to connect the dependent axes to the shared one
layoutManager.marginHeight = 0;
layoutManager.marginWidth = 0;
figure.setLayoutManager(layoutManager);
return figure;
}
示例7: createFigure
import org.eclipse.draw2d.RectangleFigure; //导入方法依赖的package包/类
@Override
protected IFigure createFigure()
{
RectangleFigure rectangle = new RectangleFigure();
rectangle.setOutline(false);
GridLayout layout = new GridLayout();
layout.marginHeight = 0;
layout.marginWidth = 0;
layout.horizontalSpacing = 10;
layout.verticalSpacing = 10;
rectangle.setLayoutManager(layout);
rectangle.setBackgroundColor(Display.getDefault().getSystemColor(
SWT.COLOR_WIDGET_BACKGROUND));
return rectangle;
}
示例8: createFigure
import org.eclipse.draw2d.RectangleFigure; //导入方法依赖的package包/类
@Override
protected IFigure createFigure()
{
RectangleFigure rectangle = new RectangleFigure();
rectangle.setOutline(false);
GridLayout gridLayout = new GridLayout();
gridLayout.marginHeight = 10;
gridLayout.marginWidth = 10;
rectangle.setLayoutManager(gridLayout);
rectangle.setBackgroundColor(Display.getDefault().getSystemColor(
SWT.COLOR_WIDGET_BACKGROUND));
return rectangle;
}
示例9: addBreak
import org.eclipse.draw2d.RectangleFigure; //导入方法依赖的package包/类
protected void addBreak()
{
final RectangleFigure messageBreak = new RectangleFigure();
messageBreak.setBackgroundColor(ColorConstants.white);
messageBreak.setOutline(false);
final Rectangle bounds = Rectangle.SINGLETON;
bounds.x = -1;
bounds.y = -1;
bounds.width = 4;
bounds.height = 13;
messageBreak.setBounds(bounds);
messageBreak.setBorder(MessageFigure.MESSAGE_BREAK_BORDER);
add(messageBreak, new MidpointLocator(this, 0));
}
示例10: showSelectionArea
import org.eclipse.draw2d.RectangleFigure; //导入方法依赖的package包/类
protected void showSelectionArea(RectangleFigure rf, Rectangle bds)
{
rf.setBounds(bds);
rf.setOutline(true);
rf.setFill(false);
//add new rectangle object to the array list
duplicatingDynamic.add(rf);
ui.getViewEditor().addInteractionFigure(rf);
}
示例11: addTitle
import org.eclipse.draw2d.RectangleFigure; //导入方法依赖的package包/类
protected void addTitle(IFigure figure) {
Object model = getModel();
final int rowHeight = TimelineUtils.getRowElementHeight(TreeTimelineHeaderRowEditPart.this);
Figure title = new Figure();
ToolbarLayout layout = new ToolbarLayout(true);
layout.setMinorAlignment(OrderedLayout.ALIGN_CENTER);
title.setLayoutManager(layout);
layout.setSpacing(6);
int depth = getDepth();
TreeTimelineContentProvider cp = getTimelineTreeContentProvider();
ILabelProvider lp = getLabelProvider();
String labelText = lp != null ? lp.getText(model) : model + "";
Image labelImage = lp != null ? lp.getImage(model) : null;
{
levelFigure = new RectangleFigure();
levelFigure.setOutline(false);
levelFigure.setSize(depth*LEVEL_PADDING, rowHeight);
levelFigure.setOpaque(true);
title.add(levelFigure);
}
{
expansionButton = new ArrowButton(PositionConstants.EAST) {
@Override
protected void createTriangle() {
Triangle tri = new Triangle();
tri.setOutline(true);
tri.setBackgroundColor(ColorConstants.listForeground);
tri.setForegroundColor(ColorConstants.listForeground);
setContents(tri);
}
};
expansionButton.setBorder(null);
expansionButton.setOpaque(true);
expansionButton.setPreferredSize(rowHeight,rowHeight);
expansionButton.setForegroundColor(ColorConstants.black);
expansionButton.setVisible(cp != null && cp.hasChildren(model));
expansionButton.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent event) {
toggleExpanded();
}
});
title.add(expansionButton);
}
{
titleLabel = new Label();
titleLabel.setTextAlignment(PositionConstants.CENTER);
titleLabel.setText(labelText);
if (labelImage != null) {
titleLabel.setIcon(labelImage);
}
titleLabel.setOpaque(true);
title.add(titleLabel);
refreshTitleLabelFont();
}
figure.add(title);
}
示例12: createContents
import org.eclipse.draw2d.RectangleFigure; //导入方法依赖的package包/类
/**
* @generated
*/
private void createContents() {
fFigureMAVOClassLabelFigure = new WrappingLabel();
fFigureMAVOClassLabelFigure.setText("");
fFigureMAVOClassLabelFigure
.setMaximumSize(new Dimension(getMapMode().DPtoLP(10000), getMapMode().DPtoLP(50)));
this.add(fFigureMAVOClassLabelFigure);
fFigureClassLabelFigure = new WrappingLabel();
fFigureClassLabelFigure.setText("Class");
fFigureClassLabelFigure.setMaximumSize(new Dimension(getMapMode().DPtoLP(10000), getMapMode().DPtoLP(50)));
this.add(fFigureClassLabelFigure);
fClassOperationsCompartmentFigure = new RectangleFigure();
fClassOperationsCompartmentFigure.setOutline(false);
this.add(fClassOperationsCompartmentFigure);
}
示例13: createContents
import org.eclipse.draw2d.RectangleFigure; //导入方法依赖的package包/类
/**
* @generated
*/
private void createContents() {
fFigureClassLabelFigure = new WrappingLabel();
fFigureClassLabelFigure.setText("Class");
fFigureClassLabelFigure.setMaximumSize(new Dimension(getMapMode()
.DPtoLP(10000), getMapMode().DPtoLP(50)));
this.add(fFigureClassLabelFigure);
fClassAttributesCompartmentFigure = new RectangleFigure();
fClassAttributesCompartmentFigure.setOutline(false);
this.add(fClassAttributesCompartmentFigure);
}
示例14: createContents
import org.eclipse.draw2d.RectangleFigure; //导入方法依赖的package包/类
/**
* @generated
*/
private void createContents() {
fFigureTableLabelFigure = new WrappingLabel();
fFigureTableLabelFigure.setText("Table");
fFigureTableLabelFigure.setMaximumSize(new Dimension(getMapMode()
.DPtoLP(10000), getMapMode().DPtoLP(50)));
this.add(fFigureTableLabelFigure);
fTableColumnsCompartmentFigure = new RectangleFigure();
fTableColumnsCompartmentFigure.setOutline(false);
this.add(fTableColumnsCompartmentFigure);
}
示例15: createContents
import org.eclipse.draw2d.RectangleFigure; //导入方法依赖的package包/类
/**
* @generated
*/
private void createContents() {
fFigureTableLabelFigure = new WrappingLabel();
fFigureTableLabelFigure.setText("Table");
fFigureTableLabelFigure.setMaximumSize(new Dimension(getMapMode()
.DPtoLP(10000), getMapMode().DPtoLP(50)));
this.add(fFigureTableLabelFigure);
fTableColumnsCompartmentFigure = new RectangleFigure();
fTableColumnsCompartmentFigure.setOutline(false);
this.add(fTableColumnsCompartmentFigure);
fTableForeignKeysCompartmentFigure = new RectangleFigure();
fTableForeignKeysCompartmentFigure.setOutline(false);
this.add(fTableForeignKeysCompartmentFigure);
}