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


Java LineBorder.setColor方法代码示例

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


在下文中一共展示了LineBorder.setColor方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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;
}
 
开发者ID:DarwinSPL,项目名称:DarwinSPL,代码行数:29,代码来源:DwThemedNonResizableEditPolicy.java

示例2: initialize

import org.eclipse.draw2d.LineBorder; //导入方法依赖的package包/类
/**
 * Initializes the handle. Sets the {@link DragTracker}and DragCursor.
 */
protected void initialize( )
{
	setOpaque( true );
	LineBorder bd = new LineBorder( 1 );
	bd.setColor( ReportColorConstants.HandleBorderColor );
	setBorder( bd );

	String tp = getTooltipText( );
	if ( tp != null )
	{
		Label tooltip = new Label( tp );
		tooltip.setBorder( new MarginBorder( 0, 2, 0, 2 ) );
		setToolTip( tooltip );
	}

	setCursor( Cursors.ARROW );
}
 
开发者ID:eclipse,项目名称:birt,代码行数:21,代码来源:RowHandle.java

示例3: 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);
}
 
开发者ID:winture,项目名称:wt-studio,代码行数:25,代码来源:VerticalBlockModelFigure.java

示例4: 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();
}
 
开发者ID:bsteker,项目名称:bdf2,代码行数:8,代码来源:TableFigure.java

示例5: createBorder

import org.eclipse.draw2d.LineBorder; //导入方法依赖的package包/类
@Override
protected Border createBorder() {
  MarginBorder marginBorder = new MarginBorder(PADDING - 1);
  LineBorder lineBorder = new LineBorder(1);
  lineBorder.setColor(ColorConstants.black);
  return new CompoundBorder(lineBorder, marginBorder);
}
 
开发者ID:antlr4ide,项目名称:antlr4ide,代码行数:8,代码来源:RectangleNode.java

示例6: initialize

import org.eclipse.draw2d.LineBorder; //导入方法依赖的package包/类
/**
 * Initializes the handle. Sets the {@link DragTracker}and DragCursor.
 */
protected void initialize( )
{
	//should draw the fill rectangle
	setOpaque( true );
	//draw the border line width is 1
	LineBorder bd = new LineBorder( 1 );
	bd.setColor( ReportColorConstants.HandleBorderColor );
	setBorder( bd );

	//set the default cursor, may not be a SIZEALL cursor()
	setCursor( Cursors.ARROW );

	initChildrenHandle( );
}
 
开发者ID:eclipse,项目名称:birt,代码行数:18,代码来源:TableHFHandle.java

示例7: initialize

import org.eclipse.draw2d.LineBorder; //导入方法依赖的package包/类
/**
 * Initializes the handle. Sets the {@link DragTracker}and DragCursor.
 */
protected void initialize( )
{
	setOpaque( true );
	LineBorder bd = new LineBorder( 1 );
	bd.setColor( ReportColorConstants.HandleBorderColor );
	setBorder( bd );
	setCursor( Cursors.ARROW );
}
 
开发者ID:eclipse,项目名称:birt,代码行数:12,代码来源:ColumnHandle.java

示例8: 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);
}
 
开发者ID:winture,项目名称:wt-studio,代码行数:13,代码来源:VerticalBlockModelFigure.java

示例9: 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);
}
 
开发者ID:winture,项目名称:wt-studio,代码行数:12,代码来源:HorizontalBlockModelFigure.java

示例10: 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);
}
 
开发者ID:winture,项目名称:wt-studio,代码行数:11,代码来源:PageModelFigure.java

示例11: 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);
}
 
开发者ID:winture,项目名称:wt-studio,代码行数:13,代码来源:XYBlockModelFigure.java

示例12: 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);
}
 
开发者ID:winture,项目名称:wt-studio,代码行数:11,代码来源:QueryHorizontalBlockModelFigure.java

示例13: TitleModelFigure

import org.eclipse.draw2d.LineBorder; //导入方法依赖的package包/类
public TitleModelFigure()
{
	setLayoutManager(new GridLayout());
	setOpaque(true);
	setBackgroundColor(ColorConstants.white);
	LineBorder border = new LineBorder();
	border.setColor(ColorConstants.gray);
	this.setBorder(border);
	label = new Label();
	this.add(label);
}
 
开发者ID:winture,项目名称:wt-studio,代码行数:12,代码来源:TitleModelFigure.java

示例14: FormFigure

import org.eclipse.draw2d.LineBorder; //导入方法依赖的package包/类
public FormFigure(){
	setLayoutManager(new FormXYLayout());
	setOpaque(true);
	setBackgroundColor(ColorConstants.white);
	border = new LineBorder();
	border.setColor(ColorConstants.gray);
	this.setBorder(border);
	
}
 
开发者ID:winture,项目名称:wt-studio,代码行数:10,代码来源:FormFigure.java

示例15: 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);
}
 
开发者ID:winture,项目名称:wt-studio,代码行数:12,代码来源:HorizonBlockModelFigure.java


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