Java Code Examples for org.eclipse.draw2d.RectangleFigure#setOutline()
The following examples show how to use
org.eclipse.draw2d.RectangleFigure#setOutline() .
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: ScriptedTaskEditPart.java From scava with Eclipse Public License 2.0 | 4 votes |
/** * @generated */ private void createContents() { fFigureScriptedTaskLabelFigure = new WrappingLabel(); fFigureScriptedTaskLabelFigure.setText("ScriptedTask"); fFigureScriptedTaskLabelFigure .setMaximumSize(new Dimension(getMapMode().DPtoLP(10000), getMapMode().DPtoLP(50))); this.add(fFigureScriptedTaskLabelFigure); fScriptedTaskOutputVariablesCompartmentFigure = new RectangleFigure(); fScriptedTaskOutputVariablesCompartmentFigure.setOutline(false); this.add(fScriptedTaskOutputVariablesCompartmentFigure); }
Example 3
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 4
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 5
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 6
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); }