本文整理汇总了Java中org.eclipse.draw2d.LineBorder.setWidth方法的典型用法代码示例。如果您正苦于以下问题:Java LineBorder.setWidth方法的具体用法?Java LineBorder.setWidth怎么用?Java LineBorder.setWidth使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.draw2d.LineBorder
的用法示例。
在下文中一共展示了LineBorder.setWidth方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createSelectionHandles
import org.eclipse.draw2d.LineBorder; //导入方法依赖的package包/类
/**
* Create selection handles in the style as predefined in DeltaEcore
* @see DEGraphicalEditorTheme
*/
@Override
protected List<Object> createSelectionHandles() {
List<Object> list = new ArrayList<Object>();
MoveHandle moveHandle = new MoveHandle((GraphicalEditPart) getHost());
moveHandle.setDragTracker(getDragTracker());
if (isDragAllowed()) {
moveHandle.setCursor(Cursors.SIZEALL);
} else {
moveHandle.setCursor(SharedCursors.ARROW);
}
// set line style to meet the predefined theme
DEGraphicalEditorTheme theme = DEGraphicalEditor.getTheme();
LineBorder border = new LineBorder();
border.setColor(theme.getSelectionSecondaryColor());
border.setWidth(theme.getLineWidth());
moveHandle.setBorder(border);
list.add(moveHandle);
return list;
}
示例2: VerticalBlockModelFigure
import org.eclipse.draw2d.LineBorder; //导入方法依赖的package包/类
public VerticalBlockModelFigure()
{
// if (blockModel instanceof VerticalBlockModel)
PageXYLayout vertical = new PageXYLayout();
//vertical.setSpacing(5);
// setLayoutManager(new VerticalFillLayout());
// if (blockModel instanceof HorizontalBlockModel)
// setLayoutManager(new HorizontalFillLayout());
// FlowLayout vertical = new FlowLayout();
// vertical.setSpacing(MAX_FLAG);
// vertical.setVertical(true);
setLayoutManager(vertical);
setOpaque(true);
setBackgroundColor(ColorConstants.white);
// this.setBounds(rect)
border = new LineBorder();
// border.setLabel("垂直容器");
border.setColor(color);
border.setWidth(1);
// FocusBorder focus = new FocusBorder();
// this.setBorder(border);
// border = new TitleBarBorder("Table dsf");
setBorder(border);
}
示例3: setSelected
import org.eclipse.draw2d.LineBorder; //导入方法依赖的package包/类
public void setSelected(boolean isSelected) {
LineBorder lineBorder = (LineBorder) getBorder();
lineBorder.setColor(isSelected ? ColorConstants.gray : ColorConstants.lightGray);
lineBorder.setWidth(isSelected ? 3 : 2);
erase();
repaint();
}
示例4: VerticalBlockModelFigure
import org.eclipse.draw2d.LineBorder; //导入方法依赖的package包/类
public VerticalBlockModelFigure()
{
VerticalFillLayout vertical = new VerticalFillLayout();
vertical.setSpacing(5);
setLayoutManager(new VerticalLayout());
setOpaque(true);
setBackgroundColor(ColorConstants.white);
border = new LineBorder();
border.setColor(orange);
border.setWidth(1);
setBorder(border);
}
示例5: HorizontalBlockModelFigure
import org.eclipse.draw2d.LineBorder; //导入方法依赖的package包/类
public HorizontalBlockModelFigure()
{
HorizontalFillLayout horizontal = new HorizontalFillLayout();
horizontal.setSpacing(5);
setLayoutManager(horizontal);
border = new LineBorder();
border.setColor(orange);
border.setWidth(1);
border.setStyle(SWT.LINE_DASHDOT);
setBorder(border);
}
示例6: PageModelFigure
import org.eclipse.draw2d.LineBorder; //导入方法依赖的package包/类
public PageModelFigure()
{
setLayoutManager(new PageXYLayout());
setOpaque(true);
setBackgroundColor(ColorConstants.white);
border = new LineBorder();
border.setColor(orange);
border.setWidth(1);
setBorder(border);
}
示例7: XYBlockModelFigure
import org.eclipse.draw2d.LineBorder; //导入方法依赖的package包/类
public XYBlockModelFigure()
{
VerticalFillLayout vertical = new VerticalFillLayout();
vertical.setSpacing(5);
setLayoutManager(new XYLayout());
setOpaque(true);
setBackgroundColor(ColorConstants.white);
border = new LineBorder();
border.setColor(orange);
border.setWidth(1);
setBorder(border);
}
示例8: QueryHorizontalBlockModelFigure
import org.eclipse.draw2d.LineBorder; //导入方法依赖的package包/类
public QueryHorizontalBlockModelFigure()
{
QueryHorizontalBlockModelLayout horizontal = new QueryHorizontalBlockModelLayout();
horizontal.setSpacing(5);
setLayoutManager(horizontal);
border = new LineBorder();
border.setColor(orange);
border.setWidth(1);
setBorder(border);
}
示例9: HorizonBlockModelFigure
import org.eclipse.draw2d.LineBorder; //导入方法依赖的package包/类
public HorizonBlockModelFigure()
{
HorizonFillLayout horizon=new HorizonFillLayout();
horizon.setSpacing(5);
setLayoutManager(horizon);
border = new LineBorder();
border.setColor(colour);
border.setWidth(1);
border.setStyle(SWT.LINE_DASHDOT);
setBorder(border);
}
示例10: XYBlockModelFigure
import org.eclipse.draw2d.LineBorder; //导入方法依赖的package包/类
public XYBlockModelFigure()
{
setLayoutManager(new XYLayout());
setOpaque(true);
setBackgroundColor(ColorConstants.white);
border = new LineBorder();
border.setColor(ColorConstants.darkBlue);
border.setWidth(1);
setBorder(border);
}