use of org.whole.lang.ui.figures.EntityFigure in project whole by wholeplatform.
the class ToolbarActionsFigure method createActionRow.
// TODO remove
protected EntityFigure createActionRow(int paneIndex) {
EntityFigure row = new EntityFigure(new RowLayout().withSpacing(4));
row.add(createFoldingToggle(paneIndex));
row.add(createContentPane(paneIndex));
return row;
}
use of org.whole.lang.ui.figures.EntityFigure in project whole by wholeplatform.
the class RepetitionPart method createFigure.
protected IFigure createFigure() {
return new TypeNameValueTableRowFigure() {
@Override
protected IEntityFigure createValueFigure(int paneIndex) {
EntityFigure row = new EntityFigure(new RowLayout());
row.add(createContentPane(paneIndex));
row.add(LabelFactory.createSymbolMediumContentLighter("\u2026"));
row.addContentLight(" ordered");
return row;
}
};
}
use of org.whole.lang.ui.figures.EntityFigure in project whole by wholeplatform.
the class UnboundedPart method createFigure.
protected IFigure createFigure() {
EntityFigure figure = new EntityFigure(new RowLayout());
figure.addContent("maxOccurs");
figure.addContentLight("=");
figure.addContentLighter("\"");
figure.addIdentifier("unbounded");
figure.addContentLighter("\"");
return figure;
}
use of org.whole.lang.ui.figures.EntityFigure in project whole by wholeplatform.
the class FreeformRootPart method createFigure.
protected IFigure createFigure() {
return new EntityFigure() {
{
setLayoutManager(new EntityXYLayout());
setOpaque(false);
}
// FIXME workaround
public int getIndent() {
return getInsets().left;
}
public int getAscent() {
return getPreferredSize().height / 2;
}
public static final int MINIMUM_SIZE = 600;
public Dimension getPreferredSize(int wHint, int hHint) {
Dimension size = super.getPreferredSize(wHint, hHint);
size.width = Math.max(size.width, MINIMUM_SIZE);
size.height = Math.max(size.height, MINIMUM_SIZE);
return size;
}
};
}
use of org.whole.lang.ui.figures.EntityFigure in project whole by wholeplatform.
the class AttributeDownFigure method initFigure.
@Override
protected void initFigure() {
initContentPanes(3);
EntityFigure headerFigure = new EntityFigure(new RowLayout().withSpacing(8));
headerFigure.add(createContentPane(0));
// headerFigure.addParenthesis(" (");
headerFigure.add(createContentPane(1));
// headerFigure.addParenthesis(")");
EntityFigure shapeFigure0 = new EntityFigure(new UnderColumnLayout().withSpacing(4).withMarginLeft(12).withMinorAlignment(Alignment.CENTER));
shapeFigure0.add(headerFigure);
shapeFigure0.add(createContentPane(2));
add(shapeFigure = shapeFigure0);
}
Aggregations