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


Java FlowLayout.setMinorSpacing方法代码示例

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


在下文中一共展示了FlowLayout.setMinorSpacing方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: StateFigure

import org.eclipse.draw2d.FlowLayout; //导入方法依赖的package包/类
/**
 * @generated
 */
public StateFigure() {

	FlowLayout layoutThis = new FlowLayout();
	layoutThis.setStretchMinorAxis(false);
	layoutThis.setMinorAlignment(FlowLayout.ALIGN_LEFTTOP);

	layoutThis.setMajorAlignment(FlowLayout.ALIGN_LEFTTOP);
	layoutThis.setMajorSpacing(5);
	layoutThis.setMinorSpacing(5);
	layoutThis.setHorizontal(true);

	this.setLayoutManager(layoutThis);

	this.setForegroundColor(THIS_FORE);
	this.setBackgroundColor(THIS_BACK);
	this.setPreferredSize(new Dimension(getMapMode().DPtoLP(40),
			getMapMode().DPtoLP(40)));
	createContents();
}
 
开发者ID:spoenemann,项目名称:xtext-gef,代码行数:23,代码来源:StateEditPart.java

示例2: GroupMatchFigure

import org.eclipse.draw2d.FlowLayout; //导入方法依赖的package包/类
/**
 * @generated
 */
public GroupMatchFigure() {

	FlowLayout layoutThis = new FlowLayout();
	layoutThis.setStretchMinorAxis(false);
	layoutThis.setMinorAlignment(FlowLayout.ALIGN_LEFTTOP);

	layoutThis.setMajorAlignment(FlowLayout.ALIGN_LEFTTOP);
	layoutThis.setMajorSpacing(5);
	layoutThis.setMinorSpacing(5);
	layoutThis.setHorizontal(true);

	this.setLayoutManager(layoutThis);

	createContents();
}
 
开发者ID:ggxx,项目名称:HelloBrazil,代码行数:19,代码来源:GroupMatchEditPart.java

示例3: GroupFigure

import org.eclipse.draw2d.FlowLayout; //导入方法依赖的package包/类
/**
 * @generated
 */
public GroupFigure() {

	FlowLayout layoutThis = new FlowLayout();
	layoutThis.setStretchMinorAxis(false);
	layoutThis.setMinorAlignment(FlowLayout.ALIGN_LEFTTOP);

	layoutThis.setMajorAlignment(FlowLayout.ALIGN_LEFTTOP);
	layoutThis.setMajorSpacing(5);
	layoutThis.setMinorSpacing(5);
	layoutThis.setHorizontal(true);

	this.setLayoutManager(layoutThis);

	createContents();
}
 
开发者ID:ggxx,项目名称:HelloBrazil,代码行数:19,代码来源:GroupEditPart.java

示例4: TeamFigure

import org.eclipse.draw2d.FlowLayout; //导入方法依赖的package包/类
/**
 * @generated
 */
public TeamFigure() {

	FlowLayout layoutThis = new FlowLayout();
	layoutThis.setStretchMinorAxis(false);
	layoutThis.setMinorAlignment(FlowLayout.ALIGN_LEFTTOP);

	layoutThis.setMajorAlignment(FlowLayout.ALIGN_LEFTTOP);
	layoutThis.setMajorSpacing(5);
	layoutThis.setMinorSpacing(5);
	layoutThis.setHorizontal(true);

	this.setLayoutManager(layoutThis);

	createContents();
}
 
开发者ID:ggxx,项目名称:HelloBrazil,代码行数:19,代码来源:TeamEditPart.java

示例5: EliminationMatchFigure

import org.eclipse.draw2d.FlowLayout; //导入方法依赖的package包/类
/**
 * @generated
 */
public EliminationMatchFigure() {

	FlowLayout layoutThis = new FlowLayout();
	layoutThis.setStretchMinorAxis(false);
	layoutThis.setMinorAlignment(FlowLayout.ALIGN_LEFTTOP);

	layoutThis.setMajorAlignment(FlowLayout.ALIGN_LEFTTOP);
	layoutThis.setMajorSpacing(5);
	layoutThis.setMinorSpacing(5);
	layoutThis.setHorizontal(true);

	this.setLayoutManager(layoutThis);

	createContents();
}
 
