当前位置: 首页>>代码示例>>Java>>正文


Java NormalColumnFigure.add方法代码示例

本文整理汇总了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);
}
 
开发者ID:roundrop,项目名称:ermasterr,代码行数:36,代码来源:SimpleStyleSupport.java

示例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);
}
 
开发者ID:kozake,项目名称:ermaster-k,代码行数:43,代码来源:SimpleStyleSupport.java

示例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);
}
 
开发者ID:kozake,项目名称:ermaster-k,代码行数:45,代码来源:FrameStyleSupport.java

示例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);
}
 
开发者ID:roundrop,项目名称:ermasterr,代码行数:38,代码来源:FrameStyleSupport.java


注:本文中的org.insightech.er.editor.view.figure.table.column.NormalColumnFigure.add方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。