本文整理汇总了Java中org.eclipse.draw2d.FlowLayout.setMinorAlignment方法的典型用法代码示例。如果您正苦于以下问题:Java FlowLayout.setMinorAlignment方法的具体用法?Java FlowLayout.setMinorAlignment怎么用?Java FlowLayout.setMinorAlignment使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.draw2d.FlowLayout
的用法示例。
在下文中一共展示了FlowLayout.setMinorAlignment方法的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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例13: NormalColumnFigure
import org.eclipse.draw2d.FlowLayout; //导入方法依赖的package包/类
public NormalColumnFigure() {
final FlowLayout layout = new FlowLayout();
layout.setMinorAlignment(OrderedLayout.ALIGN_CENTER);
setLayoutManager(layout);
setBorder(new MarginBorder(new Insets(0, 5, 0, 0)));
}
示例14: initTitleBar
import org.eclipse.draw2d.FlowLayout; //导入方法依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
public void initTitleBar(final Figure top) {
top.setLayoutManager(new BorderLayout());
final Figure title = new Figure();
top.add(title, BorderLayout.TOP);
final FlowLayout titleLayout = new FlowLayout();
titleLayout.setMinorAlignment(OrderedLayout.ALIGN_CENTER);
title.setLayoutManager(titleLayout);
final ImageFigure image = new ImageFigure();
image.setBorder(new MarginBorder(new Insets(5, 10, 5, 2)));
image.setImage(ERDiagramActivator.getImage(getTableFigure().getImageKey()));
title.add(image);
nameLabel = new Label();
nameLabel.setBorder(new MarginBorder(new Insets(5, 0, 5, 20)));
title.add(nameLabel);
final Figure separater = new Figure();
separater.setSize(-1, 1);
separater.setBackgroundColor(ColorConstants.black);
separater.setOpaque(true);
top.add(separater, BorderLayout.BOTTOM);
}
示例15: NormalColumnFigure
import org.eclipse.draw2d.FlowLayout; //导入方法依赖的package包/类
public NormalColumnFigure() {
FlowLayout layout = new FlowLayout();
layout.setMinorAlignment(FlowLayout.ALIGN_CENTER);
this.setLayoutManager(layout);
this.setBorder(new MarginBorder(new Insets(0, 5, 0, 0)));
}