开发者ID:ggxx,项目名称:HelloBrazil,代码行数:19,代码来源:EliminationMatchEditPart.java

示例6: showIconView

import org.eclipse.draw2d.FlowLayout; //导入方法依赖的package包/类
void showIconView( final Column column ) {
    iconViewColumn = column;
    focusLine.setVisible( false );
    for ( final Column col : focusTree.columns ) {
        if ( col != column ) col.cellColumn.setVisible( false );
    }
    column.cellWidthBeforeIconView = 0;
    for ( final Object figure : column.cellColumn.getChildren() ) {
        final Cell cell = ( Cell ) figure;
        if ( column.cellWidthBeforeIconView == 0 ) column.cellWidthBeforeIconView =
            ( ( GridData ) column.cellColumn.getLayoutManager().getConstraint( cell ) ).widthHint;
        cell.icon.setImage( focusTree.viewModel.iconViewIcon( cell.item ) );
        final Dimension size = cell.getPreferredSize( iconViewCellWidth, SWT.DEFAULT );
        cell.setPreferredSize( size );
    }
    final FlowLayout layout = new FlowLayout();
    layout.setMinorAlignment( OrderedLayout.ALIGN_BOTTOMRIGHT );
    layout.setMajorSpacing( columnMargins.width );
    layout.setMinorSpacing( columnMargins.height );
    column.cellColumn.setLayoutManager( layout );
    column.cellColumn.setBorder( new MarginBorder( columnMargins.height, columnMargins.width,
                                                   columnMargins.height, columnMargins.width ) );
    updateIconViewBounds();
}
 
开发者ID:Polyglotter,项目名称:chrysalix,代码行数:25,代码来源:FocusTreeCanvas.java

示例7: OperatorFigure

import org.eclipse.draw2d.FlowLayout; //导入方法依赖的package包/类
/**
 * @generated
 */
public OperatorFigure() {

	FlowLayout layoutThis = new FlowLayout();
	layoutThis.setStretchMinorAxis(false);
	layoutThis.setMinorAlignment(FlowLayout.ALIGN_LEFTTOP);

	layoutThis.setMajorAlignment(FlowLayout.ALIGN_LEFTTOP);
	layoutThis.setMajorSpacing(5);
	layoutThis.setMinorSpacing(5);
	layoutThis.setHorizontal(true);

	this.setLayoutManager(layoutThis);

	this.setLineWidth(3);
	this.setForegroundColor(THIS_FORE);
	this.setBackgroundColor(THIS_BACK);
	this.setBorder(
		new MarginBorder(
			getMapMode().DPtoLP(10),
			getMapMode().DPtoLP(10),
			getMapMode().DPtoLP(10),
			getMapMode().DPtoLP(10)));
	createContents();
}
 
开发者ID:adisandro,项目名称:MMINT,代码行数:28,代码来源:OperatorEditPart.java

示例8: ModelFigure

import org.eclipse.draw2d.FlowLayout; //导入方法依赖的package包/类
/**
 * @generated
 */
public ModelFigure() {

	FlowLayout layoutThis = new FlowLayout();
	layoutThis.setStretchMinorAxis(false);
	layoutThis.setMinorAlignment(FlowLayout.ALIGN_LEFTTOP);

	layoutThis.setMajorAlignment(FlowLayout.ALIGN_LEFTTOP);
	layoutThis.setMajorSpacing(5);
	layoutThis.setMinorSpacing(5);
	layoutThis.setHorizontal(true);

	this.setLayoutManager(layoutThis);

	this.setLineWidth(3);
	this.setForegroundColor(THIS_FORE);
	this.setBackgroundColor(THIS_BACK);
	this.setMinimumSize(new Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(60)));
	this.setBorder(
		new MarginBorder(
			getMapMode().DPtoLP(7),
			getMapMode().DPtoLP(7),
			getMapMode().DPtoLP(7),
			getMapMode().DPtoLP(7)));
	createContents();
}
 
