本文整理汇总了Java中org.insightech.er.editor.view.figure.table.column.NormalColumnFigure.add方法的典型用法代码示例。如果您正苦于以下问题:Java NormalColumnFigure.add方法的具体用法?Java NormalColumnFigure.add怎么用?Java NormalColumnFigure.add使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.insightech.er.editor.view.figure.table.column.NormalColumnFigure
的用法示例。
在下文中一共展示了NormalColumnFigure.add方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: addColumn
import org.insightech.er.editor.view.figure.table.column.NormalColumnFigure; //导入方法依赖的package包/类
@Override
public void addColumn(final NormalColumnFigure columnFigure, final int viewMode, final String physicalName, final String logicalName, final String type, final boolean primaryKey, final boolean foreignKey, final boolean isNotNull, final boolean uniqueKey, final boolean displayKey, final boolean displayDetail, final boolean displayType, final boolean isSelectedReferenced, final boolean isSelectedForeignKey, final boolean isAdded, final boolean isUpdated, final boolean isRemoved) {
final Label label = createColumnLabel();
label.setForegroundColor(getTextColor());
final StringBuilder text = new StringBuilder();
text.append(getColumnText(viewMode, physicalName, logicalName, type, isNotNull, uniqueKey, displayDetail, displayType));
if (displayKey) {
if (primaryKey && foreignKey) {
label.setForegroundColor(ColorConstants.blue);
text.append(" ");
text.append("(PFK)");
} else if (primaryKey) {
label.setForegroundColor(ColorConstants.red);
text.append(" ");
text.append("(PK)");
} else if (foreignKey) {
label.setForegroundColor(ColorConstants.darkGreen);
text.append(" ");
text.append("(FK)");
}
}
label.setText(text.toString());
setColumnFigureColor(columnFigure, isSelectedReferenced, isSelectedForeignKey, isAdded, isUpdated, isRemoved);
columnFigure.add(label);
}
示例2: addColumn
import org.insightech.er.editor.view.figure.table.column.NormalColumnFigure; //导入方法依赖的package包/类
public void addColumn(NormalColumnFigure columnFigure, int viewMode,
String physicalName, String logicalName, String type,
boolean primaryKey, boolean foreignKey, boolean isNotNull,
boolean uniqueKey, boolean displayKey, boolean displayDetail,
boolean displayType, boolean isSelectedReferenced,
boolean isSelectedForeignKey, boolean isAdded, boolean isUpdated,
boolean isRemoved) {
Label label = this.createColumnLabel();
label.setForegroundColor(this.getTextColor());
StringBuilder text = new StringBuilder();
text.append(this.getColumnText(viewMode, physicalName, logicalName,
type, isNotNull, uniqueKey, displayDetail, displayType));
if (displayKey) {
if (primaryKey && foreignKey) {
label.setForegroundColor(ColorConstants.blue);
text.append(" ");
text.append("(PFK)");
} else if (primaryKey) {
label.setForegroundColor(ColorConstants.red);
text.append(" ");
text.append("(PK)");
} else if (foreignKey) {
label.setForegroundColor(ColorConstants.darkGreen);
text.append(" ");
text.append("(FK)");
}
}
label.setText(text.toString());
this.setColumnFigureColor(columnFigure, isSelectedReferenced,
isSelectedForeignKey, isAdded, isUpdated, isRemoved);
columnFigure.add(label);
}
示例3: addColumn
import org.insightech.er.editor.view.figure.table.column.NormalColumnFigure; //导入方法依赖的package包/类
public void addColumn(NormalColumnFigure columnFigure, int viewMode,
String physicalName, String logicalName, String type,
boolean primaryKey, boolean foreignKey, boolean isNotNull,
boolean uniqueKey, boolean displayKey, boolean displayDetail,
boolean displayType, boolean isSelectedReferenced,
boolean isSelectedForeignKey, boolean isAdded, boolean isUpdated,
boolean isRemoved) {
Label label = this.createColumnLabel();
label.setForegroundColor(this.getTextColor());
StringBuilder text = new StringBuilder();
text.append(this.getColumnText(viewMode, physicalName, logicalName,
type, isNotNull, uniqueKey, displayDetail, displayType));
if (displayKey) {
if (primaryKey && foreignKey) {
label.setForegroundColor(ColorConstants.blue);
text.append(" ");
text.append("(PFK)");
} else if (primaryKey) {
label.setForegroundColor(ColorConstants.red);
text.append(" ");
text.append("(PK)");
} else if (foreignKey) {
label.setForegroundColor(ColorConstants.darkGreen);
text.append(" ");
text.append("(FK)");
}
}
this.setColumnFigureColor(columnFigure, isSelectedReferenced,
isSelectedForeignKey, isAdded, isUpdated, isRemoved);
label.setText(text.toString());
columnFigure.add(label);
}
示例4: addColumn
import org.insightech.er.editor.view.figure.table.column.NormalColumnFigure; //导入方法依赖的package包/类
@Override
public void addColumn(final NormalColumnFigure columnFigure, final int viewMode, final String physicalName, final String logicalName, final String type, final boolean primaryKey, final boolean foreignKey, final boolean isNotNull, final boolean uniqueKey, final boolean displayKey, final boolean displayDetail, final boolean displayType, final boolean isSelectedReferenced, final boolean isSelectedForeignKey, final boolean isAdded, final boolean isUpdated, final boolean isRemoved) {
final Label label = createColumnLabel();
label.setForegroundColor(getTextColor());
final StringBuilder text = new StringBuilder();
text.append(getColumnText(viewMode, physicalName, logicalName, type, isNotNull, uniqueKey, displayDetail, displayType));
if (displayKey) {
if (primaryKey && foreignKey) {
label.setForegroundColor(ColorConstants.blue);
text.append(" ");
text.append("(PFK)");
} else if (primaryKey) {
label.setForegroundColor(ColorConstants.red);
text.append(" ");
text.append("(PK)");
} else if (foreignKey) {
label.setForegroundColor(ColorConstants.darkGreen);
text.append(" ");
text.append("(FK)");
}
}
setColumnFigureColor(columnFigure, isSelectedReferenced, isSelectedForeignKey, isAdded, isUpdated, isRemoved);
label.setText(text.toString());
columnFigure.add(label);
}