示例#1
0
 public VersionFigure() {
   super(new ColumnLayout());
   initContentPanes(1);
   EntityFigure row;
   add(row = new EntityFigure(new RowLayout().withSpacing(4)));
   row.addContent("version");
   row.add(createContentPane(0));
 }
示例#2
0
  public ParallelFigure() {
    setLayoutManager(new ColumnLayout().withMinorAlignment(Alignment.CENTER).withSpacing(10));
    initContentPanes(2);

    EntityFigure topFigure = new EntityFigure(new RowLayout().withSpacing(2));
    topFigure.addLabel(NotationImages.PARALLEL16);
    topFigure.add(createContentPane(0));
    topFigure.add(createFoldingToggle(1));

    add(topFigure);
    add(createContentPane(1));
    setBorder(createBorder(true));
  }
  public CaseExpressionFigure() {
    super(new ColumnLayout().withSpacing(4));
    initContentPanes(2);

    addKeyword("CASE");

    EntityFigure block = new EntityFigure(new ColumnLayout().withMarginLeft(30));
    block.add(createContentPane(0));

    EntityFigure row = new EntityFigure(new RowLayout().withSpacing(4));
    row.addKeyword("ELSE");
    row.add(createContentPane(1));
    block.add(row);

    add(block);
    addKeyword("END");
  }