开发者ID:adisandro,项目名称:MMINT,代码行数:29,代码来源:ModelEditPart.java

示例9: ModelElementReferenceFigure

import org.eclipse.draw2d.FlowLayout; //导入方法依赖的package包/类
/**
 * @generated
 */
public ModelElementReferenceFigure() {

	FlowLayout layoutThis = new FlowLayout();
	layoutThis.setStretchMinorAxis(false);
	layoutThis.setMinorAlignment(FlowLayout.ALIGN_LEFTTOP);

	layoutThis.setMajorAlignment(FlowLayout.ALIGN_LEFTTOP);
	layoutThis.setMajorSpacing(5);
	layoutThis.setMinorSpacing(5);
	layoutThis.setHorizontal(true);

	this.setLayoutManager(layoutThis);

	this.setForegroundColor(THIS_FORE);
	this.setBackgroundColor(THIS_BACK);
	this.setBorder(new MarginBorder(getMapMode().DPtoLP(7), getMapMode().DPtoLP(7), getMapMode().DPtoLP(7),
			getMapMode().DPtoLP(7)));
	createContents();
}
 
开发者ID:adisandro,项目名称:MMINT,代码行数:23,代码来源:ModelElementReference2EditPart.java

示例10: MappingReferenceFigure

import org.eclipse.draw2d.FlowLayout; //导入方法依赖的package包/类
/**
 * @generated
 */
public MappingReferenceFigure() {

	FlowLayout layoutThis = new FlowLayout();
	layoutThis.setStretchMinorAxis(false);
	layoutThis.setMinorAlignment(FlowLayout.ALIGN_LEFTTOP);

	layoutThis.setMajorAlignment(FlowLayout.ALIGN_LEFTTOP);
	layoutThis.setMajorSpacing(5);
	layoutThis.setMinorSpacing(5);
	layoutThis.setHorizontal(true);

	this.setLayoutManager(layoutThis);

	this.setCornerDimensions(new Dimension(getMapMode().DPtoLP(12), getMapMode().DPtoLP(12)));
	this.setLineWidth(3);
	this.setForegroundColor(THIS_FORE);
	this.setBackgroundColor(THIS_BACK);
	this.setMinimumSize(new Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(60)));
	this.setBorder(new MarginBorder(getMapMode().DPtoLP(7), getMapMode().DPtoLP(7), getMapMode().DPtoLP(7),
			getMapMode().DPtoLP(7)));
	createContents();
}
 
开发者ID:adisandro,项目名称:MMINT,代码行数:26,代码来源:MappingReferenceEditPart.java

示例11: ModelElementReferenceSuperFigure

import org.eclipse.draw2d.FlowLayout; //导入方法依赖的package包/类
/**
 * @generated
 */
public ModelElementReferenceSuperFigure() {

	FlowLayout layoutThis = new FlowLayout();
	layoutThis.setStretchMinorAxis(false);
	layoutThis.setMinorAlignment(FlowLayout.ALIGN_LEFTTOP);

	layoutThis.setMajorAlignment(FlowLayout.ALIGN_LEFTTOP);
	layoutThis.setMajorSpacing(5);
	layoutThis.setMinorSpacing(5);
	layoutThis.setHorizontal(true);

	this.setLayoutManager(layoutThis);

	this.setLineStyle(Graphics.LINE_DASH);
	this.setForegroundColor(THIS_FORE);
	this.setBackgroundColor(THIS_BACK);
	this.setBorder(new MarginBorder(getMapMode().DPtoLP(7), getMapMode().DPtoLP(7), getMapMode().DPtoLP(7),
			getMapMode().DPtoLP(7)));
	createContents();
}
 
开发者ID:adisandro,项目名称:MMINT,代码行数:24,代码来源:ModelElementReference3EditPart.java

示例12: MappingReferenceSuperFigure

import org.eclipse.draw2d.FlowLayout; //导入方法依赖的package包/类
/**
 * @generated
 */
