本文整理匯總了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);
}