use of org.whole.lang.ui.layout.TableLayout in project whole by wholeplatform.
the class SimpleEntityTableFigure method createTableFigure.
protected TableFigure createTableFigure(int columns) {
return new TableFigure(new TableLayout(columns).withColumnSpacing(10).withRowSpacing(2).withMargin(0, 16, 0, 0)) {
protected void paintFigure(Graphics g) {
super.paintFigure(g);
TableLayout l = getLayoutManager();
if (l.rows() == 0)
return;
g.setForegroundColor(ColorConstants.lightGray);
drawColumnSeparators(g);
// drawTableRowsBorder(g);
}
};
}
use of org.whole.lang.ui.layout.TableLayout in project whole by wholeplatform.
the class SimpleEntityTreeTableFigure method createTableFigure.
protected TableFigure createTableFigure(int columns) {
return new TableFigure(new TableLayout(columns).withColumnSpacing(10).withMarginTop(0).withMarginBottom(0)) {
protected void paintFigure(Graphics g) {
super.paintFigure(g);
g.setBackgroundColor(ColorConstants.lightGray);
drawAlternateColumnsBackground(g, 0);
g.setForegroundColor(FigureConstants.blueColor);
drawHeadersRowSeparator(g);
g.setForegroundColor(ColorConstants.lightGray);
drawColumnSeparators(g);
int oldAlpha = g.getAlpha();
g.setAlpha(80);
drawRowSeparators(g);
g.setAlpha(oldAlpha);
}
};
}
use of org.whole.lang.ui.layout.TableLayout in project whole by wholeplatform.
the class FeaturesTableFigure method paintFigure.
protected void paintFigure(Graphics g) {
super.paintFigure(g);
TableLayout l = getLayoutManager();
if (l.rows() == 0)
return;
g.setBackgroundColor(FigureConstants.modulesColor);
int oldAlpha = g.getAlpha();
g.setAlpha(getBackgroundAlpha());
Rectangle tb = getTableBounds();
Rectangle cb1 = l.getColumnBounds(1);
g.fillRectangle(cb1.x, tb.y, cb1.width, tb.height);
g.setAlpha(oldAlpha);
g.setForegroundColor(ColorConstants.lightGray);
drawHeadersRowSeparator(g);
}
use of org.whole.lang.ui.layout.TableLayout in project whole by wholeplatform.
the class ModelDeclarationsTableFigure method paintFigure.
protected void paintFigure(Graphics g) {
super.paintFigure(g);
TableLayout l = getLayoutManager();
if (l.rows() == 0)
return;
g.setBackgroundColor(ColorConstants.gray);
drawHeadersRowBackground(g);
g.setBackgroundColor(FigureConstants.modulesColor);
int oldAlpha = g.getAlpha();
g.setAlpha(getBackgroundAlpha());
Rectangle tb = getTableBounds();
Rectangle cb1 = l.getColumnBounds(1);
g.fillRectangle(cb1.x, tb.y, cb1.width, tb.height);
g.setAlpha(oldAlpha);
g.setForegroundColor(ColorConstants.lightGray);
drawRowSeparators(g);
drawHeadersRowSeparator(g);
drawTableBottomBorder(g);
}
use of org.whole.lang.ui.layout.TableLayout in project whole by wholeplatform.
the class VariantsFigure method paintFigure.
@Override
protected void paintFigure(Graphics g) {
super.paintFigure(g);
TableLayout l = getLayoutManager();
if (l.rows() == 0)
return;
g.setBackgroundColor(ColorConstants.orange);
g.setBackgroundColor(ColorConstants.orange);
int oldAlpha = g.getAlpha();
g.setAlpha(100);
Rectangle tb = getTableBounds();
Rectangle cb = l.getColumnBounds(1);
g.fillRectangle(cb.x, tb.y, cb.width + 1, tb.height);
g.setAlpha(oldAlpha);
g.setForegroundColor(ColorConstants.orange);
drawRowSeparators(g);
}
Aggregations