public MappingReferenceSuperFigure() {

	FlowLayout layoutThis = new FlowLayout();
	layoutThis.setStretchMinorAxis(false);
	layoutThis.setMinorAlignment(FlowLayout.ALIGN_LEFTTOP);

	layoutThis.setMajorAlignment(FlowLayout.ALIGN_LEFTTOP);
	layoutThis.setMajorSpacing(5);
	layoutThis.setMinorSpacing(5);
	layoutThis.setHorizontal(true);

	this.setLayoutManager(layoutThis);

	this.setCornerDimensions(new Dimension(getMapMode().DPtoLP(12), getMapMode().DPtoLP(12)));
	this.setLineWidth(3);
	this.setLineStyle(Graphics.LINE_DASH);
	this.setForegroundColor(THIS_FORE);
	this.setBackgroundColor(THIS_BACK);
	this.setMinimumSize(new Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(60)));
	this.setBorder(new MarginBorder(getMapMode().DPtoLP(7), getMapMode().DPtoLP(7), getMapMode().DPtoLP(7),
			getMapMode().DPtoLP(7)));
	createContents();
}
 
开发者ID:adisandro,项目名称:MMINT,代码行数:27,代码来源:MappingReference2EditPart.java

示例13: decorate

import org.eclipse.draw2d.FlowLayout; //导入方法依赖的package包/类
protected void decorate(View view) {
	List<SCTIssue> issues = store.getIssues(semanticID);
	SCTIssue subDiagramIssue = getSubDiagramIssue(view);
	if (subDiagramIssue != null)
		issues.add(subDiagramIssue);
	Severity severity = Severity.INFO;
	Label toolTip = null;
	if (issues.isEmpty())
		return;
	for (int i = 0; i < issues.size(); i++) {
		Issue issue = issues.get(i);
		Severity nextSeverity = issue.getSeverity();
		Image nextImage = getImage(nextSeverity);
		if (toolTip == null) {
			toolTip = new Label(issue.getMessage(), nextImage);
		} else {
			if (toolTip.getChildren().isEmpty()) {
				Label comositeLabel = new Label();
				FlowLayout fl = new FlowLayout(false);
				fl.setMinorSpacing(0);
				comositeLabel.setLayoutManager(fl);
				comositeLabel.add(toolTip);
				toolTip = comositeLabel;
			}
			toolTip.add(new Label(issue.getMessage(), nextImage));
		}
		severity = (nextSeverity.ordinal() < severity.ordinal()) ? nextSeverity : severity;
	}

	if (view instanceof Edge) {
		setDecoration(getDecoratorTarget().addConnectionDecoration(getImage(severity), 50, true));
		getDecoration().setToolTip(toolTip);
	} else {
		int margin = view.getElement() instanceof Pseudostate || view.getElement() instanceof FinalState ? 0
				: -1;
		setDecoration(getDecoratorTarget().addShapeDecoration(getImage(severity),
				IDecoratorTarget.Direction.NORTH_EAST, margin, false));
		getDecoration().setToolTip(toolTip);
	}
}
 
开发者ID:Yakindu,项目名称:statecharts,代码行数:41,代码来源:StatechartValidationDecorationProvider.java

示例14: GroupColumnFigure

import org.eclipse.draw2d.FlowLayout; //导入方法依赖的package包/类
public GroupColumnFigure() {
    final FlowLayout layout = new FlowLayout();
    layout.setStretchMinorAxis(true);
    layout.setMajorSpacing(0);
    layout.setMinorSpacing(0);
    setLayoutManager(layout);
}
 
开发者ID:dbflute-session,项目名称:erflute,代码行数:8,代码来源:GroupColumnFigure.java

示例15: NormalColumnFigure

import org.eclipse.draw2d.FlowLayout; //导入方法依赖的package包/类
public NormalColumnFigure() {
    final FlowLayout layout = new FlowLayout();
    layout.setStretchMinorAxis(true);
    layout.setMajorSpacing(0);
    layout.setMinorSpacing(0);
    setLayoutManager(layout);
}
 
开发者ID:dbflute-session,项目名称:erflute,代码行数:8,代码来源:NormalColumnFigure.java


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