Java Code Examples for org.eclipse.draw2d.RectangleFigure#setLayoutManager()
The following examples show how to use
org.eclipse.draw2d.RectangleFigure#setLayoutManager() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: RegionFigure.java From statecharts with Eclipse Public License 1.0 | 5 votes |
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()); }
Example 2
Source File: TypeEditPart.java From scava with Eclipse Public License 2.0 | 4 votes |
/** * @generated */ private void createContents() { fFigureTypeLabelFigure = new WrappingLabel(); fFigureTypeLabelFigure.setText("Type"); fFigureTypeLabelFigure.setMaximumSize(new Dimension(getMapMode().DPtoLP(10000), getMapMode().DPtoLP(50))); this.add(fFigureTypeLabelFigure); fTypeFieldsCompartmentFigure = new RectangleFigure(); fTypeFieldsCompartmentFigure.setOutline(false); this.add(fTypeFieldsCompartmentFigure); fTypeFieldsCompartmentFigure.setLayoutManager(new StackLayout()); }
Example 3
Source File: LanguageEditPart.java From scava with Eclipse Public License 2.0 | 4 votes |
/** * @generated */ private void createContents() { fFigureLanguageLabelFigure = new WrappingLabel(); fFigureLanguageLabelFigure.setText("Language"); fFigureLanguageLabelFigure .setMaximumSize(new Dimension(getMapMode().DPtoLP(10000), getMapMode().DPtoLP(50))); this.add(fFigureLanguageLabelFigure); fLanguageParametersCompartmentFigure = new RectangleFigure(); fLanguageParametersCompartmentFigure.setOutline(false); this.add(fLanguageParametersCompartmentFigure); fLanguageParametersCompartmentFigure.setLayoutManager(new StackLayout()); }
Example 4
Source File: CustomLaneEditPart.java From bonita-studio with GNU General Public License v2.0 | 4 votes |
private void createContents() { final RectangleFigure laneNameContainerFigure0 = new RectangleFigure(); laneNameContainerFigure0.setOutline(false); laneNameContainerFigure0.setFill(false); GridData constraintLaneNameContainerFigure0 = new GridData(); constraintLaneNameContainerFigure0.verticalAlignment = GridData.FILL; constraintLaneNameContainerFigure0.horizontalAlignment = GridData.FILL; constraintLaneNameContainerFigure0.grabExcessHorizontalSpace = false; constraintLaneNameContainerFigure0.grabExcessVerticalSpace = true; this.add(laneNameContainerFigure0, constraintLaneNameContainerFigure0); final GridLayout layoutPoolNameContainerFigure0 = new GridLayout(); layoutPoolNameContainerFigure0.numColumns = 1; layoutPoolNameContainerFigure0.marginWidth = 0; layoutPoolNameContainerFigure0.marginHeight = 0; laneNameContainerFigure0.setLayoutManager(layoutPoolNameContainerFigure0); fFigureLaneNameFigure = new VerticalLabel(); fFigureLaneNameFigure.setText(""); //$NON-NLS-1$ constraintNameContainerFigure0 = new GridData(); constraintNameContainerFigure0.verticalAlignment = GridData.FILL; constraintNameContainerFigure0.horizontalAlignment = GridData.FILL; constraintNameContainerFigure0.grabExcessHorizontalSpace = true; constraintNameContainerFigure0.grabExcessVerticalSpace = true; laneNameContainerFigure0.add(fFigureLaneNameFigure, constraintNameContainerFigure0); fFigureLaneContainerFigure = new RectangleFigure(); fFigureLaneContainerFigure.setBorder(null); fFigureLaneContainerFigure.setOutline(false); fFigureLaneContainerFigure.setLineWidth(0); fFigureLaneContainerFigure.setFill(false); fFigureLaneContainerFigure.setXOR(false);// BUG : XOR=true cause error on export as image final GridData constraintFFigureLaneContainerFigure = new GridData(); constraintFFigureLaneContainerFigure.verticalAlignment = GridData.FILL; constraintFFigureLaneContainerFigure.horizontalAlignment = GridData.FILL; constraintFFigureLaneContainerFigure.grabExcessHorizontalSpace = true; constraintFFigureLaneContainerFigure.grabExcessVerticalSpace = true; this.add(fFigureLaneContainerFigure, constraintFFigureLaneContainerFigure); }
Example 5
Source File: CustomPoolEditPart.java From bonita-studio with GNU General Public License v2.0 | 4 votes |
/** * @generated */ private void createContents() { final RectangleFigure poolNameContainerFigure0 = new RectangleFigure(); poolNameContainerFigure0.setOutline(true); poolNameContainerFigure0.setFill(false); constraintPoolNameContainerFigure0 = new GridData(); constraintPoolNameContainerFigure0.verticalAlignment = GridData.FILL; constraintPoolNameContainerFigure0.horizontalAlignment = GridData.FILL; constraintPoolNameContainerFigure0.grabExcessHorizontalSpace = false; constraintPoolNameContainerFigure0.grabExcessVerticalSpace = true; this.add(poolNameContainerFigure0, constraintPoolNameContainerFigure0); final GridLayout layoutPoolNameContainerFigure0 = new GridLayout(); layoutPoolNameContainerFigure0.numColumns = 1; layoutPoolNameContainerFigure0.marginWidth = 0; layoutPoolNameContainerFigure0.marginHeight = 0; poolNameContainerFigure0.setLayoutManager(layoutPoolNameContainerFigure0); fFigurePoolNameFigure = new VerticalLabel(); fFigurePoolNameFigure.setText(""); //$NON-NLS-1$ final GridData constraintFFigurePoolNameFigure = new GridData(); constraintFFigurePoolNameFigure.verticalAlignment = GridData.FILL; constraintFFigurePoolNameFigure.horizontalAlignment = GridData.FILL; constraintFFigurePoolNameFigure.grabExcessHorizontalSpace = true; constraintFFigurePoolNameFigure.grabExcessVerticalSpace = true; poolNameContainerFigure0.add(fFigurePoolNameFigure, constraintFFigurePoolNameFigure); fFigurePoolContainerFigure = new RectangleFigure(); fFigurePoolContainerFigure.setOutline(true); final GridData constraintFFigurePoolContainerFigure = new GridData(); constraintFFigurePoolContainerFigure.verticalAlignment = GridData.FILL; constraintFFigurePoolContainerFigure.horizontalAlignment = GridData.FILL; constraintFFigurePoolContainerFigure.grabExcessHorizontalSpace = true; constraintFFigurePoolContainerFigure.grabExcessVerticalSpace = true; this.add(fFigurePoolContainerFigure, constraintFFigurePoolContainerFigure); }
Example 6
Source File: LaneEditPart.java From bonita-studio with GNU General Public License v2.0 | 4 votes |
/** * @generated */ private void createContents() { RectangleFigure nameContainerFigure0 = new RectangleFigure(); GridData constraintNameContainerFigure0 = new GridData(); constraintNameContainerFigure0.verticalAlignment = GridData.FILL; constraintNameContainerFigure0.horizontalAlignment = GridData.BEGINNING; constraintNameContainerFigure0.horizontalIndent = 0; constraintNameContainerFigure0.horizontalSpan = 1; constraintNameContainerFigure0.verticalSpan = 1; constraintNameContainerFigure0.grabExcessHorizontalSpace = false; constraintNameContainerFigure0.grabExcessVerticalSpace = true; constraintNameContainerFigure0.widthHint = 20; constraintNameContainerFigure0.heightHint = 0; this.add(nameContainerFigure0, constraintNameContainerFigure0); GridLayout layoutNameContainerFigure0 = new GridLayout(); layoutNameContainerFigure0.numColumns = 1; layoutNameContainerFigure0.makeColumnsEqualWidth = true; layoutNameContainerFigure0.horizontalSpacing = 0; layoutNameContainerFigure0.verticalSpacing = 0; layoutNameContainerFigure0.marginWidth = 0; layoutNameContainerFigure0.marginHeight = 0; nameContainerFigure0.setLayoutManager(layoutNameContainerFigure0); fFigureLaneNameFigure = new WrappingLabel(); fFigureLaneNameFigure.setText(""); GridData constraintFFigureLaneNameFigure = new GridData(); constraintFFigureLaneNameFigure.verticalAlignment = GridData.FILL; constraintFFigureLaneNameFigure.horizontalAlignment = GridData.FILL; constraintFFigureLaneNameFigure.horizontalIndent = 2; constraintFFigureLaneNameFigure.horizontalSpan = 1; constraintFFigureLaneNameFigure.verticalSpan = 1; constraintFFigureLaneNameFigure.grabExcessHorizontalSpace = true; constraintFFigureLaneNameFigure.grabExcessVerticalSpace = true; nameContainerFigure0.add(fFigureLaneNameFigure, constraintFFigureLaneNameFigure); fFigureLaneContainerFigure = new RectangleFigure(); GridData constraintFFigureLaneContainerFigure = new GridData(); constraintFFigureLaneContainerFigure.verticalAlignment = GridData.FILL; constraintFFigureLaneContainerFigure.horizontalAlignment = GridData.FILL; constraintFFigureLaneContainerFigure.horizontalIndent = 0; constraintFFigureLaneContainerFigure.horizontalSpan = 1; constraintFFigureLaneContainerFigure.verticalSpan = 1; constraintFFigureLaneContainerFigure.grabExcessHorizontalSpace = true; constraintFFigureLaneContainerFigure.grabExcessVerticalSpace = true; this.add(fFigureLaneContainerFigure, constraintFFigureLaneContainerFigure); }
Example 7
Source File: PoolEditPart.java From bonita-studio with GNU General Public License v2.0 | 4 votes |
/** * @generated */ private void createContents() { RectangleFigure poolNameContainerFigure0 = new RectangleFigure(); GridData constraintPoolNameContainerFigure0 = new GridData(); constraintPoolNameContainerFigure0.verticalAlignment = GridData.FILL; constraintPoolNameContainerFigure0.horizontalAlignment = GridData.BEGINNING; constraintPoolNameContainerFigure0.horizontalIndent = 0; constraintPoolNameContainerFigure0.horizontalSpan = 1; constraintPoolNameContainerFigure0.verticalSpan = 1; constraintPoolNameContainerFigure0.grabExcessHorizontalSpace = false; constraintPoolNameContainerFigure0.grabExcessVerticalSpace = true; constraintPoolNameContainerFigure0.widthHint = 20; constraintPoolNameContainerFigure0.heightHint = 0; this.add(poolNameContainerFigure0, constraintPoolNameContainerFigure0); GridLayout layoutPoolNameContainerFigure0 = new GridLayout(); layoutPoolNameContainerFigure0.numColumns = 1; layoutPoolNameContainerFigure0.makeColumnsEqualWidth = true; layoutPoolNameContainerFigure0.horizontalSpacing = 0; layoutPoolNameContainerFigure0.verticalSpacing = 0; layoutPoolNameContainerFigure0.marginWidth = 0; layoutPoolNameContainerFigure0.marginHeight = 0; poolNameContainerFigure0.setLayoutManager(layoutPoolNameContainerFigure0); fFigurePoolNameFigure = new WrappingLabel(); fFigurePoolNameFigure.setText(""); GridData constraintFFigurePoolNameFigure = new GridData(); constraintFFigurePoolNameFigure.verticalAlignment = GridData.FILL; constraintFFigurePoolNameFigure.horizontalAlignment = GridData.FILL; constraintFFigurePoolNameFigure.horizontalIndent = 2; constraintFFigurePoolNameFigure.horizontalSpan = 1; constraintFFigurePoolNameFigure.verticalSpan = 1; constraintFFigurePoolNameFigure.grabExcessHorizontalSpace = true; constraintFFigurePoolNameFigure.grabExcessVerticalSpace = true; poolNameContainerFigure0.add(fFigurePoolNameFigure, constraintFFigurePoolNameFigure); fFigurePoolContainerFigure = new RectangleFigure(); GridData constraintFFigurePoolContainerFigure = new GridData(); constraintFFigurePoolContainerFigure.verticalAlignment = GridData.FILL; constraintFFigurePoolContainerFigure.horizontalAlignment = GridData.FILL; constraintFFigurePoolContainerFigure.horizontalIndent = 0; constraintFFigurePoolContainerFigure.horizontalSpan = 1; constraintFFigurePoolContainerFigure.verticalSpan = 1; constraintFFigurePoolContainerFigure.grabExcessHorizontalSpace = true; constraintFFigurePoolContainerFigure.grabExcessVerticalSpace = true; this.add(fFigurePoolContainerFigure, constraintFFigurePoolContainerFigure); }