super.setPropertyValue(propertyId, value);
}
@Override
public IFigure createFigure() {
RoundedRectangle figure = new RoundedRectangle() {
public Rectangle getClientArea(Rectangle rect) {
this.setBackgroundColor(ColorConstants.lightBlue);
Rectangle clientArea = super.getClientArea(rect);
clientArea.shrink(ShapeConstants.CLIENT_AREA_INSETS);
return clientArea;
}
};
label.setText((String) getPropertyValue(ShapeConstants.NAME));
label.setIcon(getIcon());
figure.setSize(150, 40);
GridLayout layout = new GridLayout();
layout.numColumns = 1;
figure.setLayoutManager(layout);
label.setTextAlignment(PositionConstants.LEFT);
figure.add(label);
for (COLUMN col : columns) {
Label lbl = new Label(col.name + ": " + col.type);
figure.add(lbl);
}
return figure;
}