提交 53dbb923 编写于 作者: S serge-rider

ERD attributes coloring

上级 cc3c4967
......@@ -84,15 +84,19 @@ public class AttributeItemFigure extends Figure
DiagramPart diagramPart = part.getDiagramPart();
Font columnFont = diagramPart.getNormalFont();
Color columnColor = diagramPart.getContentPane().getForegroundColor();
Color columnColor = getColumnForegroundColor();
if (part.getAttribute().isInPrimaryKey()) {
columnFont = diagramPart.getBoldFont();
}
setFont(columnFont);
setForegroundColor(columnColor);
attrNameLabel.setFont(columnFont);
attrNameLabel.setForegroundColor(columnColor);
}
protected Color getColumnForegroundColor() {
return part.getDiagramPart().getContentPane().getForegroundColor();
}
public ERDEntityAttribute getAttribute() {
return part.getAttribute();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册