rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
this.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID);
this.setLineStyle(Graphics.LINE_SOLID);
public ClassFigure() { org.eclipse.gmf.internal.codegen.draw2d.GridLayout layoutThis = new org.eclipse.gmf.internal.codegen.draw2d.GridLayout(); layoutThis.numColumns = 1; layoutThis.makeColumnsEqualWidth = true; layoutThis.horizontalSpacing = 0; layoutThis.verticalSpacing = 0; layoutThis.marginWidth = 0; layoutThis.marginHeight = 0; this.setLayoutManager(layoutThis); this.setFill(false); this.setFillXOR(false); this.setOutline(false); this.setOutlineXOR(false); this.setLineWidth(1); this.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); createContents(); }
org.eclipse.draw2d.RectangleFigure classFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure();
RectangleFigure classFigure_NameContainer0 = new RectangleFigure();
private void createContents() { org.eclipse.draw2d.RectangleFigure classFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); classFigure_NameContainer0.setFill(true); classFigure_NameContainer0.setFillXOR(false); classFigure_NameContainer0.setOutline(true); classFigure_NameContainer0.setOutlineXOR(false); classFigure_NameContainer0.setLineWidth(1); classFigure_NameContainer0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_NameContainer0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintClassFigure_NameContainer0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintClassFigure_NameContainer0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_NameContainer0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_NameContainer0.horizontalIndent = 0; constraintClassFigure_NameContainer0.horizontalSpan = 2; constraintClassFigure_NameContainer0.verticalSpan = 1; constraintClassFigure_NameContainer0.grabExcessHorizontalSpace = true; constraintClassFigure_NameContainer0.grabExcessVerticalSpace = false; this.add(classFigure_NameContainer0, constraintClassFigure_NameContainer0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutClassFigure_NameContainer0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); classFigure_NameContainer0.setLayoutManager(layoutClassFigure_NameContainer0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel classFigure_name1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); classFigure_name1.setText(""); classFigure_NameContainer0.add(classFigure_name1); setFigureClassFigure_name(classFigure_name1); org.eclipse.draw2d.RectangleFigure classFigure_Body0 = new org.eclipse.draw2d.RectangleFigure(); classFigure_Body0.setFill(true); classFigure_Body0.setFillXOR(false); classFigure_Body0.setOutline(true); classFigure_Body0.setOutlineXOR(false); classFigure_Body0.setLineWidth(1); classFigure_Body0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintClassFigure_Body0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintClassFigure_Body0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_Body0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_Body0.horizontalIndent = 0; constraintClassFigure_Body0.horizontalSpan = 2; constraintClassFigure_Body0.verticalSpan = 1; constraintClassFigure_Body0.grabExcessHorizontalSpace = true; constraintClassFigure_Body0.grabExcessVerticalSpace = true; this.add(classFigure_Body0, constraintClassFigure_Body0); org.eclipse.draw2d.ToolbarLayout layoutClassFigure_Body0 = new org.eclipse.draw2d.ToolbarLayout(); layoutClassFigure_Body0.setStretchMinorAxis(true); layoutClassFigure_Body0.setMinorAlignment(org.eclipse.draw2d.ToolbarLayout.ALIGN_CENTER ); layoutClassFigure_Body0.setSpacing(0); layoutClassFigure_Body0.setVertical(true); classFigure_Body0.setLayoutManager(layoutClassFigure_Body0); org.eclipse.draw2d.RectangleFigure classFigure_PropertiesCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_PropertiesCompartment1.setFill(true); classFigure_PropertiesCompartment1.setFillXOR(false); classFigure_PropertiesCompartment1.setOutline(true); classFigure_PropertiesCompartment1.setOutlineXOR(false); classFigure_PropertiesCompartment1.setLineWidth(1); classFigure_PropertiesCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_PropertiesCompartment1); setFigureClassFigure_PropertiesCompartment(classFigure_PropertiesCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_OperationsCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_OperationsCompartment1.setFill(true); classFigure_OperationsCompartment1.setFillXOR(false); classFigure_OperationsCompartment1.setOutline(true); classFigure_OperationsCompartment1.setOutlineXOR(false); classFigure_OperationsCompartment1.setLineWidth(1); classFigure_OperationsCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_OperationsCompartment1); setFigureClassFigure_OperationsCompartment(classFigure_OperationsCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_ClassesCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_ClassesCompartment1.setFill(true); classFigure_ClassesCompartment1.setFillXOR(false); classFigure_ClassesCompartment1.setOutline(true); classFigure_ClassesCompartment1.setOutlineXOR(false); classFigure_ClassesCompartment1.setLineWidth(1); classFigure_ClassesCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_ClassesCompartment1); setFigureClassFigure_ClassesCompartment(classFigure_ClassesCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_LiteralsCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_LiteralsCompartment1.setFill(true); classFigure_LiteralsCompartment1.setFillXOR(false); classFigure_LiteralsCompartment1.setOutline(true); classFigure_LiteralsCompartment1.setOutlineXOR(false); classFigure_LiteralsCompartment1.setLineWidth(1); classFigure_LiteralsCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_LiteralsCompartment1); setFigureClassFigure_LiteralsCompartment(classFigure_LiteralsCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_OthersCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_OthersCompartment1.setFill(true); classFigure_OthersCompartment1.setFillXOR(false); classFigure_OthersCompartment1.setOutline(true); classFigure_OthersCompartment1.setOutlineXOR(false); classFigure_OthersCompartment1.setLineWidth(1); classFigure_OthersCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_OthersCompartment1); setFigureClassFigure_OthersCompartment(classFigure_OthersCompartment1); }
classFigure_NameContainer0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_NameContainer0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25)));
classFigure_NameContainer0.setLineStyle(Graphics.LINE_SOLID); classFigure_NameContainer0.setMinimumSize(new Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25)));
private void createContents() { org.eclipse.draw2d.RectangleFigure classFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); classFigure_NameContainer0.setFill(true); classFigure_NameContainer0.setFillXOR(false); classFigure_NameContainer0.setOutline(true); classFigure_NameContainer0.setOutlineXOR(false); classFigure_NameContainer0.setLineWidth(1); classFigure_NameContainer0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_NameContainer0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintClassFigure_NameContainer0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintClassFigure_NameContainer0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_NameContainer0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_NameContainer0.horizontalIndent = 0; constraintClassFigure_NameContainer0.horizontalSpan = 2; constraintClassFigure_NameContainer0.verticalSpan = 1; constraintClassFigure_NameContainer0.grabExcessHorizontalSpace = true; constraintClassFigure_NameContainer0.grabExcessVerticalSpace = false; this.add(classFigure_NameContainer0, constraintClassFigure_NameContainer0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutClassFigure_NameContainer0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); classFigure_NameContainer0.setLayoutManager(layoutClassFigure_NameContainer0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel classFigure_name1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); classFigure_name1.setText(""); classFigure_NameContainer0.add(classFigure_name1); setFigureClassFigure_name(classFigure_name1); org.eclipse.draw2d.RectangleFigure classFigure_Body0 = new org.eclipse.draw2d.RectangleFigure(); classFigure_Body0.setFill(true); classFigure_Body0.setFillXOR(false); classFigure_Body0.setOutline(true); classFigure_Body0.setOutlineXOR(false); classFigure_Body0.setLineWidth(1); classFigure_Body0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintClassFigure_Body0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintClassFigure_Body0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_Body0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_Body0.horizontalIndent = 0; constraintClassFigure_Body0.horizontalSpan = 2; constraintClassFigure_Body0.verticalSpan = 1; constraintClassFigure_Body0.grabExcessHorizontalSpace = true; constraintClassFigure_Body0.grabExcessVerticalSpace = true; this.add(classFigure_Body0, constraintClassFigure_Body0); org.eclipse.draw2d.ToolbarLayout layoutClassFigure_Body0 = new org.eclipse.draw2d.ToolbarLayout(); layoutClassFigure_Body0.setStretchMinorAxis(true); layoutClassFigure_Body0.setMinorAlignment(org.eclipse.draw2d.ToolbarLayout.ALIGN_CENTER ); layoutClassFigure_Body0.setSpacing(0); layoutClassFigure_Body0.setVertical(true); classFigure_Body0.setLayoutManager(layoutClassFigure_Body0); org.eclipse.draw2d.RectangleFigure classFigure_PropertiesCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_PropertiesCompartment1.setFill(true); classFigure_PropertiesCompartment1.setFillXOR(false); classFigure_PropertiesCompartment1.setOutline(true); classFigure_PropertiesCompartment1.setOutlineXOR(false); classFigure_PropertiesCompartment1.setLineWidth(1); classFigure_PropertiesCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_PropertiesCompartment1); setFigureClassFigure_PropertiesCompartment(classFigure_PropertiesCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_OperationsCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_OperationsCompartment1.setFill(true); classFigure_OperationsCompartment1.setFillXOR(false); classFigure_OperationsCompartment1.setOutline(true); classFigure_OperationsCompartment1.setOutlineXOR(false); classFigure_OperationsCompartment1.setLineWidth(1); classFigure_OperationsCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_OperationsCompartment1); setFigureClassFigure_OperationsCompartment(classFigure_OperationsCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_ClassesCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_ClassesCompartment1.setFill(true); classFigure_ClassesCompartment1.setFillXOR(false); classFigure_ClassesCompartment1.setOutline(true); classFigure_ClassesCompartment1.setOutlineXOR(false); classFigure_ClassesCompartment1.setLineWidth(1); classFigure_ClassesCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_ClassesCompartment1); setFigureClassFigure_ClassesCompartment(classFigure_ClassesCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_LiteralsCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_LiteralsCompartment1.setFill(true); classFigure_LiteralsCompartment1.setFillXOR(false); classFigure_LiteralsCompartment1.setOutline(true); classFigure_LiteralsCompartment1.setOutlineXOR(false); classFigure_LiteralsCompartment1.setLineWidth(1); classFigure_LiteralsCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_LiteralsCompartment1); setFigureClassFigure_LiteralsCompartment(classFigure_LiteralsCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_OthersCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_OthersCompartment1.setFill(true); classFigure_OthersCompartment1.setFillXOR(false); classFigure_OthersCompartment1.setOutline(true); classFigure_OthersCompartment1.setOutlineXOR(false); classFigure_OthersCompartment1.setLineWidth(1); classFigure_OthersCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_OthersCompartment1); setFigureClassFigure_OthersCompartment(classFigure_OthersCompartment1); }
org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintClassFigure_NameContainer0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintClassFigure_NameContainer0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_NameContainer0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL;
GridLayoutData constraintClassFigure_NameContainer0 = new GridLayoutData(); constraintClassFigure_NameContainer0.verticalAlignment = GridLayoutData.FILL; constraintClassFigure_NameContainer0.horizontalAlignment = GridLayoutData.FILL;
private void createContents() { org.eclipse.draw2d.RectangleFigure classFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); classFigure_NameContainer0.setFill(true); classFigure_NameContainer0.setFillXOR(false); classFigure_NameContainer0.setOutline(true); classFigure_NameContainer0.setOutlineXOR(false); classFigure_NameContainer0.setLineWidth(1); classFigure_NameContainer0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_NameContainer0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintClassFigure_NameContainer0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintClassFigure_NameContainer0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_NameContainer0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_NameContainer0.horizontalIndent = 0; constraintClassFigure_NameContainer0.horizontalSpan = 2; constraintClassFigure_NameContainer0.verticalSpan = 1; constraintClassFigure_NameContainer0.grabExcessHorizontalSpace = true; constraintClassFigure_NameContainer0.grabExcessVerticalSpace = false; this.add(classFigure_NameContainer0, constraintClassFigure_NameContainer0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutClassFigure_NameContainer0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); classFigure_NameContainer0.setLayoutManager(layoutClassFigure_NameContainer0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel classFigure_name1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); classFigure_name1.setText(""); classFigure_NameContainer0.add(classFigure_name1); setFigureClassFigure_name(classFigure_name1); org.eclipse.draw2d.RectangleFigure classFigure_Body0 = new org.eclipse.draw2d.RectangleFigure(); classFigure_Body0.setFill(true); classFigure_Body0.setFillXOR(false); classFigure_Body0.setOutline(true); classFigure_Body0.setOutlineXOR(false); classFigure_Body0.setLineWidth(1); classFigure_Body0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintClassFigure_Body0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintClassFigure_Body0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_Body0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_Body0.horizontalIndent = 0; constraintClassFigure_Body0.horizontalSpan = 2; constraintClassFigure_Body0.verticalSpan = 1; constraintClassFigure_Body0.grabExcessHorizontalSpace = true; constraintClassFigure_Body0.grabExcessVerticalSpace = true; this.add(classFigure_Body0, constraintClassFigure_Body0); org.eclipse.draw2d.ToolbarLayout layoutClassFigure_Body0 = new org.eclipse.draw2d.ToolbarLayout(); layoutClassFigure_Body0.setStretchMinorAxis(true); layoutClassFigure_Body0.setMinorAlignment(org.eclipse.draw2d.ToolbarLayout.ALIGN_CENTER ); layoutClassFigure_Body0.setSpacing(0); layoutClassFigure_Body0.setVertical(true); classFigure_Body0.setLayoutManager(layoutClassFigure_Body0); org.eclipse.draw2d.RectangleFigure classFigure_PropertiesCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_PropertiesCompartment1.setFill(true); classFigure_PropertiesCompartment1.setFillXOR(false); classFigure_PropertiesCompartment1.setOutline(true); classFigure_PropertiesCompartment1.setOutlineXOR(false); classFigure_PropertiesCompartment1.setLineWidth(1); classFigure_PropertiesCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_PropertiesCompartment1); setFigureClassFigure_PropertiesCompartment(classFigure_PropertiesCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_OperationsCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_OperationsCompartment1.setFill(true); classFigure_OperationsCompartment1.setFillXOR(false); classFigure_OperationsCompartment1.setOutline(true); classFigure_OperationsCompartment1.setOutlineXOR(false); classFigure_OperationsCompartment1.setLineWidth(1); classFigure_OperationsCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_OperationsCompartment1); setFigureClassFigure_OperationsCompartment(classFigure_OperationsCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_ClassesCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_ClassesCompartment1.setFill(true); classFigure_ClassesCompartment1.setFillXOR(false); classFigure_ClassesCompartment1.setOutline(true); classFigure_ClassesCompartment1.setOutlineXOR(false); classFigure_ClassesCompartment1.setLineWidth(1); classFigure_ClassesCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_ClassesCompartment1); setFigureClassFigure_ClassesCompartment(classFigure_ClassesCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_LiteralsCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_LiteralsCompartment1.setFill(true); classFigure_LiteralsCompartment1.setFillXOR(false); classFigure_LiteralsCompartment1.setOutline(true); classFigure_LiteralsCompartment1.setOutlineXOR(false); classFigure_LiteralsCompartment1.setLineWidth(1); classFigure_LiteralsCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_LiteralsCompartment1); setFigureClassFigure_LiteralsCompartment(classFigure_LiteralsCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_OthersCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_OthersCompartment1.setFill(true); classFigure_OthersCompartment1.setFillXOR(false); classFigure_OthersCompartment1.setOutline(true); classFigure_OthersCompartment1.setOutlineXOR(false); classFigure_OthersCompartment1.setLineWidth(1); classFigure_OthersCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_OthersCompartment1); setFigureClassFigure_OthersCompartment(classFigure_OthersCompartment1); }
org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutClassFigure_NameContainer0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout();
CenterLayout layoutClassFigure_NameContainer0 = new CenterLayout();
private void createContents() { org.eclipse.draw2d.RectangleFigure classFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); classFigure_NameContainer0.setFill(true); classFigure_NameContainer0.setFillXOR(false); classFigure_NameContainer0.setOutline(true); classFigure_NameContainer0.setOutlineXOR(false); classFigure_NameContainer0.setLineWidth(1); classFigure_NameContainer0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_NameContainer0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintClassFigure_NameContainer0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintClassFigure_NameContainer0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_NameContainer0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_NameContainer0.horizontalIndent = 0; constraintClassFigure_NameContainer0.horizontalSpan = 2; constraintClassFigure_NameContainer0.verticalSpan = 1; constraintClassFigure_NameContainer0.grabExcessHorizontalSpace = true; constraintClassFigure_NameContainer0.grabExcessVerticalSpace = false; this.add(classFigure_NameContainer0, constraintClassFigure_NameContainer0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutClassFigure_NameContainer0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); classFigure_NameContainer0.setLayoutManager(layoutClassFigure_NameContainer0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel classFigure_name1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); classFigure_name1.setText(""); classFigure_NameContainer0.add(classFigure_name1); setFigureClassFigure_name(classFigure_name1); org.eclipse.draw2d.RectangleFigure classFigure_Body0 = new org.eclipse.draw2d.RectangleFigure(); classFigure_Body0.setFill(true); classFigure_Body0.setFillXOR(false); classFigure_Body0.setOutline(true); classFigure_Body0.setOutlineXOR(false); classFigure_Body0.setLineWidth(1); classFigure_Body0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintClassFigure_Body0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintClassFigure_Body0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_Body0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_Body0.horizontalIndent = 0; constraintClassFigure_Body0.horizontalSpan = 2; constraintClassFigure_Body0.verticalSpan = 1; constraintClassFigure_Body0.grabExcessHorizontalSpace = true; constraintClassFigure_Body0.grabExcessVerticalSpace = true; this.add(classFigure_Body0, constraintClassFigure_Body0); org.eclipse.draw2d.ToolbarLayout layoutClassFigure_Body0 = new org.eclipse.draw2d.ToolbarLayout(); layoutClassFigure_Body0.setStretchMinorAxis(true); layoutClassFigure_Body0.setMinorAlignment(org.eclipse.draw2d.ToolbarLayout.ALIGN_CENTER ); layoutClassFigure_Body0.setSpacing(0); layoutClassFigure_Body0.setVertical(true); classFigure_Body0.setLayoutManager(layoutClassFigure_Body0); org.eclipse.draw2d.RectangleFigure classFigure_PropertiesCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_PropertiesCompartment1.setFill(true); classFigure_PropertiesCompartment1.setFillXOR(false); classFigure_PropertiesCompartment1.setOutline(true); classFigure_PropertiesCompartment1.setOutlineXOR(false); classFigure_PropertiesCompartment1.setLineWidth(1); classFigure_PropertiesCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_PropertiesCompartment1); setFigureClassFigure_PropertiesCompartment(classFigure_PropertiesCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_OperationsCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_OperationsCompartment1.setFill(true); classFigure_OperationsCompartment1.setFillXOR(false); classFigure_OperationsCompartment1.setOutline(true); classFigure_OperationsCompartment1.setOutlineXOR(false); classFigure_OperationsCompartment1.setLineWidth(1); classFigure_OperationsCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_OperationsCompartment1); setFigureClassFigure_OperationsCompartment(classFigure_OperationsCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_ClassesCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_ClassesCompartment1.setFill(true); classFigure_ClassesCompartment1.setFillXOR(false); classFigure_ClassesCompartment1.setOutline(true); classFigure_ClassesCompartment1.setOutlineXOR(false); classFigure_ClassesCompartment1.setLineWidth(1); classFigure_ClassesCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_ClassesCompartment1); setFigureClassFigure_ClassesCompartment(classFigure_ClassesCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_LiteralsCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_LiteralsCompartment1.setFill(true); classFigure_LiteralsCompartment1.setFillXOR(false); classFigure_LiteralsCompartment1.setOutline(true); classFigure_LiteralsCompartment1.setOutlineXOR(false); classFigure_LiteralsCompartment1.setLineWidth(1); classFigure_LiteralsCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_LiteralsCompartment1); setFigureClassFigure_LiteralsCompartment(classFigure_LiteralsCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_OthersCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_OthersCompartment1.setFill(true); classFigure_OthersCompartment1.setFillXOR(false); classFigure_OthersCompartment1.setOutline(true); classFigure_OthersCompartment1.setOutlineXOR(false); classFigure_OthersCompartment1.setLineWidth(1); classFigure_OthersCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_OthersCompartment1); setFigureClassFigure_OthersCompartment(classFigure_OthersCompartment1); }
org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel classFigure_name1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel();
WrapLabel classFigure_name1 = new WrapLabel();
private void createContents() { org.eclipse.draw2d.RectangleFigure classFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); classFigure_NameContainer0.setFill(true); classFigure_NameContainer0.setFillXOR(false); classFigure_NameContainer0.setOutline(true); classFigure_NameContainer0.setOutlineXOR(false); classFigure_NameContainer0.setLineWidth(1); classFigure_NameContainer0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_NameContainer0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintClassFigure_NameContainer0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintClassFigure_NameContainer0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_NameContainer0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_NameContainer0.horizontalIndent = 0; constraintClassFigure_NameContainer0.horizontalSpan = 2; constraintClassFigure_NameContainer0.verticalSpan = 1; constraintClassFigure_NameContainer0.grabExcessHorizontalSpace = true; constraintClassFigure_NameContainer0.grabExcessVerticalSpace = false; this.add(classFigure_NameContainer0, constraintClassFigure_NameContainer0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutClassFigure_NameContainer0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); classFigure_NameContainer0.setLayoutManager(layoutClassFigure_NameContainer0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel classFigure_name1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); classFigure_name1.setText(""); classFigure_NameContainer0.add(classFigure_name1); setFigureClassFigure_name(classFigure_name1); org.eclipse.draw2d.RectangleFigure classFigure_Body0 = new org.eclipse.draw2d.RectangleFigure(); classFigure_Body0.setFill(true); classFigure_Body0.setFillXOR(false); classFigure_Body0.setOutline(true); classFigure_Body0.setOutlineXOR(false); classFigure_Body0.setLineWidth(1); classFigure_Body0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintClassFigure_Body0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintClassFigure_Body0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_Body0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_Body0.horizontalIndent = 0; constraintClassFigure_Body0.horizontalSpan = 2; constraintClassFigure_Body0.verticalSpan = 1; constraintClassFigure_Body0.grabExcessHorizontalSpace = true; constraintClassFigure_Body0.grabExcessVerticalSpace = true; this.add(classFigure_Body0, constraintClassFigure_Body0); org.eclipse.draw2d.ToolbarLayout layoutClassFigure_Body0 = new org.eclipse.draw2d.ToolbarLayout(); layoutClassFigure_Body0.setStretchMinorAxis(true); layoutClassFigure_Body0.setMinorAlignment(org.eclipse.draw2d.ToolbarLayout.ALIGN_CENTER ); layoutClassFigure_Body0.setSpacing(0); layoutClassFigure_Body0.setVertical(true); classFigure_Body0.setLayoutManager(layoutClassFigure_Body0); org.eclipse.draw2d.RectangleFigure classFigure_PropertiesCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_PropertiesCompartment1.setFill(true); classFigure_PropertiesCompartment1.setFillXOR(false); classFigure_PropertiesCompartment1.setOutline(true); classFigure_PropertiesCompartment1.setOutlineXOR(false); classFigure_PropertiesCompartment1.setLineWidth(1); classFigure_PropertiesCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_PropertiesCompartment1); setFigureClassFigure_PropertiesCompartment(classFigure_PropertiesCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_OperationsCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_OperationsCompartment1.setFill(true); classFigure_OperationsCompartment1.setFillXOR(false); classFigure_OperationsCompartment1.setOutline(true); classFigure_OperationsCompartment1.setOutlineXOR(false); classFigure_OperationsCompartment1.setLineWidth(1); classFigure_OperationsCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_OperationsCompartment1); setFigureClassFigure_OperationsCompartment(classFigure_OperationsCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_ClassesCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_ClassesCompartment1.setFill(true); classFigure_ClassesCompartment1.setFillXOR(false); classFigure_ClassesCompartment1.setOutline(true); classFigure_ClassesCompartment1.setOutlineXOR(false); classFigure_ClassesCompartment1.setLineWidth(1); classFigure_ClassesCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_ClassesCompartment1); setFigureClassFigure_ClassesCompartment(classFigure_ClassesCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_LiteralsCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_LiteralsCompartment1.setFill(true); classFigure_LiteralsCompartment1.setFillXOR(false); classFigure_LiteralsCompartment1.setOutline(true); classFigure_LiteralsCompartment1.setOutlineXOR(false); classFigure_LiteralsCompartment1.setLineWidth(1); classFigure_LiteralsCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_LiteralsCompartment1); setFigureClassFigure_LiteralsCompartment(classFigure_LiteralsCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_OthersCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_OthersCompartment1.setFill(true); classFigure_OthersCompartment1.setFillXOR(false); classFigure_OthersCompartment1.setOutline(true); classFigure_OthersCompartment1.setOutlineXOR(false); classFigure_OthersCompartment1.setLineWidth(1); classFigure_OthersCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_OthersCompartment1); setFigureClassFigure_OthersCompartment(classFigure_OthersCompartment1); }
org.eclipse.draw2d.RectangleFigure classFigure_Body0 = new org.eclipse.draw2d.RectangleFigure();
RectangleFigure classFigure_Body0 = new RectangleFigure();
private void createContents() { org.eclipse.draw2d.RectangleFigure classFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); classFigure_NameContainer0.setFill(true); classFigure_NameContainer0.setFillXOR(false); classFigure_NameContainer0.setOutline(true); classFigure_NameContainer0.setOutlineXOR(false); classFigure_NameContainer0.setLineWidth(1); classFigure_NameContainer0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_NameContainer0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintClassFigure_NameContainer0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintClassFigure_NameContainer0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_NameContainer0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_NameContainer0.horizontalIndent = 0; constraintClassFigure_NameContainer0.horizontalSpan = 2; constraintClassFigure_NameContainer0.verticalSpan = 1; constraintClassFigure_NameContainer0.grabExcessHorizontalSpace = true; constraintClassFigure_NameContainer0.grabExcessVerticalSpace = false; this.add(classFigure_NameContainer0, constraintClassFigure_NameContainer0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutClassFigure_NameContainer0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); classFigure_NameContainer0.setLayoutManager(layoutClassFigure_NameContainer0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel classFigure_name1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); classFigure_name1.setText(""); classFigure_NameContainer0.add(classFigure_name1); setFigureClassFigure_name(classFigure_name1); org.eclipse.draw2d.RectangleFigure classFigure_Body0 = new org.eclipse.draw2d.RectangleFigure(); classFigure_Body0.setFill(true); classFigure_Body0.setFillXOR(false); classFigure_Body0.setOutline(true); classFigure_Body0.setOutlineXOR(false); classFigure_Body0.setLineWidth(1); classFigure_Body0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintClassFigure_Body0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintClassFigure_Body0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_Body0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_Body0.horizontalIndent = 0; constraintClassFigure_Body0.horizontalSpan = 2; constraintClassFigure_Body0.verticalSpan = 1; constraintClassFigure_Body0.grabExcessHorizontalSpace = true; constraintClassFigure_Body0.grabExcessVerticalSpace = true; this.add(classFigure_Body0, constraintClassFigure_Body0); org.eclipse.draw2d.ToolbarLayout layoutClassFigure_Body0 = new org.eclipse.draw2d.ToolbarLayout(); layoutClassFigure_Body0.setStretchMinorAxis(true); layoutClassFigure_Body0.setMinorAlignment(org.eclipse.draw2d.ToolbarLayout.ALIGN_CENTER ); layoutClassFigure_Body0.setSpacing(0); layoutClassFigure_Body0.setVertical(true); classFigure_Body0.setLayoutManager(layoutClassFigure_Body0); org.eclipse.draw2d.RectangleFigure classFigure_PropertiesCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_PropertiesCompartment1.setFill(true); classFigure_PropertiesCompartment1.setFillXOR(false); classFigure_PropertiesCompartment1.setOutline(true); classFigure_PropertiesCompartment1.setOutlineXOR(false); classFigure_PropertiesCompartment1.setLineWidth(1); classFigure_PropertiesCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_PropertiesCompartment1); setFigureClassFigure_PropertiesCompartment(classFigure_PropertiesCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_OperationsCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_OperationsCompartment1.setFill(true); classFigure_OperationsCompartment1.setFillXOR(false); classFigure_OperationsCompartment1.setOutline(true); classFigure_OperationsCompartment1.setOutlineXOR(false); classFigure_OperationsCompartment1.setLineWidth(1); classFigure_OperationsCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_OperationsCompartment1); setFigureClassFigure_OperationsCompartment(classFigure_OperationsCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_ClassesCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_ClassesCompartment1.setFill(true); classFigure_ClassesCompartment1.setFillXOR(false); classFigure_ClassesCompartment1.setOutline(true); classFigure_ClassesCompartment1.setOutlineXOR(false); classFigure_ClassesCompartment1.setLineWidth(1); classFigure_ClassesCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_ClassesCompartment1); setFigureClassFigure_ClassesCompartment(classFigure_ClassesCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_LiteralsCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_LiteralsCompartment1.setFill(true); classFigure_LiteralsCompartment1.setFillXOR(false); classFigure_LiteralsCompartment1.setOutline(true); classFigure_LiteralsCompartment1.setOutlineXOR(false); classFigure_LiteralsCompartment1.setLineWidth(1); classFigure_LiteralsCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_LiteralsCompartment1); setFigureClassFigure_LiteralsCompartment(classFigure_LiteralsCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_OthersCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_OthersCompartment1.setFill(true); classFigure_OthersCompartment1.setFillXOR(false); classFigure_OthersCompartment1.setOutline(true); classFigure_OthersCompartment1.setOutlineXOR(false); classFigure_OthersCompartment1.setLineWidth(1); classFigure_OthersCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_OthersCompartment1); setFigureClassFigure_OthersCompartment(classFigure_OthersCompartment1); }
classFigure_Body0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID);
classFigure_Body0.setLineStyle(Graphics.LINE_SOLID);
private void createContents() { org.eclipse.draw2d.RectangleFigure classFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); classFigure_NameContainer0.setFill(true); classFigure_NameContainer0.setFillXOR(false); classFigure_NameContainer0.setOutline(true); classFigure_NameContainer0.setOutlineXOR(false); classFigure_NameContainer0.setLineWidth(1); classFigure_NameContainer0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_NameContainer0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintClassFigure_NameContainer0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintClassFigure_NameContainer0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_NameContainer0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_NameContainer0.horizontalIndent = 0; constraintClassFigure_NameContainer0.horizontalSpan = 2; constraintClassFigure_NameContainer0.verticalSpan = 1; constraintClassFigure_NameContainer0.grabExcessHorizontalSpace = true; constraintClassFigure_NameContainer0.grabExcessVerticalSpace = false; this.add(classFigure_NameContainer0, constraintClassFigure_NameContainer0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutClassFigure_NameContainer0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); classFigure_NameContainer0.setLayoutManager(layoutClassFigure_NameContainer0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel classFigure_name1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); classFigure_name1.setText(""); classFigure_NameContainer0.add(classFigure_name1); setFigureClassFigure_name(classFigure_name1); org.eclipse.draw2d.RectangleFigure classFigure_Body0 = new org.eclipse.draw2d.RectangleFigure(); classFigure_Body0.setFill(true); classFigure_Body0.setFillXOR(false); classFigure_Body0.setOutline(true); classFigure_Body0.setOutlineXOR(false); classFigure_Body0.setLineWidth(1); classFigure_Body0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintClassFigure_Body0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintClassFigure_Body0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_Body0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_Body0.horizontalIndent = 0; constraintClassFigure_Body0.horizontalSpan = 2; constraintClassFigure_Body0.verticalSpan = 1; constraintClassFigure_Body0.grabExcessHorizontalSpace = true; constraintClassFigure_Body0.grabExcessVerticalSpace = true; this.add(classFigure_Body0, constraintClassFigure_Body0); org.eclipse.draw2d.ToolbarLayout layoutClassFigure_Body0 = new org.eclipse.draw2d.ToolbarLayout(); layoutClassFigure_Body0.setStretchMinorAxis(true); layoutClassFigure_Body0.setMinorAlignment(org.eclipse.draw2d.ToolbarLayout.ALIGN_CENTER ); layoutClassFigure_Body0.setSpacing(0); layoutClassFigure_Body0.setVertical(true); classFigure_Body0.setLayoutManager(layoutClassFigure_Body0); org.eclipse.draw2d.RectangleFigure classFigure_PropertiesCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_PropertiesCompartment1.setFill(true); classFigure_PropertiesCompartment1.setFillXOR(false); classFigure_PropertiesCompartment1.setOutline(true); classFigure_PropertiesCompartment1.setOutlineXOR(false); classFigure_PropertiesCompartment1.setLineWidth(1); classFigure_PropertiesCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_PropertiesCompartment1); setFigureClassFigure_PropertiesCompartment(classFigure_PropertiesCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_OperationsCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_OperationsCompartment1.setFill(true); classFigure_OperationsCompartment1.setFillXOR(false); classFigure_OperationsCompartment1.setOutline(true); classFigure_OperationsCompartment1.setOutlineXOR(false); classFigure_OperationsCompartment1.setLineWidth(1); classFigure_OperationsCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_OperationsCompartment1); setFigureClassFigure_OperationsCompartment(classFigure_OperationsCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_ClassesCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_ClassesCompartment1.setFill(true); classFigure_ClassesCompartment1.setFillXOR(false); classFigure_ClassesCompartment1.setOutline(true); classFigure_ClassesCompartment1.setOutlineXOR(false); classFigure_ClassesCompartment1.setLineWidth(1); classFigure_ClassesCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_ClassesCompartment1); setFigureClassFigure_ClassesCompartment(classFigure_ClassesCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_LiteralsCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_LiteralsCompartment1.setFill(true); classFigure_LiteralsCompartment1.setFillXOR(false); classFigure_LiteralsCompartment1.setOutline(true); classFigure_LiteralsCompartment1.setOutlineXOR(false); classFigure_LiteralsCompartment1.setLineWidth(1); classFigure_LiteralsCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_LiteralsCompartment1); setFigureClassFigure_LiteralsCompartment(classFigure_LiteralsCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_OthersCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_OthersCompartment1.setFill(true); classFigure_OthersCompartment1.setFillXOR(false); classFigure_OthersCompartment1.setOutline(true); classFigure_OthersCompartment1.setOutlineXOR(false); classFigure_OthersCompartment1.setLineWidth(1); classFigure_OthersCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_OthersCompartment1); setFigureClassFigure_OthersCompartment(classFigure_OthersCompartment1); }
org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintClassFigure_Body0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintClassFigure_Body0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_Body0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL;
GridLayoutData constraintClassFigure_Body0 = new GridLayoutData(); constraintClassFigure_Body0.verticalAlignment = GridLayoutData.FILL; constraintClassFigure_Body0.horizontalAlignment = GridLayoutData.FILL;
private void createContents() { org.eclipse.draw2d.RectangleFigure classFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); classFigure_NameContainer0.setFill(true); classFigure_NameContainer0.setFillXOR(false); classFigure_NameContainer0.setOutline(true); classFigure_NameContainer0.setOutlineXOR(false); classFigure_NameContainer0.setLineWidth(1); classFigure_NameContainer0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_NameContainer0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintClassFigure_NameContainer0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintClassFigure_NameContainer0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_NameContainer0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_NameContainer0.horizontalIndent = 0; constraintClassFigure_NameContainer0.horizontalSpan = 2; constraintClassFigure_NameContainer0.verticalSpan = 1; constraintClassFigure_NameContainer0.grabExcessHorizontalSpace = true; constraintClassFigure_NameContainer0.grabExcessVerticalSpace = false; this.add(classFigure_NameContainer0, constraintClassFigure_NameContainer0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutClassFigure_NameContainer0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); classFigure_NameContainer0.setLayoutManager(layoutClassFigure_NameContainer0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel classFigure_name1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); classFigure_name1.setText(""); classFigure_NameContainer0.add(classFigure_name1); setFigureClassFigure_name(classFigure_name1); org.eclipse.draw2d.RectangleFigure classFigure_Body0 = new org.eclipse.draw2d.RectangleFigure(); classFigure_Body0.setFill(true); classFigure_Body0.setFillXOR(false); classFigure_Body0.setOutline(true); classFigure_Body0.setOutlineXOR(false); classFigure_Body0.setLineWidth(1); classFigure_Body0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintClassFigure_Body0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintClassFigure_Body0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_Body0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_Body0.horizontalIndent = 0; constraintClassFigure_Body0.horizontalSpan = 2; constraintClassFigure_Body0.verticalSpan = 1; constraintClassFigure_Body0.grabExcessHorizontalSpace = true; constraintClassFigure_Body0.grabExcessVerticalSpace = true; this.add(classFigure_Body0, constraintClassFigure_Body0); org.eclipse.draw2d.ToolbarLayout layoutClassFigure_Body0 = new org.eclipse.draw2d.ToolbarLayout(); layoutClassFigure_Body0.setStretchMinorAxis(true); layoutClassFigure_Body0.setMinorAlignment(org.eclipse.draw2d.ToolbarLayout.ALIGN_CENTER ); layoutClassFigure_Body0.setSpacing(0); layoutClassFigure_Body0.setVertical(true); classFigure_Body0.setLayoutManager(layoutClassFigure_Body0); org.eclipse.draw2d.RectangleFigure classFigure_PropertiesCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_PropertiesCompartment1.setFill(true); classFigure_PropertiesCompartment1.setFillXOR(false); classFigure_PropertiesCompartment1.setOutline(true); classFigure_PropertiesCompartment1.setOutlineXOR(false); classFigure_PropertiesCompartment1.setLineWidth(1); classFigure_PropertiesCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_PropertiesCompartment1); setFigureClassFigure_PropertiesCompartment(classFigure_PropertiesCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_OperationsCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_OperationsCompartment1.setFill(true); classFigure_OperationsCompartment1.setFillXOR(false); classFigure_OperationsCompartment1.setOutline(true); classFigure_OperationsCompartment1.setOutlineXOR(false); classFigure_OperationsCompartment1.setLineWidth(1); classFigure_OperationsCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_OperationsCompartment1); setFigureClassFigure_OperationsCompartment(classFigure_OperationsCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_ClassesCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_ClassesCompartment1.setFill(true); classFigure_ClassesCompartment1.setFillXOR(false); classFigure_ClassesCompartment1.setOutline(true); classFigure_ClassesCompartment1.setOutlineXOR(false); classFigure_ClassesCompartment1.setLineWidth(1); classFigure_ClassesCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_ClassesCompartment1); setFigureClassFigure_ClassesCompartment(classFigure_ClassesCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_LiteralsCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_LiteralsCompartment1.setFill(true); classFigure_LiteralsCompartment1.setFillXOR(false); classFigure_LiteralsCompartment1.setOutline(true); classFigure_LiteralsCompartment1.setOutlineXOR(false); classFigure_LiteralsCompartment1.setLineWidth(1); classFigure_LiteralsCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_LiteralsCompartment1); setFigureClassFigure_LiteralsCompartment(classFigure_LiteralsCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_OthersCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_OthersCompartment1.setFill(true); classFigure_OthersCompartment1.setFillXOR(false); classFigure_OthersCompartment1.setOutline(true); classFigure_OthersCompartment1.setOutlineXOR(false); classFigure_OthersCompartment1.setLineWidth(1); classFigure_OthersCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_OthersCompartment1); setFigureClassFigure_OthersCompartment(classFigure_OthersCompartment1); }
org.eclipse.draw2d.ToolbarLayout layoutClassFigure_Body0 = new org.eclipse.draw2d.ToolbarLayout();
ToolbarLayout layoutClassFigure_Body0 = new ToolbarLayout();
private void createContents() { org.eclipse.draw2d.RectangleFigure classFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); classFigure_NameContainer0.setFill(true); classFigure_NameContainer0.setFillXOR(false); classFigure_NameContainer0.setOutline(true); classFigure_NameContainer0.setOutlineXOR(false); classFigure_NameContainer0.setLineWidth(1); classFigure_NameContainer0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_NameContainer0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintClassFigure_NameContainer0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintClassFigure_NameContainer0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_NameContainer0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_NameContainer0.horizontalIndent = 0; constraintClassFigure_NameContainer0.horizontalSpan = 2; constraintClassFigure_NameContainer0.verticalSpan = 1; constraintClassFigure_NameContainer0.grabExcessHorizontalSpace = true; constraintClassFigure_NameContainer0.grabExcessVerticalSpace = false; this.add(classFigure_NameContainer0, constraintClassFigure_NameContainer0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutClassFigure_NameContainer0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); classFigure_NameContainer0.setLayoutManager(layoutClassFigure_NameContainer0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel classFigure_name1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); classFigure_name1.setText(""); classFigure_NameContainer0.add(classFigure_name1); setFigureClassFigure_name(classFigure_name1); org.eclipse.draw2d.RectangleFigure classFigure_Body0 = new org.eclipse.draw2d.RectangleFigure(); classFigure_Body0.setFill(true); classFigure_Body0.setFillXOR(false); classFigure_Body0.setOutline(true); classFigure_Body0.setOutlineXOR(false); classFigure_Body0.setLineWidth(1); classFigure_Body0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintClassFigure_Body0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintClassFigure_Body0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_Body0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_Body0.horizontalIndent = 0; constraintClassFigure_Body0.horizontalSpan = 2; constraintClassFigure_Body0.verticalSpan = 1; constraintClassFigure_Body0.grabExcessHorizontalSpace = true; constraintClassFigure_Body0.grabExcessVerticalSpace = true; this.add(classFigure_Body0, constraintClassFigure_Body0); org.eclipse.draw2d.ToolbarLayout layoutClassFigure_Body0 = new org.eclipse.draw2d.ToolbarLayout(); layoutClassFigure_Body0.setStretchMinorAxis(true); layoutClassFigure_Body0.setMinorAlignment(org.eclipse.draw2d.ToolbarLayout.ALIGN_CENTER ); layoutClassFigure_Body0.setSpacing(0); layoutClassFigure_Body0.setVertical(true); classFigure_Body0.setLayoutManager(layoutClassFigure_Body0); org.eclipse.draw2d.RectangleFigure classFigure_PropertiesCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_PropertiesCompartment1.setFill(true); classFigure_PropertiesCompartment1.setFillXOR(false); classFigure_PropertiesCompartment1.setOutline(true); classFigure_PropertiesCompartment1.setOutlineXOR(false); classFigure_PropertiesCompartment1.setLineWidth(1); classFigure_PropertiesCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_PropertiesCompartment1); setFigureClassFigure_PropertiesCompartment(classFigure_PropertiesCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_OperationsCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_OperationsCompartment1.setFill(true); classFigure_OperationsCompartment1.setFillXOR(false); classFigure_OperationsCompartment1.setOutline(true); classFigure_OperationsCompartment1.setOutlineXOR(false); classFigure_OperationsCompartment1.setLineWidth(1); classFigure_OperationsCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_OperationsCompartment1); setFigureClassFigure_OperationsCompartment(classFigure_OperationsCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_ClassesCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_ClassesCompartment1.setFill(true); classFigure_ClassesCompartment1.setFillXOR(false); classFigure_ClassesCompartment1.setOutline(true); classFigure_ClassesCompartment1.setOutlineXOR(false); classFigure_ClassesCompartment1.setLineWidth(1); classFigure_ClassesCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_ClassesCompartment1); setFigureClassFigure_ClassesCompartment(classFigure_ClassesCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_LiteralsCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_LiteralsCompartment1.setFill(true); classFigure_LiteralsCompartment1.setFillXOR(false); classFigure_LiteralsCompartment1.setOutline(true); classFigure_LiteralsCompartment1.setOutlineXOR(false); classFigure_LiteralsCompartment1.setLineWidth(1); classFigure_LiteralsCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_LiteralsCompartment1); setFigureClassFigure_LiteralsCompartment(classFigure_LiteralsCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_OthersCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_OthersCompartment1.setFill(true); classFigure_OthersCompartment1.setFillXOR(false); classFigure_OthersCompartment1.setOutline(true); classFigure_OthersCompartment1.setOutlineXOR(false); classFigure_OthersCompartment1.setLineWidth(1); classFigure_OthersCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_OthersCompartment1); setFigureClassFigure_OthersCompartment(classFigure_OthersCompartment1); }
layoutClassFigure_Body0.setMinorAlignment(org.eclipse.draw2d.ToolbarLayout.ALIGN_CENTER
layoutClassFigure_Body0.setMinorAlignment(ToolbarLayout.ALIGN_CENTER
private void createContents() { org.eclipse.draw2d.RectangleFigure classFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); classFigure_NameContainer0.setFill(true); classFigure_NameContainer0.setFillXOR(false); classFigure_NameContainer0.setOutline(true); classFigure_NameContainer0.setOutlineXOR(false); classFigure_NameContainer0.setLineWidth(1); classFigure_NameContainer0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_NameContainer0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintClassFigure_NameContainer0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintClassFigure_NameContainer0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_NameContainer0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_NameContainer0.horizontalIndent = 0; constraintClassFigure_NameContainer0.horizontalSpan = 2; constraintClassFigure_NameContainer0.verticalSpan = 1; constraintClassFigure_NameContainer0.grabExcessHorizontalSpace = true; constraintClassFigure_NameContainer0.grabExcessVerticalSpace = false; this.add(classFigure_NameContainer0, constraintClassFigure_NameContainer0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutClassFigure_NameContainer0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); classFigure_NameContainer0.setLayoutManager(layoutClassFigure_NameContainer0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel classFigure_name1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); classFigure_name1.setText(""); classFigure_NameContainer0.add(classFigure_name1); setFigureClassFigure_name(classFigure_name1); org.eclipse.draw2d.RectangleFigure classFigure_Body0 = new org.eclipse.draw2d.RectangleFigure(); classFigure_Body0.setFill(true); classFigure_Body0.setFillXOR(false); classFigure_Body0.setOutline(true); classFigure_Body0.setOutlineXOR(false); classFigure_Body0.setLineWidth(1); classFigure_Body0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintClassFigure_Body0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintClassFigure_Body0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_Body0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_Body0.horizontalIndent = 0; constraintClassFigure_Body0.horizontalSpan = 2; constraintClassFigure_Body0.verticalSpan = 1; constraintClassFigure_Body0.grabExcessHorizontalSpace = true; constraintClassFigure_Body0.grabExcessVerticalSpace = true; this.add(classFigure_Body0, constraintClassFigure_Body0); org.eclipse.draw2d.ToolbarLayout layoutClassFigure_Body0 = new org.eclipse.draw2d.ToolbarLayout(); layoutClassFigure_Body0.setStretchMinorAxis(true); layoutClassFigure_Body0.setMinorAlignment(org.eclipse.draw2d.ToolbarLayout.ALIGN_CENTER ); layoutClassFigure_Body0.setSpacing(0); layoutClassFigure_Body0.setVertical(true); classFigure_Body0.setLayoutManager(layoutClassFigure_Body0); org.eclipse.draw2d.RectangleFigure classFigure_PropertiesCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_PropertiesCompartment1.setFill(true); classFigure_PropertiesCompartment1.setFillXOR(false); classFigure_PropertiesCompartment1.setOutline(true); classFigure_PropertiesCompartment1.setOutlineXOR(false); classFigure_PropertiesCompartment1.setLineWidth(1); classFigure_PropertiesCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_PropertiesCompartment1); setFigureClassFigure_PropertiesCompartment(classFigure_PropertiesCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_OperationsCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_OperationsCompartment1.setFill(true); classFigure_OperationsCompartment1.setFillXOR(false); classFigure_OperationsCompartment1.setOutline(true); classFigure_OperationsCompartment1.setOutlineXOR(false); classFigure_OperationsCompartment1.setLineWidth(1); classFigure_OperationsCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_OperationsCompartment1); setFigureClassFigure_OperationsCompartment(classFigure_OperationsCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_ClassesCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_ClassesCompartment1.setFill(true); classFigure_ClassesCompartment1.setFillXOR(false); classFigure_ClassesCompartment1.setOutline(true); classFigure_ClassesCompartment1.setOutlineXOR(false); classFigure_ClassesCompartment1.setLineWidth(1); classFigure_ClassesCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_ClassesCompartment1); setFigureClassFigure_ClassesCompartment(classFigure_ClassesCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_LiteralsCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_LiteralsCompartment1.setFill(true); classFigure_LiteralsCompartment1.setFillXOR(false); classFigure_LiteralsCompartment1.setOutline(true); classFigure_LiteralsCompartment1.setOutlineXOR(false); classFigure_LiteralsCompartment1.setLineWidth(1); classFigure_LiteralsCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_LiteralsCompartment1); setFigureClassFigure_LiteralsCompartment(classFigure_LiteralsCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_OthersCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_OthersCompartment1.setFill(true); classFigure_OthersCompartment1.setFillXOR(false); classFigure_OthersCompartment1.setOutline(true); classFigure_OthersCompartment1.setOutlineXOR(false); classFigure_OthersCompartment1.setLineWidth(1); classFigure_OthersCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_OthersCompartment1); setFigureClassFigure_OthersCompartment(classFigure_OthersCompartment1); }
org.eclipse.draw2d.RectangleFigure classFigure_PropertiesCompartment1 = new org.eclipse.draw2d.RectangleFigure();
RectangleFigure classFigure_PropertiesCompartment1 = new RectangleFigure();
private void createContents() { org.eclipse.draw2d.RectangleFigure classFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); classFigure_NameContainer0.setFill(true); classFigure_NameContainer0.setFillXOR(false); classFigure_NameContainer0.setOutline(true); classFigure_NameContainer0.setOutlineXOR(false); classFigure_NameContainer0.setLineWidth(1); classFigure_NameContainer0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_NameContainer0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintClassFigure_NameContainer0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintClassFigure_NameContainer0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_NameContainer0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_NameContainer0.horizontalIndent = 0; constraintClassFigure_NameContainer0.horizontalSpan = 2; constraintClassFigure_NameContainer0.verticalSpan = 1; constraintClassFigure_NameContainer0.grabExcessHorizontalSpace = true; constraintClassFigure_NameContainer0.grabExcessVerticalSpace = false; this.add(classFigure_NameContainer0, constraintClassFigure_NameContainer0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutClassFigure_NameContainer0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); classFigure_NameContainer0.setLayoutManager(layoutClassFigure_NameContainer0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel classFigure_name1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); classFigure_name1.setText(""); classFigure_NameContainer0.add(classFigure_name1); setFigureClassFigure_name(classFigure_name1); org.eclipse.draw2d.RectangleFigure classFigure_Body0 = new org.eclipse.draw2d.RectangleFigure(); classFigure_Body0.setFill(true); classFigure_Body0.setFillXOR(false); classFigure_Body0.setOutline(true); classFigure_Body0.setOutlineXOR(false); classFigure_Body0.setLineWidth(1); classFigure_Body0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintClassFigure_Body0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintClassFigure_Body0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_Body0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_Body0.horizontalIndent = 0; constraintClassFigure_Body0.horizontalSpan = 2; constraintClassFigure_Body0.verticalSpan = 1; constraintClassFigure_Body0.grabExcessHorizontalSpace = true; constraintClassFigure_Body0.grabExcessVerticalSpace = true; this.add(classFigure_Body0, constraintClassFigure_Body0); org.eclipse.draw2d.ToolbarLayout layoutClassFigure_Body0 = new org.eclipse.draw2d.ToolbarLayout(); layoutClassFigure_Body0.setStretchMinorAxis(true); layoutClassFigure_Body0.setMinorAlignment(org.eclipse.draw2d.ToolbarLayout.ALIGN_CENTER ); layoutClassFigure_Body0.setSpacing(0); layoutClassFigure_Body0.setVertical(true); classFigure_Body0.setLayoutManager(layoutClassFigure_Body0); org.eclipse.draw2d.RectangleFigure classFigure_PropertiesCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_PropertiesCompartment1.setFill(true); classFigure_PropertiesCompartment1.setFillXOR(false); classFigure_PropertiesCompartment1.setOutline(true); classFigure_PropertiesCompartment1.setOutlineXOR(false); classFigure_PropertiesCompartment1.setLineWidth(1); classFigure_PropertiesCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_PropertiesCompartment1); setFigureClassFigure_PropertiesCompartment(classFigure_PropertiesCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_OperationsCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_OperationsCompartment1.setFill(true); classFigure_OperationsCompartment1.setFillXOR(false); classFigure_OperationsCompartment1.setOutline(true); classFigure_OperationsCompartment1.setOutlineXOR(false); classFigure_OperationsCompartment1.setLineWidth(1); classFigure_OperationsCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_OperationsCompartment1); setFigureClassFigure_OperationsCompartment(classFigure_OperationsCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_ClassesCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_ClassesCompartment1.setFill(true); classFigure_ClassesCompartment1.setFillXOR(false); classFigure_ClassesCompartment1.setOutline(true); classFigure_ClassesCompartment1.setOutlineXOR(false); classFigure_ClassesCompartment1.setLineWidth(1); classFigure_ClassesCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_ClassesCompartment1); setFigureClassFigure_ClassesCompartment(classFigure_ClassesCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_LiteralsCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_LiteralsCompartment1.setFill(true); classFigure_LiteralsCompartment1.setFillXOR(false); classFigure_LiteralsCompartment1.setOutline(true); classFigure_LiteralsCompartment1.setOutlineXOR(false); classFigure_LiteralsCompartment1.setLineWidth(1); classFigure_LiteralsCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_LiteralsCompartment1); setFigureClassFigure_LiteralsCompartment(classFigure_LiteralsCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_OthersCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_OthersCompartment1.setFill(true); classFigure_OthersCompartment1.setFillXOR(false); classFigure_OthersCompartment1.setOutline(true); classFigure_OthersCompartment1.setOutlineXOR(false); classFigure_OthersCompartment1.setLineWidth(1); classFigure_OthersCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_OthersCompartment1); setFigureClassFigure_OthersCompartment(classFigure_OthersCompartment1); }
classFigure_PropertiesCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID);
classFigure_PropertiesCompartment1.setLineStyle(Graphics.LINE_SOLID);
private void createContents() { org.eclipse.draw2d.RectangleFigure classFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); classFigure_NameContainer0.setFill(true); classFigure_NameContainer0.setFillXOR(false); classFigure_NameContainer0.setOutline(true); classFigure_NameContainer0.setOutlineXOR(false); classFigure_NameContainer0.setLineWidth(1); classFigure_NameContainer0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_NameContainer0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintClassFigure_NameContainer0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintClassFigure_NameContainer0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_NameContainer0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_NameContainer0.horizontalIndent = 0; constraintClassFigure_NameContainer0.horizontalSpan = 2; constraintClassFigure_NameContainer0.verticalSpan = 1; constraintClassFigure_NameContainer0.grabExcessHorizontalSpace = true; constraintClassFigure_NameContainer0.grabExcessVerticalSpace = false; this.add(classFigure_NameContainer0, constraintClassFigure_NameContainer0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutClassFigure_NameContainer0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); classFigure_NameContainer0.setLayoutManager(layoutClassFigure_NameContainer0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel classFigure_name1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); classFigure_name1.setText(""); classFigure_NameContainer0.add(classFigure_name1); setFigureClassFigure_name(classFigure_name1); org.eclipse.draw2d.RectangleFigure classFigure_Body0 = new org.eclipse.draw2d.RectangleFigure(); classFigure_Body0.setFill(true); classFigure_Body0.setFillXOR(false); classFigure_Body0.setOutline(true); classFigure_Body0.setOutlineXOR(false); classFigure_Body0.setLineWidth(1); classFigure_Body0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintClassFigure_Body0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintClassFigure_Body0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_Body0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_Body0.horizontalIndent = 0; constraintClassFigure_Body0.horizontalSpan = 2; constraintClassFigure_Body0.verticalSpan = 1; constraintClassFigure_Body0.grabExcessHorizontalSpace = true; constraintClassFigure_Body0.grabExcessVerticalSpace = true; this.add(classFigure_Body0, constraintClassFigure_Body0); org.eclipse.draw2d.ToolbarLayout layoutClassFigure_Body0 = new org.eclipse.draw2d.ToolbarLayout(); layoutClassFigure_Body0.setStretchMinorAxis(true); layoutClassFigure_Body0.setMinorAlignment(org.eclipse.draw2d.ToolbarLayout.ALIGN_CENTER ); layoutClassFigure_Body0.setSpacing(0); layoutClassFigure_Body0.setVertical(true); classFigure_Body0.setLayoutManager(layoutClassFigure_Body0); org.eclipse.draw2d.RectangleFigure classFigure_PropertiesCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_PropertiesCompartment1.setFill(true); classFigure_PropertiesCompartment1.setFillXOR(false); classFigure_PropertiesCompartment1.setOutline(true); classFigure_PropertiesCompartment1.setOutlineXOR(false); classFigure_PropertiesCompartment1.setLineWidth(1); classFigure_PropertiesCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_PropertiesCompartment1); setFigureClassFigure_PropertiesCompartment(classFigure_PropertiesCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_OperationsCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_OperationsCompartment1.setFill(true); classFigure_OperationsCompartment1.setFillXOR(false); classFigure_OperationsCompartment1.setOutline(true); classFigure_OperationsCompartment1.setOutlineXOR(false); classFigure_OperationsCompartment1.setLineWidth(1); classFigure_OperationsCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_OperationsCompartment1); setFigureClassFigure_OperationsCompartment(classFigure_OperationsCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_ClassesCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_ClassesCompartment1.setFill(true); classFigure_ClassesCompartment1.setFillXOR(false); classFigure_ClassesCompartment1.setOutline(true); classFigure_ClassesCompartment1.setOutlineXOR(false); classFigure_ClassesCompartment1.setLineWidth(1); classFigure_ClassesCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_ClassesCompartment1); setFigureClassFigure_ClassesCompartment(classFigure_ClassesCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_LiteralsCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_LiteralsCompartment1.setFill(true); classFigure_LiteralsCompartment1.setFillXOR(false); classFigure_LiteralsCompartment1.setOutline(true); classFigure_LiteralsCompartment1.setOutlineXOR(false); classFigure_LiteralsCompartment1.setLineWidth(1); classFigure_LiteralsCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_LiteralsCompartment1); setFigureClassFigure_LiteralsCompartment(classFigure_LiteralsCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_OthersCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_OthersCompartment1.setFill(true); classFigure_OthersCompartment1.setFillXOR(false); classFigure_OthersCompartment1.setOutline(true); classFigure_OthersCompartment1.setOutlineXOR(false); classFigure_OthersCompartment1.setLineWidth(1); classFigure_OthersCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_OthersCompartment1); setFigureClassFigure_OthersCompartment(classFigure_OthersCompartment1); }
org.eclipse.draw2d.RectangleFigure classFigure_OperationsCompartment1 = new org.eclipse.draw2d.RectangleFigure();
RectangleFigure classFigure_OperationsCompartment1 = new RectangleFigure();
private void createContents() { org.eclipse.draw2d.RectangleFigure classFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); classFigure_NameContainer0.setFill(true); classFigure_NameContainer0.setFillXOR(false); classFigure_NameContainer0.setOutline(true); classFigure_NameContainer0.setOutlineXOR(false); classFigure_NameContainer0.setLineWidth(1); classFigure_NameContainer0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_NameContainer0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintClassFigure_NameContainer0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintClassFigure_NameContainer0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_NameContainer0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_NameContainer0.horizontalIndent = 0; constraintClassFigure_NameContainer0.horizontalSpan = 2; constraintClassFigure_NameContainer0.verticalSpan = 1; constraintClassFigure_NameContainer0.grabExcessHorizontalSpace = true; constraintClassFigure_NameContainer0.grabExcessVerticalSpace = false; this.add(classFigure_NameContainer0, constraintClassFigure_NameContainer0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutClassFigure_NameContainer0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); classFigure_NameContainer0.setLayoutManager(layoutClassFigure_NameContainer0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel classFigure_name1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); classFigure_name1.setText(""); classFigure_NameContainer0.add(classFigure_name1); setFigureClassFigure_name(classFigure_name1); org.eclipse.draw2d.RectangleFigure classFigure_Body0 = new org.eclipse.draw2d.RectangleFigure(); classFigure_Body0.setFill(true); classFigure_Body0.setFillXOR(false); classFigure_Body0.setOutline(true); classFigure_Body0.setOutlineXOR(false); classFigure_Body0.setLineWidth(1); classFigure_Body0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintClassFigure_Body0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintClassFigure_Body0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_Body0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_Body0.horizontalIndent = 0; constraintClassFigure_Body0.horizontalSpan = 2; constraintClassFigure_Body0.verticalSpan = 1; constraintClassFigure_Body0.grabExcessHorizontalSpace = true; constraintClassFigure_Body0.grabExcessVerticalSpace = true; this.add(classFigure_Body0, constraintClassFigure_Body0); org.eclipse.draw2d.ToolbarLayout layoutClassFigure_Body0 = new org.eclipse.draw2d.ToolbarLayout(); layoutClassFigure_Body0.setStretchMinorAxis(true); layoutClassFigure_Body0.setMinorAlignment(org.eclipse.draw2d.ToolbarLayout.ALIGN_CENTER ); layoutClassFigure_Body0.setSpacing(0); layoutClassFigure_Body0.setVertical(true); classFigure_Body0.setLayoutManager(layoutClassFigure_Body0); org.eclipse.draw2d.RectangleFigure classFigure_PropertiesCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_PropertiesCompartment1.setFill(true); classFigure_PropertiesCompartment1.setFillXOR(false); classFigure_PropertiesCompartment1.setOutline(true); classFigure_PropertiesCompartment1.setOutlineXOR(false); classFigure_PropertiesCompartment1.setLineWidth(1); classFigure_PropertiesCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_PropertiesCompartment1); setFigureClassFigure_PropertiesCompartment(classFigure_PropertiesCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_OperationsCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_OperationsCompartment1.setFill(true); classFigure_OperationsCompartment1.setFillXOR(false); classFigure_OperationsCompartment1.setOutline(true); classFigure_OperationsCompartment1.setOutlineXOR(false); classFigure_OperationsCompartment1.setLineWidth(1); classFigure_OperationsCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_OperationsCompartment1); setFigureClassFigure_OperationsCompartment(classFigure_OperationsCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_ClassesCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_ClassesCompartment1.setFill(true); classFigure_ClassesCompartment1.setFillXOR(false); classFigure_ClassesCompartment1.setOutline(true); classFigure_ClassesCompartment1.setOutlineXOR(false); classFigure_ClassesCompartment1.setLineWidth(1); classFigure_ClassesCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_ClassesCompartment1); setFigureClassFigure_ClassesCompartment(classFigure_ClassesCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_LiteralsCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_LiteralsCompartment1.setFill(true); classFigure_LiteralsCompartment1.setFillXOR(false); classFigure_LiteralsCompartment1.setOutline(true); classFigure_LiteralsCompartment1.setOutlineXOR(false); classFigure_LiteralsCompartment1.setLineWidth(1); classFigure_LiteralsCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_LiteralsCompartment1); setFigureClassFigure_LiteralsCompartment(classFigure_LiteralsCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_OthersCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_OthersCompartment1.setFill(true); classFigure_OthersCompartment1.setFillXOR(false); classFigure_OthersCompartment1.setOutline(true); classFigure_OthersCompartment1.setOutlineXOR(false); classFigure_OthersCompartment1.setLineWidth(1); classFigure_OthersCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_OthersCompartment1); setFigureClassFigure_OthersCompartment(classFigure_OthersCompartment1); }
classFigure_OperationsCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID);
classFigure_OperationsCompartment1.setLineStyle(Graphics.LINE_SOLID);
private void createContents() { org.eclipse.draw2d.RectangleFigure classFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); classFigure_NameContainer0.setFill(true); classFigure_NameContainer0.setFillXOR(false); classFigure_NameContainer0.setOutline(true); classFigure_NameContainer0.setOutlineXOR(false); classFigure_NameContainer0.setLineWidth(1); classFigure_NameContainer0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_NameContainer0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintClassFigure_NameContainer0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintClassFigure_NameContainer0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_NameContainer0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_NameContainer0.horizontalIndent = 0; constraintClassFigure_NameContainer0.horizontalSpan = 2; constraintClassFigure_NameContainer0.verticalSpan = 1; constraintClassFigure_NameContainer0.grabExcessHorizontalSpace = true; constraintClassFigure_NameContainer0.grabExcessVerticalSpace = false; this.add(classFigure_NameContainer0, constraintClassFigure_NameContainer0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutClassFigure_NameContainer0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); classFigure_NameContainer0.setLayoutManager(layoutClassFigure_NameContainer0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel classFigure_name1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); classFigure_name1.setText(""); classFigure_NameContainer0.add(classFigure_name1); setFigureClassFigure_name(classFigure_name1); org.eclipse.draw2d.RectangleFigure classFigure_Body0 = new org.eclipse.draw2d.RectangleFigure(); classFigure_Body0.setFill(true); classFigure_Body0.setFillXOR(false); classFigure_Body0.setOutline(true); classFigure_Body0.setOutlineXOR(false); classFigure_Body0.setLineWidth(1); classFigure_Body0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintClassFigure_Body0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintClassFigure_Body0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_Body0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_Body0.horizontalIndent = 0; constraintClassFigure_Body0.horizontalSpan = 2; constraintClassFigure_Body0.verticalSpan = 1; constraintClassFigure_Body0.grabExcessHorizontalSpace = true; constraintClassFigure_Body0.grabExcessVerticalSpace = true; this.add(classFigure_Body0, constraintClassFigure_Body0); org.eclipse.draw2d.ToolbarLayout layoutClassFigure_Body0 = new org.eclipse.draw2d.ToolbarLayout(); layoutClassFigure_Body0.setStretchMinorAxis(true); layoutClassFigure_Body0.setMinorAlignment(org.eclipse.draw2d.ToolbarLayout.ALIGN_CENTER ); layoutClassFigure_Body0.setSpacing(0); layoutClassFigure_Body0.setVertical(true); classFigure_Body0.setLayoutManager(layoutClassFigure_Body0); org.eclipse.draw2d.RectangleFigure classFigure_PropertiesCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_PropertiesCompartment1.setFill(true); classFigure_PropertiesCompartment1.setFillXOR(false); classFigure_PropertiesCompartment1.setOutline(true); classFigure_PropertiesCompartment1.setOutlineXOR(false); classFigure_PropertiesCompartment1.setLineWidth(1); classFigure_PropertiesCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_PropertiesCompartment1); setFigureClassFigure_PropertiesCompartment(classFigure_PropertiesCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_OperationsCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_OperationsCompartment1.setFill(true); classFigure_OperationsCompartment1.setFillXOR(false); classFigure_OperationsCompartment1.setOutline(true); classFigure_OperationsCompartment1.setOutlineXOR(false); classFigure_OperationsCompartment1.setLineWidth(1); classFigure_OperationsCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_OperationsCompartment1); setFigureClassFigure_OperationsCompartment(classFigure_OperationsCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_ClassesCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_ClassesCompartment1.setFill(true); classFigure_ClassesCompartment1.setFillXOR(false); classFigure_ClassesCompartment1.setOutline(true); classFigure_ClassesCompartment1.setOutlineXOR(false); classFigure_ClassesCompartment1.setLineWidth(1); classFigure_ClassesCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_ClassesCompartment1); setFigureClassFigure_ClassesCompartment(classFigure_ClassesCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_LiteralsCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_LiteralsCompartment1.setFill(true); classFigure_LiteralsCompartment1.setFillXOR(false); classFigure_LiteralsCompartment1.setOutline(true); classFigure_LiteralsCompartment1.setOutlineXOR(false); classFigure_LiteralsCompartment1.setLineWidth(1); classFigure_LiteralsCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_LiteralsCompartment1); setFigureClassFigure_LiteralsCompartment(classFigure_LiteralsCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_OthersCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_OthersCompartment1.setFill(true); classFigure_OthersCompartment1.setFillXOR(false); classFigure_OthersCompartment1.setOutline(true); classFigure_OthersCompartment1.setOutlineXOR(false); classFigure_OthersCompartment1.setLineWidth(1); classFigure_OthersCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_OthersCompartment1); setFigureClassFigure_OthersCompartment(classFigure_OthersCompartment1); }
org.eclipse.draw2d.RectangleFigure classFigure_ClassesCompartment1 = new org.eclipse.draw2d.RectangleFigure();
RectangleFigure classFigure_ClassesCompartment1 = new RectangleFigure();
private void createContents() { org.eclipse.draw2d.RectangleFigure classFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); classFigure_NameContainer0.setFill(true); classFigure_NameContainer0.setFillXOR(false); classFigure_NameContainer0.setOutline(true); classFigure_NameContainer0.setOutlineXOR(false); classFigure_NameContainer0.setLineWidth(1); classFigure_NameContainer0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_NameContainer0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintClassFigure_NameContainer0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintClassFigure_NameContainer0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_NameContainer0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_NameContainer0.horizontalIndent = 0; constraintClassFigure_NameContainer0.horizontalSpan = 2; constraintClassFigure_NameContainer0.verticalSpan = 1; constraintClassFigure_NameContainer0.grabExcessHorizontalSpace = true; constraintClassFigure_NameContainer0.grabExcessVerticalSpace = false; this.add(classFigure_NameContainer0, constraintClassFigure_NameContainer0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutClassFigure_NameContainer0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); classFigure_NameContainer0.setLayoutManager(layoutClassFigure_NameContainer0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel classFigure_name1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); classFigure_name1.setText(""); classFigure_NameContainer0.add(classFigure_name1); setFigureClassFigure_name(classFigure_name1); org.eclipse.draw2d.RectangleFigure classFigure_Body0 = new org.eclipse.draw2d.RectangleFigure(); classFigure_Body0.setFill(true); classFigure_Body0.setFillXOR(false); classFigure_Body0.setOutline(true); classFigure_Body0.setOutlineXOR(false); classFigure_Body0.setLineWidth(1); classFigure_Body0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintClassFigure_Body0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintClassFigure_Body0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_Body0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_Body0.horizontalIndent = 0; constraintClassFigure_Body0.horizontalSpan = 2; constraintClassFigure_Body0.verticalSpan = 1; constraintClassFigure_Body0.grabExcessHorizontalSpace = true; constraintClassFigure_Body0.grabExcessVerticalSpace = true; this.add(classFigure_Body0, constraintClassFigure_Body0); org.eclipse.draw2d.ToolbarLayout layoutClassFigure_Body0 = new org.eclipse.draw2d.ToolbarLayout(); layoutClassFigure_Body0.setStretchMinorAxis(true); layoutClassFigure_Body0.setMinorAlignment(org.eclipse.draw2d.ToolbarLayout.ALIGN_CENTER ); layoutClassFigure_Body0.setSpacing(0); layoutClassFigure_Body0.setVertical(true); classFigure_Body0.setLayoutManager(layoutClassFigure_Body0); org.eclipse.draw2d.RectangleFigure classFigure_PropertiesCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_PropertiesCompartment1.setFill(true); classFigure_PropertiesCompartment1.setFillXOR(false); classFigure_PropertiesCompartment1.setOutline(true); classFigure_PropertiesCompartment1.setOutlineXOR(false); classFigure_PropertiesCompartment1.setLineWidth(1); classFigure_PropertiesCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_PropertiesCompartment1); setFigureClassFigure_PropertiesCompartment(classFigure_PropertiesCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_OperationsCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_OperationsCompartment1.setFill(true); classFigure_OperationsCompartment1.setFillXOR(false); classFigure_OperationsCompartment1.setOutline(true); classFigure_OperationsCompartment1.setOutlineXOR(false); classFigure_OperationsCompartment1.setLineWidth(1); classFigure_OperationsCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_OperationsCompartment1); setFigureClassFigure_OperationsCompartment(classFigure_OperationsCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_ClassesCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_ClassesCompartment1.setFill(true); classFigure_ClassesCompartment1.setFillXOR(false); classFigure_ClassesCompartment1.setOutline(true); classFigure_ClassesCompartment1.setOutlineXOR(false); classFigure_ClassesCompartment1.setLineWidth(1); classFigure_ClassesCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_ClassesCompartment1); setFigureClassFigure_ClassesCompartment(classFigure_ClassesCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_LiteralsCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_LiteralsCompartment1.setFill(true); classFigure_LiteralsCompartment1.setFillXOR(false); classFigure_LiteralsCompartment1.setOutline(true); classFigure_LiteralsCompartment1.setOutlineXOR(false); classFigure_LiteralsCompartment1.setLineWidth(1); classFigure_LiteralsCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_LiteralsCompartment1); setFigureClassFigure_LiteralsCompartment(classFigure_LiteralsCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_OthersCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_OthersCompartment1.setFill(true); classFigure_OthersCompartment1.setFillXOR(false); classFigure_OthersCompartment1.setOutline(true); classFigure_OthersCompartment1.setOutlineXOR(false); classFigure_OthersCompartment1.setLineWidth(1); classFigure_OthersCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_OthersCompartment1); setFigureClassFigure_OthersCompartment(classFigure_OthersCompartment1); }
classFigure_ClassesCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID);
classFigure_ClassesCompartment1.setLineStyle(Graphics.LINE_SOLID);
private void createContents() { org.eclipse.draw2d.RectangleFigure classFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); classFigure_NameContainer0.setFill(true); classFigure_NameContainer0.setFillXOR(false); classFigure_NameContainer0.setOutline(true); classFigure_NameContainer0.setOutlineXOR(false); classFigure_NameContainer0.setLineWidth(1); classFigure_NameContainer0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_NameContainer0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintClassFigure_NameContainer0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintClassFigure_NameContainer0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_NameContainer0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_NameContainer0.horizontalIndent = 0; constraintClassFigure_NameContainer0.horizontalSpan = 2; constraintClassFigure_NameContainer0.verticalSpan = 1; constraintClassFigure_NameContainer0.grabExcessHorizontalSpace = true; constraintClassFigure_NameContainer0.grabExcessVerticalSpace = false; this.add(classFigure_NameContainer0, constraintClassFigure_NameContainer0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutClassFigure_NameContainer0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); classFigure_NameContainer0.setLayoutManager(layoutClassFigure_NameContainer0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel classFigure_name1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); classFigure_name1.setText(""); classFigure_NameContainer0.add(classFigure_name1); setFigureClassFigure_name(classFigure_name1); org.eclipse.draw2d.RectangleFigure classFigure_Body0 = new org.eclipse.draw2d.RectangleFigure(); classFigure_Body0.setFill(true); classFigure_Body0.setFillXOR(false); classFigure_Body0.setOutline(true); classFigure_Body0.setOutlineXOR(false); classFigure_Body0.setLineWidth(1); classFigure_Body0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintClassFigure_Body0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintClassFigure_Body0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_Body0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_Body0.horizontalIndent = 0; constraintClassFigure_Body0.horizontalSpan = 2; constraintClassFigure_Body0.verticalSpan = 1; constraintClassFigure_Body0.grabExcessHorizontalSpace = true; constraintClassFigure_Body0.grabExcessVerticalSpace = true; this.add(classFigure_Body0, constraintClassFigure_Body0); org.eclipse.draw2d.ToolbarLayout layoutClassFigure_Body0 = new org.eclipse.draw2d.ToolbarLayout(); layoutClassFigure_Body0.setStretchMinorAxis(true); layoutClassFigure_Body0.setMinorAlignment(org.eclipse.draw2d.ToolbarLayout.ALIGN_CENTER ); layoutClassFigure_Body0.setSpacing(0); layoutClassFigure_Body0.setVertical(true); classFigure_Body0.setLayoutManager(layoutClassFigure_Body0); org.eclipse.draw2d.RectangleFigure classFigure_PropertiesCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_PropertiesCompartment1.setFill(true); classFigure_PropertiesCompartment1.setFillXOR(false); classFigure_PropertiesCompartment1.setOutline(true); classFigure_PropertiesCompartment1.setOutlineXOR(false); classFigure_PropertiesCompartment1.setLineWidth(1); classFigure_PropertiesCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_PropertiesCompartment1); setFigureClassFigure_PropertiesCompartment(classFigure_PropertiesCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_OperationsCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_OperationsCompartment1.setFill(true); classFigure_OperationsCompartment1.setFillXOR(false); classFigure_OperationsCompartment1.setOutline(true); classFigure_OperationsCompartment1.setOutlineXOR(false); classFigure_OperationsCompartment1.setLineWidth(1); classFigure_OperationsCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_OperationsCompartment1); setFigureClassFigure_OperationsCompartment(classFigure_OperationsCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_ClassesCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_ClassesCompartment1.setFill(true); classFigure_ClassesCompartment1.setFillXOR(false); classFigure_ClassesCompartment1.setOutline(true); classFigure_ClassesCompartment1.setOutlineXOR(false); classFigure_ClassesCompartment1.setLineWidth(1); classFigure_ClassesCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_ClassesCompartment1); setFigureClassFigure_ClassesCompartment(classFigure_ClassesCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_LiteralsCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_LiteralsCompartment1.setFill(true); classFigure_LiteralsCompartment1.setFillXOR(false); classFigure_LiteralsCompartment1.setOutline(true); classFigure_LiteralsCompartment1.setOutlineXOR(false); classFigure_LiteralsCompartment1.setLineWidth(1); classFigure_LiteralsCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_LiteralsCompartment1); setFigureClassFigure_LiteralsCompartment(classFigure_LiteralsCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_OthersCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_OthersCompartment1.setFill(true); classFigure_OthersCompartment1.setFillXOR(false); classFigure_OthersCompartment1.setOutline(true); classFigure_OthersCompartment1.setOutlineXOR(false); classFigure_OthersCompartment1.setLineWidth(1); classFigure_OthersCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_OthersCompartment1); setFigureClassFigure_OthersCompartment(classFigure_OthersCompartment1); }
org.eclipse.draw2d.RectangleFigure classFigure_LiteralsCompartment1 = new org.eclipse.draw2d.RectangleFigure();
RectangleFigure classFigure_LiteralsCompartment1 = new RectangleFigure();
private void createContents() { org.eclipse.draw2d.RectangleFigure classFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); classFigure_NameContainer0.setFill(true); classFigure_NameContainer0.setFillXOR(false); classFigure_NameContainer0.setOutline(true); classFigure_NameContainer0.setOutlineXOR(false); classFigure_NameContainer0.setLineWidth(1); classFigure_NameContainer0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_NameContainer0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintClassFigure_NameContainer0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintClassFigure_NameContainer0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_NameContainer0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_NameContainer0.horizontalIndent = 0; constraintClassFigure_NameContainer0.horizontalSpan = 2; constraintClassFigure_NameContainer0.verticalSpan = 1; constraintClassFigure_NameContainer0.grabExcessHorizontalSpace = true; constraintClassFigure_NameContainer0.grabExcessVerticalSpace = false; this.add(classFigure_NameContainer0, constraintClassFigure_NameContainer0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutClassFigure_NameContainer0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); classFigure_NameContainer0.setLayoutManager(layoutClassFigure_NameContainer0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel classFigure_name1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); classFigure_name1.setText(""); classFigure_NameContainer0.add(classFigure_name1); setFigureClassFigure_name(classFigure_name1); org.eclipse.draw2d.RectangleFigure classFigure_Body0 = new org.eclipse.draw2d.RectangleFigure(); classFigure_Body0.setFill(true); classFigure_Body0.setFillXOR(false); classFigure_Body0.setOutline(true); classFigure_Body0.setOutlineXOR(false); classFigure_Body0.setLineWidth(1); classFigure_Body0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintClassFigure_Body0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintClassFigure_Body0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_Body0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_Body0.horizontalIndent = 0; constraintClassFigure_Body0.horizontalSpan = 2; constraintClassFigure_Body0.verticalSpan = 1; constraintClassFigure_Body0.grabExcessHorizontalSpace = true; constraintClassFigure_Body0.grabExcessVerticalSpace = true; this.add(classFigure_Body0, constraintClassFigure_Body0); org.eclipse.draw2d.ToolbarLayout layoutClassFigure_Body0 = new org.eclipse.draw2d.ToolbarLayout(); layoutClassFigure_Body0.setStretchMinorAxis(true); layoutClassFigure_Body0.setMinorAlignment(org.eclipse.draw2d.ToolbarLayout.ALIGN_CENTER ); layoutClassFigure_Body0.setSpacing(0); layoutClassFigure_Body0.setVertical(true); classFigure_Body0.setLayoutManager(layoutClassFigure_Body0); org.eclipse.draw2d.RectangleFigure classFigure_PropertiesCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_PropertiesCompartment1.setFill(true); classFigure_PropertiesCompartment1.setFillXOR(false); classFigure_PropertiesCompartment1.setOutline(true); classFigure_PropertiesCompartment1.setOutlineXOR(false); classFigure_PropertiesCompartment1.setLineWidth(1); classFigure_PropertiesCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_PropertiesCompartment1); setFigureClassFigure_PropertiesCompartment(classFigure_PropertiesCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_OperationsCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_OperationsCompartment1.setFill(true); classFigure_OperationsCompartment1.setFillXOR(false); classFigure_OperationsCompartment1.setOutline(true); classFigure_OperationsCompartment1.setOutlineXOR(false); classFigure_OperationsCompartment1.setLineWidth(1); classFigure_OperationsCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_OperationsCompartment1); setFigureClassFigure_OperationsCompartment(classFigure_OperationsCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_ClassesCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_ClassesCompartment1.setFill(true); classFigure_ClassesCompartment1.setFillXOR(false); classFigure_ClassesCompartment1.setOutline(true); classFigure_ClassesCompartment1.setOutlineXOR(false); classFigure_ClassesCompartment1.setLineWidth(1); classFigure_ClassesCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_ClassesCompartment1); setFigureClassFigure_ClassesCompartment(classFigure_ClassesCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_LiteralsCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_LiteralsCompartment1.setFill(true); classFigure_LiteralsCompartment1.setFillXOR(false); classFigure_LiteralsCompartment1.setOutline(true); classFigure_LiteralsCompartment1.setOutlineXOR(false); classFigure_LiteralsCompartment1.setLineWidth(1); classFigure_LiteralsCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_LiteralsCompartment1); setFigureClassFigure_LiteralsCompartment(classFigure_LiteralsCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_OthersCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_OthersCompartment1.setFill(true); classFigure_OthersCompartment1.setFillXOR(false); classFigure_OthersCompartment1.setOutline(true); classFigure_OthersCompartment1.setOutlineXOR(false); classFigure_OthersCompartment1.setLineWidth(1); classFigure_OthersCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_OthersCompartment1); setFigureClassFigure_OthersCompartment(classFigure_OthersCompartment1); }
classFigure_LiteralsCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID);
classFigure_LiteralsCompartment1.setLineStyle(Graphics.LINE_SOLID);
private void createContents() { org.eclipse.draw2d.RectangleFigure classFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); classFigure_NameContainer0.setFill(true); classFigure_NameContainer0.setFillXOR(false); classFigure_NameContainer0.setOutline(true); classFigure_NameContainer0.setOutlineXOR(false); classFigure_NameContainer0.setLineWidth(1); classFigure_NameContainer0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_NameContainer0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintClassFigure_NameContainer0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintClassFigure_NameContainer0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_NameContainer0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_NameContainer0.horizontalIndent = 0; constraintClassFigure_NameContainer0.horizontalSpan = 2; constraintClassFigure_NameContainer0.verticalSpan = 1; constraintClassFigure_NameContainer0.grabExcessHorizontalSpace = true; constraintClassFigure_NameContainer0.grabExcessVerticalSpace = false; this.add(classFigure_NameContainer0, constraintClassFigure_NameContainer0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutClassFigure_NameContainer0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); classFigure_NameContainer0.setLayoutManager(layoutClassFigure_NameContainer0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel classFigure_name1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); classFigure_name1.setText(""); classFigure_NameContainer0.add(classFigure_name1); setFigureClassFigure_name(classFigure_name1); org.eclipse.draw2d.RectangleFigure classFigure_Body0 = new org.eclipse.draw2d.RectangleFigure(); classFigure_Body0.setFill(true); classFigure_Body0.setFillXOR(false); classFigure_Body0.setOutline(true); classFigure_Body0.setOutlineXOR(false); classFigure_Body0.setLineWidth(1); classFigure_Body0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintClassFigure_Body0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintClassFigure_Body0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_Body0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_Body0.horizontalIndent = 0; constraintClassFigure_Body0.horizontalSpan = 2; constraintClassFigure_Body0.verticalSpan = 1; constraintClassFigure_Body0.grabExcessHorizontalSpace = true; constraintClassFigure_Body0.grabExcessVerticalSpace = true; this.add(classFigure_Body0, constraintClassFigure_Body0); org.eclipse.draw2d.ToolbarLayout layoutClassFigure_Body0 = new org.eclipse.draw2d.ToolbarLayout(); layoutClassFigure_Body0.setStretchMinorAxis(true); layoutClassFigure_Body0.setMinorAlignment(org.eclipse.draw2d.ToolbarLayout.ALIGN_CENTER ); layoutClassFigure_Body0.setSpacing(0); layoutClassFigure_Body0.setVertical(true); classFigure_Body0.setLayoutManager(layoutClassFigure_Body0); org.eclipse.draw2d.RectangleFigure classFigure_PropertiesCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_PropertiesCompartment1.setFill(true); classFigure_PropertiesCompartment1.setFillXOR(false); classFigure_PropertiesCompartment1.setOutline(true); classFigure_PropertiesCompartment1.setOutlineXOR(false); classFigure_PropertiesCompartment1.setLineWidth(1); classFigure_PropertiesCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_PropertiesCompartment1); setFigureClassFigure_PropertiesCompartment(classFigure_PropertiesCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_OperationsCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_OperationsCompartment1.setFill(true); classFigure_OperationsCompartment1.setFillXOR(false); classFigure_OperationsCompartment1.setOutline(true); classFigure_OperationsCompartment1.setOutlineXOR(false); classFigure_OperationsCompartment1.setLineWidth(1); classFigure_OperationsCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_OperationsCompartment1); setFigureClassFigure_OperationsCompartment(classFigure_OperationsCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_ClassesCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_ClassesCompartment1.setFill(true); classFigure_ClassesCompartment1.setFillXOR(false); classFigure_ClassesCompartment1.setOutline(true); classFigure_ClassesCompartment1.setOutlineXOR(false); classFigure_ClassesCompartment1.setLineWidth(1); classFigure_ClassesCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_ClassesCompartment1); setFigureClassFigure_ClassesCompartment(classFigure_ClassesCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_LiteralsCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_LiteralsCompartment1.setFill(true); classFigure_LiteralsCompartment1.setFillXOR(false); classFigure_LiteralsCompartment1.setOutline(true); classFigure_LiteralsCompartment1.setOutlineXOR(false); classFigure_LiteralsCompartment1.setLineWidth(1); classFigure_LiteralsCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_LiteralsCompartment1); setFigureClassFigure_LiteralsCompartment(classFigure_LiteralsCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_OthersCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_OthersCompartment1.setFill(true); classFigure_OthersCompartment1.setFillXOR(false); classFigure_OthersCompartment1.setOutline(true); classFigure_OthersCompartment1.setOutlineXOR(false); classFigure_OthersCompartment1.setLineWidth(1); classFigure_OthersCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_OthersCompartment1); setFigureClassFigure_OthersCompartment(classFigure_OthersCompartment1); }
org.eclipse.draw2d.RectangleFigure classFigure_OthersCompartment1 = new org.eclipse.draw2d.RectangleFigure();
RectangleFigure classFigure_OthersCompartment1 = new RectangleFigure();
private void createContents() { org.eclipse.draw2d.RectangleFigure classFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); classFigure_NameContainer0.setFill(true); classFigure_NameContainer0.setFillXOR(false); classFigure_NameContainer0.setOutline(true); classFigure_NameContainer0.setOutlineXOR(false); classFigure_NameContainer0.setLineWidth(1); classFigure_NameContainer0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_NameContainer0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintClassFigure_NameContainer0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintClassFigure_NameContainer0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_NameContainer0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_NameContainer0.horizontalIndent = 0; constraintClassFigure_NameContainer0.horizontalSpan = 2; constraintClassFigure_NameContainer0.verticalSpan = 1; constraintClassFigure_NameContainer0.grabExcessHorizontalSpace = true; constraintClassFigure_NameContainer0.grabExcessVerticalSpace = false; this.add(classFigure_NameContainer0, constraintClassFigure_NameContainer0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutClassFigure_NameContainer0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); classFigure_NameContainer0.setLayoutManager(layoutClassFigure_NameContainer0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel classFigure_name1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); classFigure_name1.setText(""); classFigure_NameContainer0.add(classFigure_name1); setFigureClassFigure_name(classFigure_name1); org.eclipse.draw2d.RectangleFigure classFigure_Body0 = new org.eclipse.draw2d.RectangleFigure(); classFigure_Body0.setFill(true); classFigure_Body0.setFillXOR(false); classFigure_Body0.setOutline(true); classFigure_Body0.setOutlineXOR(false); classFigure_Body0.setLineWidth(1); classFigure_Body0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintClassFigure_Body0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintClassFigure_Body0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_Body0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_Body0.horizontalIndent = 0; constraintClassFigure_Body0.horizontalSpan = 2; constraintClassFigure_Body0.verticalSpan = 1; constraintClassFigure_Body0.grabExcessHorizontalSpace = true; constraintClassFigure_Body0.grabExcessVerticalSpace = true; this.add(classFigure_Body0, constraintClassFigure_Body0); org.eclipse.draw2d.ToolbarLayout layoutClassFigure_Body0 = new org.eclipse.draw2d.ToolbarLayout(); layoutClassFigure_Body0.setStretchMinorAxis(true); layoutClassFigure_Body0.setMinorAlignment(org.eclipse.draw2d.ToolbarLayout.ALIGN_CENTER ); layoutClassFigure_Body0.setSpacing(0); layoutClassFigure_Body0.setVertical(true); classFigure_Body0.setLayoutManager(layoutClassFigure_Body0); org.eclipse.draw2d.RectangleFigure classFigure_PropertiesCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_PropertiesCompartment1.setFill(true); classFigure_PropertiesCompartment1.setFillXOR(false); classFigure_PropertiesCompartment1.setOutline(true); classFigure_PropertiesCompartment1.setOutlineXOR(false); classFigure_PropertiesCompartment1.setLineWidth(1); classFigure_PropertiesCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_PropertiesCompartment1); setFigureClassFigure_PropertiesCompartment(classFigure_PropertiesCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_OperationsCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_OperationsCompartment1.setFill(true); classFigure_OperationsCompartment1.setFillXOR(false); classFigure_OperationsCompartment1.setOutline(true); classFigure_OperationsCompartment1.setOutlineXOR(false); classFigure_OperationsCompartment1.setLineWidth(1); classFigure_OperationsCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_OperationsCompartment1); setFigureClassFigure_OperationsCompartment(classFigure_OperationsCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_ClassesCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_ClassesCompartment1.setFill(true); classFigure_ClassesCompartment1.setFillXOR(false); classFigure_ClassesCompartment1.setOutline(true); classFigure_ClassesCompartment1.setOutlineXOR(false); classFigure_ClassesCompartment1.setLineWidth(1); classFigure_ClassesCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_ClassesCompartment1); setFigureClassFigure_ClassesCompartment(classFigure_ClassesCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_LiteralsCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_LiteralsCompartment1.setFill(true); classFigure_LiteralsCompartment1.setFillXOR(false); classFigure_LiteralsCompartment1.setOutline(true); classFigure_LiteralsCompartment1.setOutlineXOR(false); classFigure_LiteralsCompartment1.setLineWidth(1); classFigure_LiteralsCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_LiteralsCompartment1); setFigureClassFigure_LiteralsCompartment(classFigure_LiteralsCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_OthersCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_OthersCompartment1.setFill(true); classFigure_OthersCompartment1.setFillXOR(false); classFigure_OthersCompartment1.setOutline(true); classFigure_OthersCompartment1.setOutlineXOR(false); classFigure_OthersCompartment1.setLineWidth(1); classFigure_OthersCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_OthersCompartment1); setFigureClassFigure_OthersCompartment(classFigure_OthersCompartment1); }
classFigure_OthersCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID);
classFigure_OthersCompartment1.setLineStyle(Graphics.LINE_SOLID);
private void createContents() { org.eclipse.draw2d.RectangleFigure classFigure_NameContainer0 = new org.eclipse.draw2d.RectangleFigure(); classFigure_NameContainer0.setFill(true); classFigure_NameContainer0.setFillXOR(false); classFigure_NameContainer0.setOutline(true); classFigure_NameContainer0.setOutlineXOR(false); classFigure_NameContainer0.setLineWidth(1); classFigure_NameContainer0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_NameContainer0.setMinimumSize(new org.eclipse.draw2d.geometry.Dimension(getMapMode().DPtoLP(0), getMapMode().DPtoLP(25))); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintClassFigure_NameContainer0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintClassFigure_NameContainer0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_NameContainer0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_NameContainer0.horizontalIndent = 0; constraintClassFigure_NameContainer0.horizontalSpan = 2; constraintClassFigure_NameContainer0.verticalSpan = 1; constraintClassFigure_NameContainer0.grabExcessHorizontalSpace = true; constraintClassFigure_NameContainer0.grabExcessVerticalSpace = false; this.add(classFigure_NameContainer0, constraintClassFigure_NameContainer0); org.eclipse.uml2.diagram.common.draw2d.CenterLayout layoutClassFigure_NameContainer0 = new org.eclipse.uml2.diagram.common.draw2d.CenterLayout(); classFigure_NameContainer0.setLayoutManager(layoutClassFigure_NameContainer0); org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel classFigure_name1 = new org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel(); classFigure_name1.setText(""); classFigure_NameContainer0.add(classFigure_name1); setFigureClassFigure_name(classFigure_name1); org.eclipse.draw2d.RectangleFigure classFigure_Body0 = new org.eclipse.draw2d.RectangleFigure(); classFigure_Body0.setFill(true); classFigure_Body0.setFillXOR(false); classFigure_Body0.setOutline(true); classFigure_Body0.setOutlineXOR(false); classFigure_Body0.setLineWidth(1); classFigure_Body0.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData constraintClassFigure_Body0 = new org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData(); constraintClassFigure_Body0.verticalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_Body0.horizontalAlignment = org.eclipse.gmf.internal.codegen.draw2d.GridLayoutData.FILL; constraintClassFigure_Body0.horizontalIndent = 0; constraintClassFigure_Body0.horizontalSpan = 2; constraintClassFigure_Body0.verticalSpan = 1; constraintClassFigure_Body0.grabExcessHorizontalSpace = true; constraintClassFigure_Body0.grabExcessVerticalSpace = true; this.add(classFigure_Body0, constraintClassFigure_Body0); org.eclipse.draw2d.ToolbarLayout layoutClassFigure_Body0 = new org.eclipse.draw2d.ToolbarLayout(); layoutClassFigure_Body0.setStretchMinorAxis(true); layoutClassFigure_Body0.setMinorAlignment(org.eclipse.draw2d.ToolbarLayout.ALIGN_CENTER ); layoutClassFigure_Body0.setSpacing(0); layoutClassFigure_Body0.setVertical(true); classFigure_Body0.setLayoutManager(layoutClassFigure_Body0); org.eclipse.draw2d.RectangleFigure classFigure_PropertiesCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_PropertiesCompartment1.setFill(true); classFigure_PropertiesCompartment1.setFillXOR(false); classFigure_PropertiesCompartment1.setOutline(true); classFigure_PropertiesCompartment1.setOutlineXOR(false); classFigure_PropertiesCompartment1.setLineWidth(1); classFigure_PropertiesCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_PropertiesCompartment1); setFigureClassFigure_PropertiesCompartment(classFigure_PropertiesCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_OperationsCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_OperationsCompartment1.setFill(true); classFigure_OperationsCompartment1.setFillXOR(false); classFigure_OperationsCompartment1.setOutline(true); classFigure_OperationsCompartment1.setOutlineXOR(false); classFigure_OperationsCompartment1.setLineWidth(1); classFigure_OperationsCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_OperationsCompartment1); setFigureClassFigure_OperationsCompartment(classFigure_OperationsCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_ClassesCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_ClassesCompartment1.setFill(true); classFigure_ClassesCompartment1.setFillXOR(false); classFigure_ClassesCompartment1.setOutline(true); classFigure_ClassesCompartment1.setOutlineXOR(false); classFigure_ClassesCompartment1.setLineWidth(1); classFigure_ClassesCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_ClassesCompartment1); setFigureClassFigure_ClassesCompartment(classFigure_ClassesCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_LiteralsCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_LiteralsCompartment1.setFill(true); classFigure_LiteralsCompartment1.setFillXOR(false); classFigure_LiteralsCompartment1.setOutline(true); classFigure_LiteralsCompartment1.setOutlineXOR(false); classFigure_LiteralsCompartment1.setLineWidth(1); classFigure_LiteralsCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_LiteralsCompartment1); setFigureClassFigure_LiteralsCompartment(classFigure_LiteralsCompartment1); org.eclipse.draw2d.RectangleFigure classFigure_OthersCompartment1 = new org.eclipse.draw2d.RectangleFigure(); classFigure_OthersCompartment1.setFill(true); classFigure_OthersCompartment1.setFillXOR(false); classFigure_OthersCompartment1.setOutline(true); classFigure_OthersCompartment1.setOutlineXOR(false); classFigure_OthersCompartment1.setLineWidth(1); classFigure_OthersCompartment1.setLineStyle(org.eclipse.draw2d.Graphics.LINE_SOLID); classFigure_Body0.add(classFigure_OthersCompartment1); setFigureClassFigure_OthersCompartment(classFigure_OthersCompartment1); }
public org.eclipse.draw2d.RectangleFigure getFigureClassFigure_ClassesCompartment() {
public RectangleFigure getFigureClassFigure_ClassesCompartment() {
public org.eclipse.draw2d.RectangleFigure getFigureClassFigure_ClassesCompartment() { return fClassFigure_ClassesCompartment; }
public org.eclipse.draw2d.RectangleFigure getFigureClassFigure_LiteralsCompartment() {
public RectangleFigure getFigureClassFigure_LiteralsCompartment() {
public org.eclipse.draw2d.RectangleFigure getFigureClassFigure_LiteralsCompartment() { return fClassFigure_LiteralsCompartment; }
public org.eclipse.draw2d.RectangleFigure getFigureClassFigure_OperationsCompartment() {
public RectangleFigure getFigureClassFigure_OperationsCompartment() {
public org.eclipse.draw2d.RectangleFigure getFigureClassFigure_OperationsCompartment() { return fClassFigure_OperationsCompartment; }
public org.eclipse.draw2d.RectangleFigure getFigureClassFigure_OthersCompartment() {
public RectangleFigure getFigureClassFigure_OthersCompartment() {
public org.eclipse.draw2d.RectangleFigure getFigureClassFigure_OthersCompartment() { return fClassFigure_OthersCompartment; }
public org.eclipse.draw2d.RectangleFigure getFigureClassFigure_PropertiesCompartment() {
public RectangleFigure getFigureClassFigure_PropertiesCompartment() {
public org.eclipse.draw2d.RectangleFigure getFigureClassFigure_PropertiesCompartment() { return fClassFigure_PropertiesCompartment; }
public org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel getFigureClassFigure_name() {
public WrapLabel getFigureClassFigure_name() {
public org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel getFigureClassFigure_name() { return fClassFigure_name; }
private void setFigureClassFigure_ClassesCompartment(org.eclipse.draw2d.RectangleFigure fig) {
private void setFigureClassFigure_ClassesCompartment(RectangleFigure fig) {
private void setFigureClassFigure_ClassesCompartment(org.eclipse.draw2d.RectangleFigure fig) { fClassFigure_ClassesCompartment = fig; }
private void setFigureClassFigure_LiteralsCompartment(org.eclipse.draw2d.RectangleFigure fig) {
private void setFigureClassFigure_LiteralsCompartment(RectangleFigure fig) {
private void setFigureClassFigure_LiteralsCompartment(org.eclipse.draw2d.RectangleFigure fig) { fClassFigure_LiteralsCompartment = fig; }
private void setFigureClassFigure_OperationsCompartment(org.eclipse.draw2d.RectangleFigure fig) {
private void setFigureClassFigure_OperationsCompartment(RectangleFigure fig) {
private void setFigureClassFigure_OperationsCompartment(org.eclipse.draw2d.RectangleFigure fig) { fClassFigure_OperationsCompartment = fig; }
private void setFigureClassFigure_OthersCompartment(org.eclipse.draw2d.RectangleFigure fig) {
private void setFigureClassFigure_OthersCompartment(RectangleFigure fig) {
private void setFigureClassFigure_OthersCompartment(org.eclipse.draw2d.RectangleFigure fig) { fClassFigure_OthersCompartment = fig; }
private void setFigureClassFigure_PropertiesCompartment(org.eclipse.draw2d.RectangleFigure fig) {
private void setFigureClassFigure_PropertiesCompartment(RectangleFigure fig) {
private void setFigureClassFigure_PropertiesCompartment(org.eclipse.draw2d.RectangleFigure fig) { fClassFigure_PropertiesCompartment = fig; }
private void setFigureClassFigure_name(org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel fig) {
private void setFigureClassFigure_name(WrapLabel fig) {
private void setFigureClassFigure_name(org.eclipse.gmf.runtime.draw2d.ui.figures.WrapLabel fig) { fClassFigure_name = fig; }
SimplePlotUtil.flipArray(pixels[1], size.height);
public Shape draw(Dimension size){ if(visible){ MicroSecondTimeRange overTimeRange = timeConfig.getTimeRange(seismogram). getOversizedTimeRange(BasicSeismogramDisplay.OVERSIZED_SCALE); try{ int[][] pixels = SimplePlotUtil.compressYvalues(seismogram, overTimeRange, ampConfig.getAmpRange(seismogram), size); SimplePlotUtil.scaleYvalues(pixels, seismogram, overTimeRange, ampConfig.getAmpRange(seismogram), size); int[] xPixels = pixels[0]; int[] yPixels = pixels[1]; if(xPixels.length >= 2){ GeneralPath currentShape = new GeneralPath(GeneralPath.WIND_EVEN_ODD, xPixels.length - 1); currentShape.moveTo(xPixels[0], yPixels[0]); for(int i = 1; i < xPixels.length; i++) currentShape.lineTo(xPixels[i], yPixels[i]); return currentShape; }else if(xPixels.length == 1){ GeneralPath currentShape = new GeneralPath(GeneralPath.WIND_EVEN_ODD, 2); currentShape.moveTo(0, yPixels[0]); currentShape.lineTo(size.width, yPixels[0]); return currentShape; } } catch(Exception e){ e.printStackTrace(); } } return new GeneralPath(); }
this.stopImageCreation(); timeRegistrar.removeTimeSyncListener(this); ampRegistrar.removeAmpSyncListener(this); parent.removeDisplay(this); }
}
public void remove(MouseEvent me){ logger.debug(name + " being removed"); Iterator e = plotters.keySet().iterator(); while(e.hasNext()){ LocalSeismogram current = ((SeismogramPlotter)e.next()).getSeismogram(); timeRegistrar.removeSeismogram(current); ampRegistrar.removeSeismogram(current); } this.stopImageCreation(); timeRegistrar.removeTimeSyncListener(this); ampRegistrar.removeAmpSyncListener(this); parent.removeDisplay(this); }
public void setSuperUser(boolean val) {
public void setSuperUser(boolean val) throws CalFacadeException {
public void setSuperUser(boolean val) { superUser = val; }
getCal().setSuperUser(val);
public void setSuperUser(boolean val) { superUser = val; }
this.seismoAmpRange.put(current, new UnitRangeImpl(currentUnit.getMinValue(), currentUnit.getMaxValue(), currentUnit.getUnit()));
if(currentUnit != null){ this.seismoAmpRange.put(current, new UnitRangeImpl(currentUnit.getMinValue(), currentUnit.getMaxValue(), currentUnit.getUnit())); }
public void update(HashMap seismos, UnitRangeImpl generalRange){ this.generalRange = generalRange; Iterator e = seismos.keySet().iterator(); while(e.hasNext()){ DataSetSeismogram current = (DataSetSeismogram)e.next(); UnitRangeImpl currentUnit = (UnitRangeImpl)seismos.get(current); this.seismoAmpRange.put(current, new UnitRangeImpl(currentUnit.getMinValue(), currentUnit.getMaxValue(), currentUnit.getUnit())); } }
public void back(int n) throws AccessException { if (pos - n < 0) { throw AccessException.badACLRewind(); } pos -= n;
public void back() throws AccessException { back(1);
public void back(int n) throws AccessException { if (pos - n < 0) { throw AccessException.badACLRewind(); } pos -= n; }
insets.top -= y+top; insets.bottom -= bottom + y; FontMetrics fm = copy.getFontMetrics();
FontMetrics fm = copy.getFontMetrics();
public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Graphics2D copy = (Graphics2D)g; if (copy != null) { try { Font f = new Font("SansSerif", Font.PLAIN, 9); copy.setFont(f); // in case there are borders inside of this one Insets insets = ((JComponent)c).getInsets(); insets.top -= y+top; insets.bottom -= bottom + y; FontMetrics fm = copy.getFontMetrics(); String labelTemp; // top int numTicks; int pixelLoc; if (topScaleMap != null) { numTicks = topScaleMap.getNumTicks(); for (int i=0; i<numTicks; i++) { pixelLoc = insets.left + topScaleMap.getPixelLocation(i); if(topScaleMap.isMajorTick(i)) copy.draw(new Line2D.Float(pixelLoc, top, pixelLoc, top - majorTickLength)); else copy.draw(new Line2D.Float(pixelLoc, top, pixelLoc, top - minorTickLength)); labelTemp = topScaleMap.getLabel(i); if (labelTemp != null && labelTemp.length() != 0) { copy.drawString(labelTemp, pixelLoc, top - majorTickLength- fm.getLeading()); } } } // left if (leftScaleMap != null) { numTicks = leftScaleMap.getNumTicks(); for (int i=0; i<numTicks; i++) { pixelLoc = height - leftScaleMap.getPixelLocation(i) - bottom; if (leftScaleMap.isMajorTick(i)) { copy.draw(new Line2D.Float(insets.left -majorTickLength - insets.right, pixelLoc, insets.left - insets.right, pixelLoc)); } else { copy.draw(new Line2D.Float(insets.left - insets.right - minorTickLength, pixelLoc, insets.left - insets.right, pixelLoc)); } labelTemp = leftScaleMap.getLabel(i); if (labelTemp != null && labelTemp.length() != 0) { if(i == 0) copy.drawString(labelTemp, insets.left - insets.right - 45, pixelLoc + 5); else if(i == numTicks - 1) copy.drawString(labelTemp, insets.left - insets.right - 45, pixelLoc - 5); else copy.drawString(labelTemp, insets.left - insets.right - 45, pixelLoc); } } } // bottom if (bottomScaleMap != null) { numTicks = bottomScaleMap.getNumTicks(); for (int i=0; i<numTicks; i++) { pixelLoc = insets.left + bottomScaleMap.getPixelLocation(i); if (bottomScaleMap.isMajorTick(i)) { copy.draw(new Line2D.Float(pixelLoc, height-bottom, pixelLoc, height-bottom+majorTickLength)); } else { copy.draw(new Line2D.Float(pixelLoc, height-bottom, pixelLoc, height-bottom+minorTickLength)); } labelTemp = bottomScaleMap.getLabel(i); if (labelTemp != null && labelTemp.length() != 0) { copy.drawString(labelTemp, pixelLoc, height-fm.getLeading()); } } } // right if (rightScaleMap != null) { numTicks = rightScaleMap.getNumTicks(); for (int i=0; i<numTicks; i++) { pixelLoc = height - rightScaleMap.getPixelLocation(i) - bottom; System.out.println("HScaleBorder pixelLoc="+pixelLoc); copy.draw(new Line2D.Float(pixelLoc, c.getSize().height-bottom, pixelLoc, c.getSize().height-bottom/2)); labelTemp = rightScaleMap.getLabel(i); if (labelTemp != null && labelTemp.length() != 0) { copy.drawString(labelTemp, pixelLoc, c.getSize().height-fm.getLeading()); } } } } finally { copy.dispose(); } } }
bottom = majorTickLength+15;
bottom = 20;
public void setBottomScaleMapper(ScaleMapper scaleMap) { this.bottomScaleMap = scaleMap; bottom = majorTickLength+15; //guess as not sure of what font will be }
right = 40;
right = 50;
public void setRightScaleMapper(ScaleMapper scaleMap) { this.rightScaleMap = scaleMap; right = 40; }
if (!random) { playNext(); } else { playRandom();
firePlaybackCompleted(player);
public void playbackCompleted() { if (!random) { playNext(); } else { playRandom(); } }
}
public void playbackCompleted() { if (!random) { playNext(); } else { playRandom(); } }
}
firePlaybackStarted(player); }
public void playbackStarted() { }
}
firePlaybackStopped(player); }
public void playbackStopped() { }
public DataSetSeismogram (LocalSeismogramImpl seismo, DataSet ds){ this.seis = seismo; this.dataSet = ds;
public DataSetSeismogram(DataSetSeismogram dss, String suffix){ this(dss.getSeismogram(), dss.getDataSet(), dss.getSuffix() + suffix);
public DataSetSeismogram (LocalSeismogramImpl seismo, DataSet ds){ this.seis = seismo; this.dataSet = ds; }
public Calendars(Calintf cal, AccessUtil access, BwUser user,
public Calendars(Calintf cal, AccessUtil access,
public Calendars(Calintf cal, AccessUtil access, BwUser user, int currentMode, boolean ignoreCreator, boolean debug) throws CalFacadeException { super(cal, access, user, currentMode, ignoreCreator, debug); publicCalendarRootPath = "/" + getSyspars().getPublicCalendarRoot(); userCalendarRootPath = "/" + getSyspars().getUserCalendarRoot(); }
super(cal, access, user, currentMode, ignoreCreator, debug);
super(cal, access, currentMode, ignoreCreator, debug);
public Calendars(Calintf cal, AccessUtil access, BwUser user, int currentMode, boolean ignoreCreator, boolean debug) throws CalFacadeException { super(cal, access, user, currentMode, ignoreCreator, debug); publicCalendarRootPath = "/" + getSyspars().getPublicCalendarRoot(); userCalendarRootPath = "/" + getSyspars().getUserCalendarRoot(); }
val.setOwner(user);
val.setOwner(getUser());
public void addCalendar(BwCalendar val, BwCalendar parent) throws CalFacadeException { HibSession sess = getSess(); /* We need write access to the parent */ access.accessible(parent, privWrite, false); /** Is the parent a calendar collection? *//* sess.namedQuery("countCalendarEventRefs"); sess.setEntity("cal", parent); Integer res = (Integer)sess.getUnique(); if (res.intValue() > 0) {*/ if (parent.getCalendarCollection()) { throw new CalFacadeException(CalFacadeException.illegalCalendarCreation); } /* Ensure the path is unique */ String path = parent.getPath(); if (path == null) { if (parent.getPublick()) { path = ""; } else { path = "/users/" + parent.getOwner().getAccount(); } } path += "/" + val.getName(); sess.namedQuery("getCalendarByPath"); sess.setString("path", path); if (sess.getUnique() != null) { throw new CalFacadeException(CalFacadeException.duplicateCalendar); } val.setPath(path); val.setOwner(user); val.setCalendar(parent); parent.addChild(val); sess.save(parent); }
sess.setEntity("owner", user);
sess.setEntity("owner", getUser());
public Collection getAddContentCalendarCollections() throws CalFacadeException { HibSession sess = getSess(); sess.namedQuery("getUserCalendarCollections"); sess.setEntity("owner", user); sess.cacheableQuery(); return access.checkAccess(sess.getList(), privWriteContent, noAccessReturnsNull); }
sess.setEntity("owner", user);
sess.setEntity("owner", getUser());
public Collection getCalendarCollections() throws CalFacadeException { HibSession sess = getSess(); sess.namedQuery("getUserCalendarCollections"); sess.setEntity("owner", user); sess.cacheableQuery(); return access.checkAccess(sess.getList(), privWrite, noAccessReturnsNull); }
sess.setString("path", userCalendarRootPath + "/" + user.getAccount());
sess.setString("path", userCalendarRootPath + "/" + getUser().getAccount());
public BwCalendar getCalendars() throws CalFacadeException { HibSession sess = getSess(); sess.namedQuery("getCalendarByPath"); sess.setString("path", userCalendarRootPath + "/" + user.getAccount()); sess.cacheableQuery(); BwCalendar cal = (BwCalendar)sess.getUnique(); return cloneAndCheckAccess(cal, privRead, noAccessReturnsNull); }
return getPreferences().getSubscriptions();
Collection c = getPreferences().getSubscriptions(); Iterator it = c.iterator(); while (it.hasNext()) { BwSubscription sub = (BwSubscription)it.next(); getSubCalendar(sub); } return c;
public Collection getSubscriptions() throws CalFacadeException { return getPreferences().getSubscriptions(); }
node.setJspUri("/idegaweb/bundles/com.idega.webface.bundle/jsp/workspace.jsf");
node.setJspUri("/idegaweb/bundles/com.idega.webface.bundle/jsp/workspace.jsp");
public ViewNode getWorkspaceRoot(){ //ViewNode workspaceNode = getApplicationRoot().getChild("workspace"); if(workspaceNode==null){ DefaultViewNode node = new DefaultViewNode(iwma); node.setViewId("workspace"); //getApplicationRoot().addChildViewNode(node); node.setParent(getApplicationRoot()); node.setJspUri("/idegaweb/bundles/com.idega.webface.bundle/jsp/workspace.jsf"); workspaceNode = node; } return workspaceNode; }
DefaultViewNode builderNode = new ApplicationViewNode("builder",getWorkspaceRoot());
try { Class applicationClass = Class.forName("com.idega.builder.app.IBApplication"); FramedWindowClassViewNode builderNode = new FramedWindowClassViewNode("builder",getWorkspaceRoot()); builderNode.setWindowClass(applicationClass); builderNode.setJspUri(getWorkspaceRoot().getJSPURI()); } catch (ClassNotFoundException e) { e.printStackTrace(); } try { Class applicationClass = Class.forName("com.idega.user.app.UserApplication"); FramedWindowClassViewNode userNode = new FramedWindowClassViewNode("user",getWorkspaceRoot()); userNode.setWindowClass(applicationClass); userNode.setJspUri(getWorkspaceRoot().getJSPURI()); } catch (ClassNotFoundException e) { e.printStackTrace(); } try { Class applicationClass = Class.forName("com.idega.development.presentation.IWDeveloper"); FramedWindowClassViewNode developerNode = new FramedWindowClassViewNode("developer",getWorkspaceRoot()); developerNode.setWindowClass(applicationClass); developerNode.setJspUri(getWorkspaceRoot().getJSPURI()); } catch (ClassNotFoundException e) { e.printStackTrace(); }
public void initializeStandardViews(ViewHandler handler){ setApplicationRoot(iwma,handler); DefaultViewNode builderNode = new ApplicationViewNode("builder",getWorkspaceRoot()); DefaultViewNode contentNode = new ApplicationViewNode("content",getWorkspaceRoot()); contentNode.setJspUri("/idegaweb/bundles/com.idega.webface.bundle/jsp/cmspage.jsf"); //TODO: move these specific views DefaultViewNode articleNode = new ApplicationViewNode("article",contentNode); articleNode.setJspUri("/idegaweb/bundles/com.idega.webface.bundle/jsp/articles.jsf"); DefaultViewNode createNewArticleNode = new ApplicationViewNode("create",articleNode); createNewArticleNode.setJspUri("/idegaweb/bundles/com.idega.webface.bundle/jsp/createarticle.jsf"); DefaultViewNode previewArticlesNode = new ApplicationViewNode("preview",articleNode); previewArticlesNode.setJspUri("/idegaweb/bundles/com.idega.webface.bundle/jsp/previewarticle.jsf"); //DefaultViewNode listArticlesNode = new ApplicationViewNode("listarticles",articleNode); DefaultViewNode documentNode = new ApplicationViewNode("document",contentNode); DefaultViewNode searchNode = new ApplicationViewNode("search",contentNode); searchNode.setJspUri("/idegaweb/bundles/com.idega.webface.bundle/jsp/searcharticle.jsf"); DefaultViewNode webviewNode = new ApplicationViewNode("webview",getWorkspaceRoot()); DefaultViewNode loginViewNode = new WindowViewNode("login",getApplicationRoot()); DefaultViewNode pagesViewNode = new BuilderPageViewNode("pages",getApplicationRoot()); DefaultViewNode windowViewNode = new WindowViewNode("window",getApplicationRoot()); }
contentNode.setJspUri("/idegaweb/bundles/com.idega.webface.bundle/jsp/cmspage.jsf");
contentNode.setJspUri("/idegaweb/bundles/com.idega.webface.bundle/jsp/cmspage.jsp");
public void initializeStandardViews(ViewHandler handler){ setApplicationRoot(iwma,handler); DefaultViewNode builderNode = new ApplicationViewNode("builder",getWorkspaceRoot()); DefaultViewNode contentNode = new ApplicationViewNode("content",getWorkspaceRoot()); contentNode.setJspUri("/idegaweb/bundles/com.idega.webface.bundle/jsp/cmspage.jsf"); //TODO: move these specific views DefaultViewNode articleNode = new ApplicationViewNode("article",contentNode); articleNode.setJspUri("/idegaweb/bundles/com.idega.webface.bundle/jsp/articles.jsf"); DefaultViewNode createNewArticleNode = new ApplicationViewNode("create",articleNode); createNewArticleNode.setJspUri("/idegaweb/bundles/com.idega.webface.bundle/jsp/createarticle.jsf"); DefaultViewNode previewArticlesNode = new ApplicationViewNode("preview",articleNode); previewArticlesNode.setJspUri("/idegaweb/bundles/com.idega.webface.bundle/jsp/previewarticle.jsf"); //DefaultViewNode listArticlesNode = new ApplicationViewNode("listarticles",articleNode); DefaultViewNode documentNode = new ApplicationViewNode("document",contentNode); DefaultViewNode searchNode = new ApplicationViewNode("search",contentNode); searchNode.setJspUri("/idegaweb/bundles/com.idega.webface.bundle/jsp/searcharticle.jsf"); DefaultViewNode webviewNode = new ApplicationViewNode("webview",getWorkspaceRoot()); DefaultViewNode loginViewNode = new WindowViewNode("login",getApplicationRoot()); DefaultViewNode pagesViewNode = new BuilderPageViewNode("pages",getApplicationRoot()); DefaultViewNode windowViewNode = new WindowViewNode("window",getApplicationRoot()); }
DefaultViewNode articleNode = new ApplicationViewNode("article",contentNode); articleNode.setJspUri("/idegaweb/bundles/com.idega.webface.bundle/jsp/articles.jsf"); DefaultViewNode createNewArticleNode = new ApplicationViewNode("create",articleNode); createNewArticleNode.setJspUri("/idegaweb/bundles/com.idega.webface.bundle/jsp/createarticle.jsf");
DefaultViewNode articleNode = new DefaultViewNode("article",contentNode); articleNode.setJspUri("/idegaweb/bundles/com.idega.webface.bundle/jsp/articles.jsp"); DefaultViewNode createNewArticleNode = new DefaultViewNode("create",articleNode); createNewArticleNode.setJspUri("/idegaweb/bundles/com.idega.webface.bundle/jsp/createarticle.jsp");
public void initializeStandardViews(ViewHandler handler){ setApplicationRoot(iwma,handler); DefaultViewNode builderNode = new ApplicationViewNode("builder",getWorkspaceRoot()); DefaultViewNode contentNode = new ApplicationViewNode("content",getWorkspaceRoot()); contentNode.setJspUri("/idegaweb/bundles/com.idega.webface.bundle/jsp/cmspage.jsf"); //TODO: move these specific views DefaultViewNode articleNode = new ApplicationViewNode("article",contentNode); articleNode.setJspUri("/idegaweb/bundles/com.idega.webface.bundle/jsp/articles.jsf"); DefaultViewNode createNewArticleNode = new ApplicationViewNode("create",articleNode); createNewArticleNode.setJspUri("/idegaweb/bundles/com.idega.webface.bundle/jsp/createarticle.jsf"); DefaultViewNode previewArticlesNode = new ApplicationViewNode("preview",articleNode); previewArticlesNode.setJspUri("/idegaweb/bundles/com.idega.webface.bundle/jsp/previewarticle.jsf"); //DefaultViewNode listArticlesNode = new ApplicationViewNode("listarticles",articleNode); DefaultViewNode documentNode = new ApplicationViewNode("document",contentNode); DefaultViewNode searchNode = new ApplicationViewNode("search",contentNode); searchNode.setJspUri("/idegaweb/bundles/com.idega.webface.bundle/jsp/searcharticle.jsf"); DefaultViewNode webviewNode = new ApplicationViewNode("webview",getWorkspaceRoot()); DefaultViewNode loginViewNode = new WindowViewNode("login",getApplicationRoot()); DefaultViewNode pagesViewNode = new BuilderPageViewNode("pages",getApplicationRoot()); DefaultViewNode windowViewNode = new WindowViewNode("window",getApplicationRoot()); }
DefaultViewNode previewArticlesNode = new ApplicationViewNode("preview",articleNode); previewArticlesNode.setJspUri("/idegaweb/bundles/com.idega.webface.bundle/jsp/previewarticle.jsf");
DefaultViewNode previewArticlesNode = new DefaultViewNode("preview",articleNode); previewArticlesNode.setJspUri("/idegaweb/bundles/com.idega.webface.bundle/jsp/previewarticle.jsp");
public void initializeStandardViews(ViewHandler handler){ setApplicationRoot(iwma,handler); DefaultViewNode builderNode = new ApplicationViewNode("builder",getWorkspaceRoot()); DefaultViewNode contentNode = new ApplicationViewNode("content",getWorkspaceRoot()); contentNode.setJspUri("/idegaweb/bundles/com.idega.webface.bundle/jsp/cmspage.jsf"); //TODO: move these specific views DefaultViewNode articleNode = new ApplicationViewNode("article",contentNode); articleNode.setJspUri("/idegaweb/bundles/com.idega.webface.bundle/jsp/articles.jsf"); DefaultViewNode createNewArticleNode = new ApplicationViewNode("create",articleNode); createNewArticleNode.setJspUri("/idegaweb/bundles/com.idega.webface.bundle/jsp/createarticle.jsf"); DefaultViewNode previewArticlesNode = new ApplicationViewNode("preview",articleNode); previewArticlesNode.setJspUri("/idegaweb/bundles/com.idega.webface.bundle/jsp/previewarticle.jsf"); //DefaultViewNode listArticlesNode = new ApplicationViewNode("listarticles",articleNode); DefaultViewNode documentNode = new ApplicationViewNode("document",contentNode); DefaultViewNode searchNode = new ApplicationViewNode("search",contentNode); searchNode.setJspUri("/idegaweb/bundles/com.idega.webface.bundle/jsp/searcharticle.jsf"); DefaultViewNode webviewNode = new ApplicationViewNode("webview",getWorkspaceRoot()); DefaultViewNode loginViewNode = new WindowViewNode("login",getApplicationRoot()); DefaultViewNode pagesViewNode = new BuilderPageViewNode("pages",getApplicationRoot()); DefaultViewNode windowViewNode = new WindowViewNode("window",getApplicationRoot()); }
DefaultViewNode documentNode = new ApplicationViewNode("document",contentNode);
DefaultViewNode documentNode = new DefaultViewNode("document",contentNode);
public void initializeStandardViews(ViewHandler handler){ setApplicationRoot(iwma,handler); DefaultViewNode builderNode = new ApplicationViewNode("builder",getWorkspaceRoot()); DefaultViewNode contentNode = new ApplicationViewNode("content",getWorkspaceRoot()); contentNode.setJspUri("/idegaweb/bundles/com.idega.webface.bundle/jsp/cmspage.jsf"); //TODO: move these specific views DefaultViewNode articleNode = new ApplicationViewNode("article",contentNode); articleNode.setJspUri("/idegaweb/bundles/com.idega.webface.bundle/jsp/articles.jsf"); DefaultViewNode createNewArticleNode = new ApplicationViewNode("create",articleNode); createNewArticleNode.setJspUri("/idegaweb/bundles/com.idega.webface.bundle/jsp/createarticle.jsf"); DefaultViewNode previewArticlesNode = new ApplicationViewNode("preview",articleNode); previewArticlesNode.setJspUri("/idegaweb/bundles/com.idega.webface.bundle/jsp/previewarticle.jsf"); //DefaultViewNode listArticlesNode = new ApplicationViewNode("listarticles",articleNode); DefaultViewNode documentNode = new ApplicationViewNode("document",contentNode); DefaultViewNode searchNode = new ApplicationViewNode("search",contentNode); searchNode.setJspUri("/idegaweb/bundles/com.idega.webface.bundle/jsp/searcharticle.jsf"); DefaultViewNode webviewNode = new ApplicationViewNode("webview",getWorkspaceRoot()); DefaultViewNode loginViewNode = new WindowViewNode("login",getApplicationRoot()); DefaultViewNode pagesViewNode = new BuilderPageViewNode("pages",getApplicationRoot()); DefaultViewNode windowViewNode = new WindowViewNode("window",getApplicationRoot()); }
DefaultViewNode searchNode = new ApplicationViewNode("search",contentNode); searchNode.setJspUri("/idegaweb/bundles/com.idega.webface.bundle/jsp/searcharticle.jsf");
DefaultViewNode searchNode = new DefaultViewNode("search",contentNode); searchNode.setJspUri("/idegaweb/bundles/com.idega.webface.bundle/jsp/searcharticle.jsp");
public void initializeStandardViews(ViewHandler handler){ setApplicationRoot(iwma,handler); DefaultViewNode builderNode = new ApplicationViewNode("builder",getWorkspaceRoot()); DefaultViewNode contentNode = new ApplicationViewNode("content",getWorkspaceRoot()); contentNode.setJspUri("/idegaweb/bundles/com.idega.webface.bundle/jsp/cmspage.jsf"); //TODO: move these specific views DefaultViewNode articleNode = new ApplicationViewNode("article",contentNode); articleNode.setJspUri("/idegaweb/bundles/com.idega.webface.bundle/jsp/articles.jsf"); DefaultViewNode createNewArticleNode = new ApplicationViewNode("create",articleNode); createNewArticleNode.setJspUri("/idegaweb/bundles/com.idega.webface.bundle/jsp/createarticle.jsf"); DefaultViewNode previewArticlesNode = new ApplicationViewNode("preview",articleNode); previewArticlesNode.setJspUri("/idegaweb/bundles/com.idega.webface.bundle/jsp/previewarticle.jsf"); //DefaultViewNode listArticlesNode = new ApplicationViewNode("listarticles",articleNode); DefaultViewNode documentNode = new ApplicationViewNode("document",contentNode); DefaultViewNode searchNode = new ApplicationViewNode("search",contentNode); searchNode.setJspUri("/idegaweb/bundles/com.idega.webface.bundle/jsp/searcharticle.jsf"); DefaultViewNode webviewNode = new ApplicationViewNode("webview",getWorkspaceRoot()); DefaultViewNode loginViewNode = new WindowViewNode("login",getApplicationRoot()); DefaultViewNode pagesViewNode = new BuilderPageViewNode("pages",getApplicationRoot()); DefaultViewNode windowViewNode = new WindowViewNode("window",getApplicationRoot()); }
public DefaultViewNode(IWMainApplication iwma) { this.setIWMainApplication(iwma);
public DefaultViewNode(String viewId,ViewNode parent) { this.setViewId(viewId); setParent(parent);
public DefaultViewNode(IWMainApplication iwma) { this.setIWMainApplication(iwma); }
selection3CCount = 0;
public void clear3CSelections(){ get3CSelections().clear(); repaint(); }
selectionCount = 0;
public void clearRegSelections(){ getSelections().clear(); repaint(); }
selectionCount = 0; selection3CCount = 0;
public void clearSelections(){ parent.removeSelectionDisplay(); parent.remove3CSelectionDisplay(); repaint(); }
Collection gs = sess.getList();
Set gs = new TreeSet(sess.getList());
public Collection getGroups(BwPrincipal val) throws CalFacadeException { HibSession sess = getSess(); sess.namedQuery("getAdminGroups"); sess.setInt("entId", val.getId()); /* This is what I want to do but it inserts 'true' or 'false' sess.setBool("isgroup", (val instanceof BwGroup)); */ if (val instanceof BwGroup) { sess.setString("isgroup", "T"); } else { sess.setString("isgroup", "F"); } Collection gs = sess.getList(); if (val instanceof BwUser) { /* Event owner for group is implicit member of group. */ sess.namedQuery("getAdminGroupsByEventOwner"); sess.setEntity("owner", val); gs.addAll(sess.getList()); } return gs; }
return addDisplay(dss, globalTimeRegistrar, name);
return addDisplay(dss, globalTimeRegistrar, globalAmpRegistrar, name);
public BasicSeismogramDisplay addDisplay(DataSetSeismogram dss, String name){ return addDisplay(dss, globalTimeRegistrar, name); }
selectionWindow.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { particleWindow.dispose(); particleDisplay = null; } });
public void createParticleDisplay(BasicSeismogramDisplay creator){ if(particleDisplay == null){ logger.debug("creating particle display"); particleWindow = new JFrame(); LocalSeismogramImpl seis = (((LocalSeismogramImpl)((DataSetSeismogram)creator.getSeismograms().getFirst()).getSeismogram())); particleDisplay = new ParticleMotionDisplay(seis, creator.getTimeRegistrar(), creator.getAmpRegistrar(), creator.getAmpRegistrar(), ((DataSetSeismogram)creator.getSeismograms().getFirst()).getDataSet()); particleDisplay.addAzimuthLine(15); particleDisplay.addSector(10, 20); JPanel displayPanel = new JPanel(); JButton zoomIn = new JButton("zoomIn"); JButton zoomOut = new JButton("zoomOut"); JPanel buttonPanel = new JPanel(); buttonPanel.setLayout(new FlowLayout()); buttonPanel.add(zoomIn); buttonPanel.add(zoomOut); displayPanel.setLayout(new BorderLayout()); displayPanel.add(particleDisplay, java.awt.BorderLayout.CENTER); displayPanel.add(buttonPanel, java.awt.BorderLayout.SOUTH); java.awt.Dimension size = new java.awt.Dimension(400, 400); displayPanel.setSize(size); particleWindow.getContentPane().add(displayPanel); //particleWindow.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); particleWindow.setSize(size); zoomIn.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent ae) { particleDisplay.setZoomIn(true); // particleDisplay.setZoomOut(false); } }); zoomOut.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent ae) { particleDisplay.setZoomOut(true); // particleDisplay.setZoomIn(false); } }); Toolkit tk = Toolkit.getDefaultToolkit(); if(400*particleDisplays < tk.getScreenSize().width){ particleWindow.setLocation(400 * particleDisplays, tk.getScreenSize().height - 400); }else{ particleWindow.setLocation(tk.getScreenSize().width - 400, tk.getScreenSize().height - 400); } particleDisplays++; particleWindow.setVisible(true); } }
if(400*particleDisplays < tk.getScreenSize().width){ particleWindow.setLocation(400 * particleDisplays, tk.getScreenSize().height - 400);
if(particleWindow.getSize().width*particleDisplays < tk.getScreenSize().width){ particleWindow.setLocation(particleWindow.getSize().width * particleDisplays, tk.getScreenSize().height - particleWindow.getSize().width);
public void createParticleDisplay(BasicSeismogramDisplay creator){ if(particleDisplay == null){ logger.debug("creating particle display"); particleWindow = new JFrame(); LocalSeismogramImpl seis = (((LocalSeismogramImpl)((DataSetSeismogram)creator.getSeismograms().getFirst()).getSeismogram())); particleDisplay = new ParticleMotionDisplay(seis, creator.getTimeRegistrar(), creator.getAmpRegistrar(), creator.getAmpRegistrar(), ((DataSetSeismogram)creator.getSeismograms().getFirst()).getDataSet()); particleDisplay.addAzimuthLine(15); particleDisplay.addSector(10, 20); JPanel displayPanel = new JPanel(); JButton zoomIn = new JButton("zoomIn"); JButton zoomOut = new JButton("zoomOut"); JPanel buttonPanel = new JPanel(); buttonPanel.setLayout(new FlowLayout()); buttonPanel.add(zoomIn); buttonPanel.add(zoomOut); displayPanel.setLayout(new BorderLayout()); displayPanel.add(particleDisplay, java.awt.BorderLayout.CENTER); displayPanel.add(buttonPanel, java.awt.BorderLayout.SOUTH); java.awt.Dimension size = new java.awt.Dimension(400, 400); displayPanel.setSize(size); particleWindow.getContentPane().add(displayPanel); //particleWindow.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); particleWindow.setSize(size); zoomIn.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent ae) { particleDisplay.setZoomIn(true); // particleDisplay.setZoomOut(false); } }); zoomOut.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent ae) { particleDisplay.setZoomOut(true); // particleDisplay.setZoomIn(false); } }); Toolkit tk = Toolkit.getDefaultToolkit(); if(400*particleDisplays < tk.getScreenSize().width){ particleWindow.setLocation(400 * particleDisplays, tk.getScreenSize().height - 400); }else{ particleWindow.setLocation(tk.getScreenSize().width - 400, tk.getScreenSize().height - 400); } particleDisplays++; particleWindow.setVisible(true); } }
particleWindow.setLocation(tk.getScreenSize().width - 400, tk.getScreenSize().height - 400);
particleWindow.setLocation(tk.getScreenSize().width - particleWindow.getSize().width, tk.getScreenSize().height - particleWindow.getSize().height);
public void createParticleDisplay(BasicSeismogramDisplay creator){ if(particleDisplay == null){ logger.debug("creating particle display"); particleWindow = new JFrame(); LocalSeismogramImpl seis = (((LocalSeismogramImpl)((DataSetSeismogram)creator.getSeismograms().getFirst()).getSeismogram())); particleDisplay = new ParticleMotionDisplay(seis, creator.getTimeRegistrar(), creator.getAmpRegistrar(), creator.getAmpRegistrar(), ((DataSetSeismogram)creator.getSeismograms().getFirst()).getDataSet()); particleDisplay.addAzimuthLine(15); particleDisplay.addSector(10, 20); JPanel displayPanel = new JPanel(); JButton zoomIn = new JButton("zoomIn"); JButton zoomOut = new JButton("zoomOut"); JPanel buttonPanel = new JPanel(); buttonPanel.setLayout(new FlowLayout()); buttonPanel.add(zoomIn); buttonPanel.add(zoomOut); displayPanel.setLayout(new BorderLayout()); displayPanel.add(particleDisplay, java.awt.BorderLayout.CENTER); displayPanel.add(buttonPanel, java.awt.BorderLayout.SOUTH); java.awt.Dimension size = new java.awt.Dimension(400, 400); displayPanel.setSize(size); particleWindow.getContentPane().add(displayPanel); //particleWindow.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); particleWindow.setSize(size); zoomIn.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent ae) { particleDisplay.setZoomIn(true); // particleDisplay.setZoomOut(false); } }); zoomOut.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent ae) { particleDisplay.setZoomOut(true); // particleDisplay.setZoomIn(false); } }); Toolkit tk = Toolkit.getDefaultToolkit(); if(400*particleDisplays < tk.getScreenSize().width){ particleWindow.setLocation(400 * particleDisplays, tk.getScreenSize().height - 400); }else{ particleWindow.setLocation(tk.getScreenSize().width - 400, tk.getScreenSize().height - 400); } particleDisplays++; particleWindow.setVisible(true); } }
particleDisplay.setZoomOut(true);
particleDisplay.setZoomIn(true);
public void actionPerformed(ActionEvent ae) { particleDisplay.setZoomOut(true); // particleDisplay.setZoomIn(false); }
selectionWindow.setSize(400, 200);
selectionWindow.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { selectionDisplay.removeAll(); } }); selectionWindow.setSize(400, 200);
public void createSelectionDisplay(Selection creator){ if(selectionDisplay == null){ logger.debug("creating selection display"); selectionWindow = new JFrame(); //selectionWindow.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); selectionWindow.setSize(400, 200); Iterator e = creator.getSeismograms().iterator(); TimeConfigRegistrar tr = creator.getInternalConfig(); DataSetSeismogram first = ((DataSetSeismogram)e.next()); AmpConfigRegistrar ar = new AmpConfigRegistrar(new OffsetMeanAmpConfig(((LocalSeismogramImpl)first.getSeismogram()), tr.getTimeRange(first.getSeismogram()))); selectionDisplay = new VerticalSeismogramDisplay(mouseForwarder, motionForwarder, this); creator.setDisplay(selectionDisplay.addDisplay(first, tr, creator.getParent().getName() + "." + creator.getColor())); ar.visibleAmpCalc(tr); while(e.hasNext()){ selectionDisplay.addSeismogram(((DataSetSeismogram)e.next()), 0); } selectionWindow.getContentPane().add(selectionDisplay); Toolkit tk = Toolkit.getDefaultToolkit(); if(selectionDisplays + 220 < tk.getScreenSize().height){ selectionWindow.setLocation(tk.getScreenSize().width - 400, tk.getScreenSize().height - (selectionDisplays + 220)); }else{ selectionWindow.setLocation(tk.getScreenSize().width - 400, 0); } selectionDisplays += 220; selectionWindow.setVisible(true); }else{ logger.debug("adding another selection"); Iterator e = creator.getSeismograms().iterator(); TimeConfigRegistrar tr = creator.getInternalConfig(); DataSetSeismogram first = ((DataSetSeismogram)e.next()); AmpConfigRegistrar ar = new AmpConfigRegistrar(new OffsetMeanAmpConfig(((LocalSeismogramImpl)first.getSeismogram()), tr.getTimeRange(first.getSeismogram()))); ar.visibleAmpCalc(tr); creator.setDisplay(selectionDisplay.addDisplay(first, tr, creator.getParent().getName() + "." + creator.getColor())); while(e.hasNext()){ selectionDisplay.addSeismogram(((DataSetSeismogram)e.next()), 0); } } }
creator.setDisplay(selectionDisplay.addDisplay(first, tr, creator.getParent().getName() + "." + creator.getColor()));
creator.setDisplay(selectionDisplay.addDisplay(first, tr, ar, creator.getParent().getName() + "." + creator.getColor()));
public void createSelectionDisplay(Selection creator){ if(selectionDisplay == null){ logger.debug("creating selection display"); selectionWindow = new JFrame(); //selectionWindow.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); selectionWindow.setSize(400, 200); Iterator e = creator.getSeismograms().iterator(); TimeConfigRegistrar tr = creator.getInternalConfig(); DataSetSeismogram first = ((DataSetSeismogram)e.next()); AmpConfigRegistrar ar = new AmpConfigRegistrar(new OffsetMeanAmpConfig(((LocalSeismogramImpl)first.getSeismogram()), tr.getTimeRange(first.getSeismogram()))); selectionDisplay = new VerticalSeismogramDisplay(mouseForwarder, motionForwarder, this); creator.setDisplay(selectionDisplay.addDisplay(first, tr, creator.getParent().getName() + "." + creator.getColor())); ar.visibleAmpCalc(tr); while(e.hasNext()){ selectionDisplay.addSeismogram(((DataSetSeismogram)e.next()), 0); } selectionWindow.getContentPane().add(selectionDisplay); Toolkit tk = Toolkit.getDefaultToolkit(); if(selectionDisplays + 220 < tk.getScreenSize().height){ selectionWindow.setLocation(tk.getScreenSize().width - 400, tk.getScreenSize().height - (selectionDisplays + 220)); }else{ selectionWindow.setLocation(tk.getScreenSize().width - 400, 0); } selectionDisplays += 220; selectionWindow.setVisible(true); }else{ logger.debug("adding another selection"); Iterator e = creator.getSeismograms().iterator(); TimeConfigRegistrar tr = creator.getInternalConfig(); DataSetSeismogram first = ((DataSetSeismogram)e.next()); AmpConfigRegistrar ar = new AmpConfigRegistrar(new OffsetMeanAmpConfig(((LocalSeismogramImpl)first.getSeismogram()), tr.getTimeRange(first.getSeismogram()))); ar.visibleAmpCalc(tr); creator.setDisplay(selectionDisplay.addDisplay(first, tr, creator.getParent().getName() + "." + creator.getColor())); while(e.hasNext()){ selectionDisplay.addSeismogram(((DataSetSeismogram)e.next()), 0); } } }
if(selectionDisplays + 220 < tk.getScreenSize().height){ selectionWindow.setLocation(tk.getScreenSize().width - 400, tk.getScreenSize().height - (selectionDisplays + 220));
if(selectionDisplays + selectionWindow.getSize().height < tk.getScreenSize().height){ selectionWindow.setLocation(tk.getScreenSize().width - selectionWindow.getSize().width, tk.getScreenSize().height - (selectionDisplays + selectionWindow.getSize().height));
public void createSelectionDisplay(Selection creator){ if(selectionDisplay == null){ logger.debug("creating selection display"); selectionWindow = new JFrame(); //selectionWindow.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); selectionWindow.setSize(400, 200); Iterator e = creator.getSeismograms().iterator(); TimeConfigRegistrar tr = creator.getInternalConfig(); DataSetSeismogram first = ((DataSetSeismogram)e.next()); AmpConfigRegistrar ar = new AmpConfigRegistrar(new OffsetMeanAmpConfig(((LocalSeismogramImpl)first.getSeismogram()), tr.getTimeRange(first.getSeismogram()))); selectionDisplay = new VerticalSeismogramDisplay(mouseForwarder, motionForwarder, this); creator.setDisplay(selectionDisplay.addDisplay(first, tr, creator.getParent().getName() + "." + creator.getColor())); ar.visibleAmpCalc(tr); while(e.hasNext()){ selectionDisplay.addSeismogram(((DataSetSeismogram)e.next()), 0); } selectionWindow.getContentPane().add(selectionDisplay); Toolkit tk = Toolkit.getDefaultToolkit(); if(selectionDisplays + 220 < tk.getScreenSize().height){ selectionWindow.setLocation(tk.getScreenSize().width - 400, tk.getScreenSize().height - (selectionDisplays + 220)); }else{ selectionWindow.setLocation(tk.getScreenSize().width - 400, 0); } selectionDisplays += 220; selectionWindow.setVisible(true); }else{ logger.debug("adding another selection"); Iterator e = creator.getSeismograms().iterator(); TimeConfigRegistrar tr = creator.getInternalConfig(); DataSetSeismogram first = ((DataSetSeismogram)e.next()); AmpConfigRegistrar ar = new AmpConfigRegistrar(new OffsetMeanAmpConfig(((LocalSeismogramImpl)first.getSeismogram()), tr.getTimeRange(first.getSeismogram()))); ar.visibleAmpCalc(tr); creator.setDisplay(selectionDisplay.addDisplay(first, tr, creator.getParent().getName() + "." + creator.getColor())); while(e.hasNext()){ selectionDisplay.addSeismogram(((DataSetSeismogram)e.next()), 0); } } }
selectionWindow.setLocation(tk.getScreenSize().width - 400, 0);
selectionWindow.setLocation(tk.getScreenSize().width - selectionWindow.getSize().width, 0);
public void createSelectionDisplay(Selection creator){ if(selectionDisplay == null){ logger.debug("creating selection display"); selectionWindow = new JFrame(); //selectionWindow.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); selectionWindow.setSize(400, 200); Iterator e = creator.getSeismograms().iterator(); TimeConfigRegistrar tr = creator.getInternalConfig(); DataSetSeismogram first = ((DataSetSeismogram)e.next()); AmpConfigRegistrar ar = new AmpConfigRegistrar(new OffsetMeanAmpConfig(((LocalSeismogramImpl)first.getSeismogram()), tr.getTimeRange(first.getSeismogram()))); selectionDisplay = new VerticalSeismogramDisplay(mouseForwarder, motionForwarder, this); creator.setDisplay(selectionDisplay.addDisplay(first, tr, creator.getParent().getName() + "." + creator.getColor())); ar.visibleAmpCalc(tr); while(e.hasNext()){ selectionDisplay.addSeismogram(((DataSetSeismogram)e.next()), 0); } selectionWindow.getContentPane().add(selectionDisplay); Toolkit tk = Toolkit.getDefaultToolkit(); if(selectionDisplays + 220 < tk.getScreenSize().height){ selectionWindow.setLocation(tk.getScreenSize().width - 400, tk.getScreenSize().height - (selectionDisplays + 220)); }else{ selectionWindow.setLocation(tk.getScreenSize().width - 400, 0); } selectionDisplays += 220; selectionWindow.setVisible(true); }else{ logger.debug("adding another selection"); Iterator e = creator.getSeismograms().iterator(); TimeConfigRegistrar tr = creator.getInternalConfig(); DataSetSeismogram first = ((DataSetSeismogram)e.next()); AmpConfigRegistrar ar = new AmpConfigRegistrar(new OffsetMeanAmpConfig(((LocalSeismogramImpl)first.getSeismogram()), tr.getTimeRange(first.getSeismogram()))); ar.visibleAmpCalc(tr); creator.setDisplay(selectionDisplay.addDisplay(first, tr, creator.getParent().getName() + "." + creator.getColor())); while(e.hasNext()){ selectionDisplay.addSeismogram(((DataSetSeismogram)e.next()), 0); } } }
selectionDisplays += 220;
selectionDisplays += selectionWindow.getSize().height;
public void createSelectionDisplay(Selection creator){ if(selectionDisplay == null){ logger.debug("creating selection display"); selectionWindow = new JFrame(); //selectionWindow.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); selectionWindow.setSize(400, 200); Iterator e = creator.getSeismograms().iterator(); TimeConfigRegistrar tr = creator.getInternalConfig(); DataSetSeismogram first = ((DataSetSeismogram)e.next()); AmpConfigRegistrar ar = new AmpConfigRegistrar(new OffsetMeanAmpConfig(((LocalSeismogramImpl)first.getSeismogram()), tr.getTimeRange(first.getSeismogram()))); selectionDisplay = new VerticalSeismogramDisplay(mouseForwarder, motionForwarder, this); creator.setDisplay(selectionDisplay.addDisplay(first, tr, creator.getParent().getName() + "." + creator.getColor())); ar.visibleAmpCalc(tr); while(e.hasNext()){ selectionDisplay.addSeismogram(((DataSetSeismogram)e.next()), 0); } selectionWindow.getContentPane().add(selectionDisplay); Toolkit tk = Toolkit.getDefaultToolkit(); if(selectionDisplays + 220 < tk.getScreenSize().height){ selectionWindow.setLocation(tk.getScreenSize().width - 400, tk.getScreenSize().height - (selectionDisplays + 220)); }else{ selectionWindow.setLocation(tk.getScreenSize().width - 400, 0); } selectionDisplays += 220; selectionWindow.setVisible(true); }else{ logger.debug("adding another selection"); Iterator e = creator.getSeismograms().iterator(); TimeConfigRegistrar tr = creator.getInternalConfig(); DataSetSeismogram first = ((DataSetSeismogram)e.next()); AmpConfigRegistrar ar = new AmpConfigRegistrar(new OffsetMeanAmpConfig(((LocalSeismogramImpl)first.getSeismogram()), tr.getTimeRange(first.getSeismogram()))); ar.visibleAmpCalc(tr); creator.setDisplay(selectionDisplay.addDisplay(first, tr, creator.getParent().getName() + "." + creator.getColor())); while(e.hasNext()){ selectionDisplay.addSeismogram(((DataSetSeismogram)e.next()), 0); } } }
creator.setDisplay(threeSelectionDisplay.addDisplay(first, tr, creator.getParent().getName() + "." + creator.getColor()));
creator.setDisplay(threeSelectionDisplay.addDisplay(first, tr, ar, creator.getParent().getName() + "." + creator.getColor()));
public void createThreeSelectionDisplay(Selection creator){ if(threeSelectionDisplay == null){ logger.debug("creating 3C selection display"); threeSelectionWindow = new JFrame(); threeSelectionWindow.setSize(400, 400); threeSelectionDisplay = new VerticalSeismogramDisplay(mouseForwarder, motionForwarder, this); Iterator e = creator.getSeismograms().iterator(); TimeConfigRegistrar tr = creator.getInternalConfig(); DataSetSeismogram first = ((DataSetSeismogram)e.next()); XMLDataSet dataSet = (XMLDataSet)first.getDataSet(); AmpConfigRegistrar ar = new AmpConfigRegistrar(new OffsetMeanAmpConfig(((LocalSeismogramImpl)first.getSeismogram()), tr.getTimeRange(first.getSeismogram()))); creator.setDisplay(threeSelectionDisplay.addDisplay(first, tr, creator.getParent().getName() + "." + creator.getColor())); ar.visibleAmpCalc(tr); while(e.hasNext()){ threeSelectionDisplay.addSeismogram(((DataSetSeismogram)e.next()), 0); } threeSelectionWindow.getContentPane().add(threeSelectionDisplay); Toolkit tk = Toolkit.getDefaultToolkit(); if((selectionDisplays + 400) < tk.getScreenSize().height){ threeSelectionWindow.setLocation(tk.getScreenSize().width - 400, tk.getScreenSize().height - (selectionDisplays + 400)); }else{ threeSelectionWindow.setLocation(tk.getScreenSize().width - 400, 0); } selectionDisplays+= 400; threeSelectionWindow.setVisible(true); }else{ logger.debug("adding another selection"); Iterator e = creator.getSeismograms().iterator(); TimeConfigRegistrar tr = creator.getInternalConfig(); DataSetSeismogram first = ((DataSetSeismogram)e.next()); AmpConfigRegistrar ar = new AmpConfigRegistrar(new OffsetMeanAmpConfig(((LocalSeismogramImpl)first.getSeismogram()), tr.getTimeRange(first.getSeismogram()))); ar.visibleAmpCalc(tr); creator.setDisplay(threeSelectionDisplay.addDisplay(first, tr, creator.getParent().getName() + "." + creator.getColor())); while(e.hasNext()){ threeSelectionDisplay.addSeismogram(((DataSetSeismogram)e.next()), 0); } } }
if((selectionDisplays + 400) < tk.getScreenSize().height){ threeSelectionWindow.setLocation(tk.getScreenSize().width - 400, tk.getScreenSize().height - (selectionDisplays + 400));
if((selectionDisplays + threeSelectionWindow.getSize().height) < tk.getScreenSize().height){ threeSelectionWindow.setLocation(tk.getScreenSize().width - threeSelectionWindow.getSize().width, tk.getScreenSize().height - (selectionDisplays + threeSelectionWindow.getSize().height));
public void createThreeSelectionDisplay(Selection creator){ if(threeSelectionDisplay == null){ logger.debug("creating 3C selection display"); threeSelectionWindow = new JFrame(); threeSelectionWindow.setSize(400, 400); threeSelectionDisplay = new VerticalSeismogramDisplay(mouseForwarder, motionForwarder, this); Iterator e = creator.getSeismograms().iterator(); TimeConfigRegistrar tr = creator.getInternalConfig(); DataSetSeismogram first = ((DataSetSeismogram)e.next()); XMLDataSet dataSet = (XMLDataSet)first.getDataSet(); AmpConfigRegistrar ar = new AmpConfigRegistrar(new OffsetMeanAmpConfig(((LocalSeismogramImpl)first.getSeismogram()), tr.getTimeRange(first.getSeismogram()))); creator.setDisplay(threeSelectionDisplay.addDisplay(first, tr, creator.getParent().getName() + "." + creator.getColor())); ar.visibleAmpCalc(tr); while(e.hasNext()){ threeSelectionDisplay.addSeismogram(((DataSetSeismogram)e.next()), 0); } threeSelectionWindow.getContentPane().add(threeSelectionDisplay); Toolkit tk = Toolkit.getDefaultToolkit(); if((selectionDisplays + 400) < tk.getScreenSize().height){ threeSelectionWindow.setLocation(tk.getScreenSize().width - 400, tk.getScreenSize().height - (selectionDisplays + 400)); }else{ threeSelectionWindow.setLocation(tk.getScreenSize().width - 400, 0); } selectionDisplays+= 400; threeSelectionWindow.setVisible(true); }else{ logger.debug("adding another selection"); Iterator e = creator.getSeismograms().iterator(); TimeConfigRegistrar tr = creator.getInternalConfig(); DataSetSeismogram first = ((DataSetSeismogram)e.next()); AmpConfigRegistrar ar = new AmpConfigRegistrar(new OffsetMeanAmpConfig(((LocalSeismogramImpl)first.getSeismogram()), tr.getTimeRange(first.getSeismogram()))); ar.visibleAmpCalc(tr); creator.setDisplay(threeSelectionDisplay.addDisplay(first, tr, creator.getParent().getName() + "." + creator.getColor())); while(e.hasNext()){ threeSelectionDisplay.addSeismogram(((DataSetSeismogram)e.next()), 0); } } }
threeSelectionWindow.setLocation(tk.getScreenSize().width - 400, 0);
threeSelectionWindow.setLocation(tk.getScreenSize().width - threeSelectionWindow.getSize().width, 0);
public void createThreeSelectionDisplay(Selection creator){ if(threeSelectionDisplay == null){ logger.debug("creating 3C selection display"); threeSelectionWindow = new JFrame(); threeSelectionWindow.setSize(400, 400); threeSelectionDisplay = new VerticalSeismogramDisplay(mouseForwarder, motionForwarder, this); Iterator e = creator.getSeismograms().iterator(); TimeConfigRegistrar tr = creator.getInternalConfig(); DataSetSeismogram first = ((DataSetSeismogram)e.next()); XMLDataSet dataSet = (XMLDataSet)first.getDataSet(); AmpConfigRegistrar ar = new AmpConfigRegistrar(new OffsetMeanAmpConfig(((LocalSeismogramImpl)first.getSeismogram()), tr.getTimeRange(first.getSeismogram()))); creator.setDisplay(threeSelectionDisplay.addDisplay(first, tr, creator.getParent().getName() + "." + creator.getColor())); ar.visibleAmpCalc(tr); while(e.hasNext()){ threeSelectionDisplay.addSeismogram(((DataSetSeismogram)e.next()), 0); } threeSelectionWindow.getContentPane().add(threeSelectionDisplay); Toolkit tk = Toolkit.getDefaultToolkit(); if((selectionDisplays + 400) < tk.getScreenSize().height){ threeSelectionWindow.setLocation(tk.getScreenSize().width - 400, tk.getScreenSize().height - (selectionDisplays + 400)); }else{ threeSelectionWindow.setLocation(tk.getScreenSize().width - 400, 0); } selectionDisplays+= 400; threeSelectionWindow.setVisible(true); }else{ logger.debug("adding another selection"); Iterator e = creator.getSeismograms().iterator(); TimeConfigRegistrar tr = creator.getInternalConfig(); DataSetSeismogram first = ((DataSetSeismogram)e.next()); AmpConfigRegistrar ar = new AmpConfigRegistrar(new OffsetMeanAmpConfig(((LocalSeismogramImpl)first.getSeismogram()), tr.getTimeRange(first.getSeismogram()))); ar.visibleAmpCalc(tr); creator.setDisplay(threeSelectionDisplay.addDisplay(first, tr, creator.getParent().getName() + "." + creator.getColor())); while(e.hasNext()){ threeSelectionDisplay.addSeismogram(((DataSetSeismogram)e.next()), 0); } } }
selectionDisplays+= 400;
selectionDisplays+= threeSelectionWindow.getSize().height;
public void createThreeSelectionDisplay(Selection creator){ if(threeSelectionDisplay == null){ logger.debug("creating 3C selection display"); threeSelectionWindow = new JFrame(); threeSelectionWindow.setSize(400, 400); threeSelectionDisplay = new VerticalSeismogramDisplay(mouseForwarder, motionForwarder, this); Iterator e = creator.getSeismograms().iterator(); TimeConfigRegistrar tr = creator.getInternalConfig(); DataSetSeismogram first = ((DataSetSeismogram)e.next()); XMLDataSet dataSet = (XMLDataSet)first.getDataSet(); AmpConfigRegistrar ar = new AmpConfigRegistrar(new OffsetMeanAmpConfig(((LocalSeismogramImpl)first.getSeismogram()), tr.getTimeRange(first.getSeismogram()))); creator.setDisplay(threeSelectionDisplay.addDisplay(first, tr, creator.getParent().getName() + "." + creator.getColor())); ar.visibleAmpCalc(tr); while(e.hasNext()){ threeSelectionDisplay.addSeismogram(((DataSetSeismogram)e.next()), 0); } threeSelectionWindow.getContentPane().add(threeSelectionDisplay); Toolkit tk = Toolkit.getDefaultToolkit(); if((selectionDisplays + 400) < tk.getScreenSize().height){ threeSelectionWindow.setLocation(tk.getScreenSize().width - 400, tk.getScreenSize().height - (selectionDisplays + 400)); }else{ threeSelectionWindow.setLocation(tk.getScreenSize().width - 400, 0); } selectionDisplays+= 400; threeSelectionWindow.setVisible(true); }else{ logger.debug("adding another selection"); Iterator e = creator.getSeismograms().iterator(); TimeConfigRegistrar tr = creator.getInternalConfig(); DataSetSeismogram first = ((DataSetSeismogram)e.next()); AmpConfigRegistrar ar = new AmpConfigRegistrar(new OffsetMeanAmpConfig(((LocalSeismogramImpl)first.getSeismogram()), tr.getTimeRange(first.getSeismogram()))); ar.visibleAmpCalc(tr); creator.setDisplay(threeSelectionDisplay.addDisplay(first, tr, creator.getParent().getName() + "." + creator.getColor())); while(e.hasNext()){ threeSelectionDisplay.addSeismogram(((DataSetSeismogram)e.next()), 0); } } }
selectionDisplays -= 220;
selectionDisplays -= selectionWindow.getSize().height;
public void removeAll(){ logger.debug("removing all displays"); if(parent != null){ parent.removeSelectionDisplay(this); } this.stopImageCreation(); seismograms.removeAll(); remove(seismograms); basicDisplays = new LinkedList(); sorter = new AlphaSeisSorter(); globalTimeRegistrar = new TimeConfigRegistrar(); globalAmpRegistrar = new AmpConfigRegistrar(new RMeanAmpConfig()); this.time.setText(" Time: "); this.amp.setText(" Amplitude: "); if(selectionDisplay != null){ selectionDisplay.removeAll(); selectionWindow.dispose(); selectionDisplays -= 220; selectionDisplay = null; } if(threeSelectionDisplay != null){ threeSelectionDisplay.removeAll(); threeSelectionWindow.dispose(); selectionDisplays -= 400; selectionDisplay = null; } if(particleDisplay != null){ particleWindow.dispose(); particleDisplays--; particleDisplay = null; } repaint(); }
selectionDisplays -= 400;
selectionDisplays -= threeSelectionWindow.getSize().height;
public void removeAll(){ logger.debug("removing all displays"); if(parent != null){ parent.removeSelectionDisplay(this); } this.stopImageCreation(); seismograms.removeAll(); remove(seismograms); basicDisplays = new LinkedList(); sorter = new AlphaSeisSorter(); globalTimeRegistrar = new TimeConfigRegistrar(); globalAmpRegistrar = new AmpConfigRegistrar(new RMeanAmpConfig()); this.time.setText(" Time: "); this.amp.setText(" Amplitude: "); if(selectionDisplay != null){ selectionDisplay.removeAll(); selectionWindow.dispose(); selectionDisplays -= 220; selectionDisplay = null; } if(threeSelectionDisplay != null){ threeSelectionDisplay.removeAll(); threeSelectionWindow.dispose(); selectionDisplays -= 400; selectionDisplay = null; } if(particleDisplay != null){ particleWindow.dispose(); particleDisplays--; particleDisplay = null; } repaint(); }
selectionDisplays -= 220;
selectionDisplays -= selectionWindow.getSize().height;
public void removeSelectionDisplay(VerticalSeismogramDisplay display){ if(display == selectionDisplay){ selectionWindow.dispose(); selectionDisplays -= 220; selectionDisplay = null; }else{ threeSelectionWindow.dispose(); selectionDisplays -= 400; threeSelectionDisplay = null; } }
selectionDisplays -= 400;
selectionDisplays -= threeSelectionWindow.getSize().height;
public void removeSelectionDisplay(VerticalSeismogramDisplay display){ if(display == selectionDisplay){ selectionWindow.dispose(); selectionDisplays -= 220; selectionDisplay = null; }else{ threeSelectionWindow.dispose(); selectionDisplays -= 400; threeSelectionDisplay = null; } }
assertEquals(AGSymbol.alloc("+"), nativeMethod.base_getName());
assertEquals(AGSymbol.jAlloc("+"), nativeMethod.base_getName());
public void testAcquisition() { try { ATMethod nativeMethod = evalAndReturn("mirrorOn1.grabMethod(`+).base").base_asMethod(); assertEquals(NativeMethod.class, nativeMethod.getClass()); assertEquals(AGSymbol.alloc("+"), nativeMethod.base_getName()); } catch (InterpreterException e) { fail(e.getMessage()); } }
assertEquals(AGSymbol.alloc("+"), m.base_getName());
assertEquals(AGSymbol.jAlloc("+"), m.base_getName());
public void testSelection() { try { ATObject clo = evalAndReturn("mirrorOn1.select(mirrorOn1.base, `+).base"); assertTrue(clo.base_isClosure()); ATClosure c = clo.base_asClosure(); ATMethod m = c.base_getMethod(); assertEquals(NativeMethod.class, m.getClass()); assertEquals(AGSymbol.alloc("+"), m.base_getName()); assertEquals(NATNumber.atValue(2), c.base_apply(new NATTable(new ATObject[] { NATNumber.ONE }))); } catch (InterpreterException e) { fail(e.getMessage()); } }
size.width;
size.width/1000;
public static int[][] calculatePlottable(LocalSeismogram seismogram, UnitRangeImpl a, MicroSecondTimeRange t, Dimension size) throws UnsupportedDataEncoding { LocalSeismogramImpl seis = (LocalSeismogramImpl)seismogram; double pointsPerPixal = t.getInterval().divideBy(seis.getSampling().getPeriod()).getValue() / size.width; if (pointsPerPixal > 3) { return getPlottableCompress(seis, a, t, size); } else { return getPlottableSimple(seis, a, t, size); } }
if( line == null ) return null;
private Message parseLine( String line, DataDictionary dataDictionary ) { if( skipLine(line, type) ) { return null; } try { String[] split = line.split("8=",2); if( split.length != 2 ) return null; line = "8=" + split[1]; if( delimiter == 0 ) delimiter = getDelimiter(line); String regexp = "[" + delimiter + "]"; if( delimiter == '^' ) regexp = "[\\^]."; if( delimiter != '\001' && delimiter != 0 ) line = line.replaceAll(regexp, "\001"); int lastChar = line.lastIndexOf('\001'); if( lastChar != line.length() ) line = line.substring(0, lastChar+1); if( dataDictionary == null ) return new Message( line, false ); else return new Message( line, dataDictionary, false ); } catch( quickfix.InvalidMessage e1 ) { return null; } catch( ArrayIndexOutOfBoundsException e2 ) { return null; } }
review.loadLogFile("C:/programming/acquire/logs/06.11.18-17.10.46 - 940 - tlstyer (501), Marnie (462), Chumba (446), trump (344).log");
private void reviewMode() { setMode(MODE_REVIEW); review.loadLogFile("C:/programming/acquire/logs/06.11.18-17.10.46 - 940 - tlstyer (501), Marnie (462), Chumba (446), trump (344).log"); synchronized (this) { while (!leaveReviewModeFlag) { try { wait(); } catch (InterruptedException e) { e.printStackTrace(); } } } leaveReviewModeFlag = false; }
if (cal != null) { String[] ss = cal.getPath().split("/"); int pathLength = ss.length - 1; if ((pathLength == 2) && (ss[1].equals(getSyspars().getUserCalendarRoot()))) { cal = null; } }
public BwFreeBusy getFreeBusy(BwCalendar cal, BwPrincipal who, BwDateTime start, BwDateTime end, BwDuration granularity, boolean returnAll) throws CalFacadeException { if (!(who instanceof BwUser)) { throw new CalFacadeException("Unsupported: non user principal for free-busy"); } BwUser u = (BwUser)who; Collection subs; if (cal != null) { getCal().checkAccess(cal, PrivilegeDefs.privReadFreeBusy, false); BwSubscription sub = BwSubscription.makeSubscription(cal); subs = new ArrayList(); subs.add(sub); } else if (currentUser().equals(who)) { subs = getSubscriptions(); } else { cal = getCal().getCalendars(u, PrivilegeDefs.privReadFreeBusy); if (cal == null) { throw new CalFacadeAccessException(); } getCal().checkAccess(cal, PrivilegeDefs.privReadFreeBusy, false); subs = dbi.fetchPreferences(u).getSubscriptions(); } BwFreeBusy fb = new BwFreeBusy(who, start, end); Collection events = new TreeSet(); Iterator subit = subs.iterator(); while (subit.hasNext()) { BwSubscription sub = (BwSubscription)subit.next(); if (!sub.getAffectsFreeBusy()) { continue; } // XXX If it's an external subscription we probably just get free busy and // merge it in. Collection evs = getEvents(sub, null, start, end, CalFacadeDefs.retrieveRecurExpanded, true); // Filter out transparent events Iterator it = evs.iterator(); while (it.hasNext()) { EventInfo ei = (EventInfo)it.next(); BwEvent ev = ei.getEvent(); if (!sub.getIgnoreTransparency() && BwEvent.transparencyTransparent.equals(ev.getTransparency())) { // Ignore this one. continue; } events.add(ei); } } try { if (granularity != null) { // chunked. GetPeriodsPars gpp = new GetPeriodsPars(); gpp.events = events; gpp.startDt = start; gpp.dur = granularity; gpp.tzcache = getTimezones(); BwFreeBusyComponent fbc = null; if (!returnAll) { // One component fbc = new BwFreeBusyComponent(); fb.addTime(fbc); } int limit = 10000; // XXX do this better /* endDt is null first time through, then represents end of last * segment. */ while ((gpp.endDt == null) || (gpp.endDt.before(end))) { //if (debug) { // trace("gpp.startDt=" + gpp.startDt + " end=" + end); //} if (limit < 0) { throw new CalFacadeException("org.bedework.svci.limit.exceeded"); } limit--; Collection periodEvents = CalFacadeUtil.getPeriodsEvents(gpp); if (returnAll) { fbc = new BwFreeBusyComponent(); fb.addTime(fbc); DateTime psdt = new DateTime(gpp.startDt.getDtval()); DateTime pedt = new DateTime(gpp.endDt.getDtval()); psdt.setUtc(true); pedt.setUtc(true); fbc.addPeriod(new Period(psdt, pedt)); if (periodEvents.size() == 0) { fbc.setType(BwFreeBusyComponent.typeFree); } } else if (periodEvents.size() != 0) { // Some events fall in the period. Add an entry. DateTime psdt = new DateTime(gpp.startDt.getDtval()); DateTime pedt = new DateTime(gpp.endDt.getDtval()); psdt.setUtc(true); pedt.setUtc(true); fbc.addPeriod(new Period(psdt, pedt)); } } return fb; } Iterator it = events.iterator(); TreeSet eventPeriods = new TreeSet(); while (it.hasNext()) { EventInfo ei = (EventInfo)it.next(); BwEvent ev = ei.getEvent(); // Ignore if times were specified and this event is outside the times BwDateTime estart = ev.getDtstart(); BwDateTime eend = ev.getDtend(); /* Don't report out of the requested period */ String dstart; String dend; if (estart.before(start)) { dstart = start.getDtval(); } else { dstart = estart.getDtval(); } if (eend.after(end)) { dend = end.getDtval(); } else { dend = eend.getDtval(); } DateTime psdt = new DateTime(dstart); DateTime pedt = new DateTime(dend); psdt.setUtc(true); pedt.setUtc(true); eventPeriods.add(new EventPeriod(psdt, pedt)); } /* iterate through the sorted periods combining them where they are adjacent or overlap */ Period p = null; /* For the moment just build a single BwFreeBusyComponent */ BwFreeBusyComponent fbc = null; it = eventPeriods.iterator(); while (it.hasNext()) { EventPeriod ep = (EventPeriod)it.next(); if (p == null) { p = new Period(ep.start, ep.end); } else if (ep.start.after(p.getEnd())) { // Non adjacent periods if (fbc == null) { fbc = new BwFreeBusyComponent(); } fbc.addPeriod(p); p = new Period(ep.start, ep.end); } else if (ep.end.after(p.getEnd())) { // Extend the current period p = new Period(p.getStart(), ep.end); } // else it falls within the existing period } if (p != null) { if (fbc == null) { fbc = new BwFreeBusyComponent(); } fbc.addPeriod(p); } if (fbc != null) { fb.addTime(fbc); } } catch (Throwable t) { throw new CalFacadeException(t); } return fb; }
}else if(majTickTime <= 30000000){
}else if(majTickTime <= 30 * 1000000){
public void calculateTicks(){ int majTickNum = totalPixels/50; majTickTime = timeIntv/majTickNum; majTickRatio = 10; if(majTickTime <= 100000){ timeFormat = new SimpleDateFormat("ss.S"); if(majTickTime <= 1000){ majTickTime = 1000; }else if(majTickTime <= 10000){ majTickTime = 10000; }else if(majTickTime <= 100000){ majTickTime = 100000; } }else if(majTickTime <= 30000000){ majTickRatio = 10; timeFormat = new SimpleDateFormat("HH:mm:ss"); if(majTickTime <= 1000000){ majTickTime = 1000000; }else if(majTickTime <= 5000000){ majTickTime = 5000000; }else if(majTickTime <= 1000000){ majTickTime = 10000000; }else majTickTime = 30000000; } else if(majTickTime <= 180000000){ majTickRatio = 6; timeFormat = new SimpleDateFormat("HH:mm:ss"); if(majTickTime <= 60000000){ majTickTime = 60000000; }else if(majTickTime <= 120000000){ majTickTime = 120000000; }else majTickTime = 180000000; } else if(majTickTime <= 1800000000){ majTickRatio = 10; timeFormat = new SimpleDateFormat("HH:mm:ss"); if(majTickTime <= 300000000) majTickTime = 300000000; else if(majTickTime <= 600000000) majTickTime = 600000000; else if(majTickTime <= 1200000000){ majTickTime = 1200000000; }else majTickTime = 1800000000; } else if(majTickTime <= 43200000000l){ majTickRatio = 6; timeFormat = new SimpleDateFormat("MM/dd HH:mm"); if(majTickTime <= 3600000000l){ majTickTime = 3600000000l; }else if(majTickTime <= 7200000000l){ majTickTime = 7200000000l; }else if(majTickTime <= 10800000000l){ majTickTime = 10800000000l; }else if(majTickTime <= 21600000000l){ majTickTime = 21600000000l; }else majTickTime = 43200000000l; } else{ majTickRatio = 6; timeFormat = new SimpleDateFormat("MM/dd"); majTickTime = 86400000000l; } timeFormat.setTimeZone(TimeZone.getTimeZone("GMT")); numTicks = ((int)(timeIntv/(double)majTickTime) * majTickRatio); firstLabelTime = (beginTime/majTickTime + 1) * majTickTime; majTickOffset = (int)((firstLabelTime - beginTime)/(double)timeIntv * numTicks); tickOffset = (firstLabelTime - beginTime)/(double)timeIntv/majTickRatio * totalPixels; tickSpacing = totalPixels/(double)numTicks; }
numTicks = ((int)(timeIntv/(double)majTickTime) * majTickRatio);
double numTicksDbl = ((timeIntv/(double)majTickTime) * majTickRatio); numTicks = (int)numTicksDbl;
public void calculateTicks(){ int majTickNum = totalPixels/50; majTickTime = timeIntv/majTickNum; majTickRatio = 10; if(majTickTime <= 100000){ timeFormat = new SimpleDateFormat("ss.S"); if(majTickTime <= 1000){ majTickTime = 1000; }else if(majTickTime <= 10000){ majTickTime = 10000; }else if(majTickTime <= 100000){ majTickTime = 100000; } }else if(majTickTime <= 30000000){ majTickRatio = 10; timeFormat = new SimpleDateFormat("HH:mm:ss"); if(majTickTime <= 1000000){ majTickTime = 1000000; }else if(majTickTime <= 5000000){ majTickTime = 5000000; }else if(majTickTime <= 1000000){ majTickTime = 10000000; }else majTickTime = 30000000; } else if(majTickTime <= 180000000){ majTickRatio = 6; timeFormat = new SimpleDateFormat("HH:mm:ss"); if(majTickTime <= 60000000){ majTickTime = 60000000; }else if(majTickTime <= 120000000){ majTickTime = 120000000; }else majTickTime = 180000000; } else if(majTickTime <= 1800000000){ majTickRatio = 10; timeFormat = new SimpleDateFormat("HH:mm:ss"); if(majTickTime <= 300000000) majTickTime = 300000000; else if(majTickTime <= 600000000) majTickTime = 600000000; else if(majTickTime <= 1200000000){ majTickTime = 1200000000; }else majTickTime = 1800000000; } else if(majTickTime <= 43200000000l){ majTickRatio = 6; timeFormat = new SimpleDateFormat("MM/dd HH:mm"); if(majTickTime <= 3600000000l){ majTickTime = 3600000000l; }else if(majTickTime <= 7200000000l){ majTickTime = 7200000000l; }else if(majTickTime <= 10800000000l){ majTickTime = 10800000000l; }else if(majTickTime <= 21600000000l){ majTickTime = 21600000000l; }else majTickTime = 43200000000l; } else{ majTickRatio = 6; timeFormat = new SimpleDateFormat("MM/dd"); majTickTime = 86400000000l; } timeFormat.setTimeZone(TimeZone.getTimeZone("GMT")); numTicks = ((int)(timeIntv/(double)majTickTime) * majTickRatio); firstLabelTime = (beginTime/majTickTime + 1) * majTickTime; majTickOffset = (int)((firstLabelTime - beginTime)/(double)timeIntv * numTicks); tickOffset = (firstLabelTime - beginTime)/(double)timeIntv/majTickRatio * totalPixels; tickSpacing = totalPixels/(double)numTicks; }
tickSpacing = totalPixels/(double)numTicks;
tickSpacing = totalPixels/numTicksDbl;
public void calculateTicks(){ int majTickNum = totalPixels/50; majTickTime = timeIntv/majTickNum; majTickRatio = 10; if(majTickTime <= 100000){ timeFormat = new SimpleDateFormat("ss.S"); if(majTickTime <= 1000){ majTickTime = 1000; }else if(majTickTime <= 10000){ majTickTime = 10000; }else if(majTickTime <= 100000){ majTickTime = 100000; } }else if(majTickTime <= 30000000){ majTickRatio = 10; timeFormat = new SimpleDateFormat("HH:mm:ss"); if(majTickTime <= 1000000){ majTickTime = 1000000; }else if(majTickTime <= 5000000){ majTickTime = 5000000; }else if(majTickTime <= 1000000){ majTickTime = 10000000; }else majTickTime = 30000000; } else if(majTickTime <= 180000000){ majTickRatio = 6; timeFormat = new SimpleDateFormat("HH:mm:ss"); if(majTickTime <= 60000000){ majTickTime = 60000000; }else if(majTickTime <= 120000000){ majTickTime = 120000000; }else majTickTime = 180000000; } else if(majTickTime <= 1800000000){ majTickRatio = 10; timeFormat = new SimpleDateFormat("HH:mm:ss"); if(majTickTime <= 300000000) majTickTime = 300000000; else if(majTickTime <= 600000000) majTickTime = 600000000; else if(majTickTime <= 1200000000){ majTickTime = 1200000000; }else majTickTime = 1800000000; } else if(majTickTime <= 43200000000l){ majTickRatio = 6; timeFormat = new SimpleDateFormat("MM/dd HH:mm"); if(majTickTime <= 3600000000l){ majTickTime = 3600000000l; }else if(majTickTime <= 7200000000l){ majTickTime = 7200000000l; }else if(majTickTime <= 10800000000l){ majTickTime = 10800000000l; }else if(majTickTime <= 21600000000l){ majTickTime = 21600000000l; }else majTickTime = 43200000000l; } else{ majTickRatio = 6; timeFormat = new SimpleDateFormat("MM/dd"); majTickTime = 86400000000l; } timeFormat.setTimeZone(TimeZone.getTimeZone("GMT")); numTicks = ((int)(timeIntv/(double)majTickTime) * majTickRatio); firstLabelTime = (beginTime/majTickTime + 1) * majTickTime; majTickOffset = (int)((firstLabelTime - beginTime)/(double)timeIntv * numTicks); tickOffset = (firstLabelTime - beginTime)/(double)timeIntv/majTickRatio * totalPixels; tickSpacing = totalPixels/(double)numTicks; }
boolean try1 = false;
private boolean isDeleted(Collection deleted, CoreEventInfo tryCei) { if ((deleted == null) || (deleted.size() == 0)) { return false; } boolean try1 = false; Iterator it = deleted.iterator(); while (it.hasNext()) { CoreEventInfo cei = (CoreEventInfo)it.next(); BwEventProxy pr = (BwEventProxy)cei.getEvent(); if (debug) { trace("Deleted: " + pr.getTarget().getId()); } if (cei.equals(tryCei)) { if (!debug) { return true; } trace("Matched: " + tryCei.getEvent().getId()); try1 = true; break; } } // only here for debug mode boolean try2 = deleted.contains(tryCei); trace(" try2 for : " + tryCei.getEvent().getId() + " gives " + try2); return try1 || try2; }
BwEventProxy pr = (BwEventProxy)cei.getEvent(); if (debug) { trace("Deleted: " + pr.getTarget().getId()); }
private boolean isDeleted(Collection deleted, CoreEventInfo tryCei) { if ((deleted == null) || (deleted.size() == 0)) { return false; } boolean try1 = false; Iterator it = deleted.iterator(); while (it.hasNext()) { CoreEventInfo cei = (CoreEventInfo)it.next(); BwEventProxy pr = (BwEventProxy)cei.getEvent(); if (debug) { trace("Deleted: " + pr.getTarget().getId()); } if (cei.equals(tryCei)) { if (!debug) { return true; } trace("Matched: " + tryCei.getEvent().getId()); try1 = true; break; } } // only here for debug mode boolean try2 = deleted.contains(tryCei); trace(" try2 for : " + tryCei.getEvent().getId() + " gives " + try2); return try1 || try2; }
if (!debug) { return true; } trace("Matched: " + tryCei.getEvent().getId()); try1 = true; break;
return true;
private boolean isDeleted(Collection deleted, CoreEventInfo tryCei) { if ((deleted == null) || (deleted.size() == 0)) { return false; } boolean try1 = false; Iterator it = deleted.iterator(); while (it.hasNext()) { CoreEventInfo cei = (CoreEventInfo)it.next(); BwEventProxy pr = (BwEventProxy)cei.getEvent(); if (debug) { trace("Deleted: " + pr.getTarget().getId()); } if (cei.equals(tryCei)) { if (!debug) { return true; } trace("Matched: " + tryCei.getEvent().getId()); try1 = true; break; } } // only here for debug mode boolean try2 = deleted.contains(tryCei); trace(" try2 for : " + tryCei.getEvent().getId() + " gives " + try2); return try1 || try2; }
boolean try2 = deleted.contains(tryCei); trace(" try2 for : " + tryCei.getEvent().getId() + " gives " + try2); return try1 || try2;
return false;
private boolean isDeleted(Collection deleted, CoreEventInfo tryCei) { if ((deleted == null) || (deleted.size() == 0)) { return false; } boolean try1 = false; Iterator it = deleted.iterator(); while (it.hasNext()) { CoreEventInfo cei = (CoreEventInfo)it.next(); BwEventProxy pr = (BwEventProxy)cei.getEvent(); if (debug) { trace("Deleted: " + pr.getTarget().getId()); } if (cei.equals(tryCei)) { if (!debug) { return true; } trace("Matched: " + tryCei.getEvent().getId()); try1 = true; break; } } // only here for debug mode boolean try2 = deleted.contains(tryCei); trace(" try2 for : " + tryCei.getEvent().getId() + " gives " + try2); return try1 || try2; }
public void remove(MouseEvent me){
public void remove(){
public void remove(MouseEvent me){ logger.debug(name + " being removed"); this.stopImageCreation(); parent.removeDisplay(this); timeRegistrar.removeTimeSyncListener(this); ampRegistrar.removeAmpSyncListener(this); Iterator e = seismos.iterator(); while(e.hasNext()){ LocalSeismogram current = ((LocalSeismogram)e.next()); timeRegistrar.removeSeismogram(current); ampRegistrar.removeSeismogram(current); } }
Iterator e = seismos.iterator();
e = seismos.iterator();
public void remove(MouseEvent me){ logger.debug(name + " being removed"); this.stopImageCreation(); parent.removeDisplay(this); timeRegistrar.removeTimeSyncListener(this); ampRegistrar.removeAmpSyncListener(this); Iterator e = seismos.iterator(); while(e.hasNext()){ LocalSeismogram current = ((LocalSeismogram)e.next()); timeRegistrar.removeSeismogram(current); ampRegistrar.removeSeismogram(current); } }
newSelection = true;
public void selectRegion(MouseEvent one, MouseEvent two){ Insets insets = this.getInsets(); Dimension dim = getSize(); double x1percent, x2percent; if(one.getX() < two.getX()){ x1percent = (one.getX() - insets.left)/(double)(dim.getWidth() - insets.left - insets.right); x2percent = (two.getX() - insets.left)/(double)(dim.getWidth() - insets.left - insets.right); }else{ x2percent = (one.getX() - insets.left)/(double)(dim.getWidth() - insets.left - insets.right); x1percent = (two.getX() - insets.left)/(double)(dim.getWidth() - insets.left - insets.right); } MicroSecondDate current = timeRegistrar.getTimeRange().getBeginTime(); MicroSecondDate selectionBegin = new MicroSecondDate((long)(imagePainter.displayInterval.getValue() * x1percent + current.getMicroSecondTime())); MicroSecondDate selectionEnd = new MicroSecondDate((long)(imagePainter.displayInterval.getValue() * x2percent + current.getMicroSecondTime())); if(currentSelection == null){ Iterator e = selections.iterator(); while(e.hasNext()){ Selection curr = ((Selection)e.next()); if(curr.borders(selectionBegin, selectionEnd)){ currentSelection = curr; currentSelection.adjustRange(selectionBegin, selectionEnd); return; } } currentSelection = new Selection(selectionBegin, selectionEnd, timeRegistrar, seisPlotters, this, selectionColors[selections.size()%selectionColors.length]); selections.add(currentSelection); return; } currentSelection.adjustRange(selectionBegin, selectionEnd); }