當前位置: 首頁>>代碼示例>>Java>>正文


Java TableFigure.create方法代碼示例

本文整理匯總了Java中org.insightech.er.editor.view.figure.table.TableFigure.create方法的典型用法代碼示例。如果您正苦於以下問題:Java TableFigure.create方法的具體用法?Java TableFigure.create怎麽用?Java TableFigure.create使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在org.insightech.er.editor.view.figure.table.TableFigure的用法示例。


在下文中一共展示了TableFigure.create方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: doRefreshVisuals

import org.insightech.er.editor.view.figure.table.TableFigure; //導入方法依賴的package包/類
@Override
public void doRefreshVisuals() {
    final TableFigure tableFigure = (TableFigure) getFigure();
    final TableView tableView = (TableView) getModel();

    tableFigure.create(tableView.getColor());

    final ERDiagram diagram = getDiagram();
    tableFigure.setName(getTableViewName(tableView, diagram));

    UpdatedNodeElement updated = null;
    if (diagram.getChangeTrackingList().isCalculated()) {
        updated = diagram.getChangeTrackingList().getUpdatedNodeElement(tableView);
    }

    for (final Object child : getChildren()) {
        final ColumnEditPart part = (ColumnEditPart) child;
        part.refreshTableColumns(updated);
    }

    if (updated != null) {
        showRemovedColumns(diagram, tableFigure, updated.getRemovedColumns(), true);
    }
}
 
開發者ID:roundrop,項目名稱:ermasterr,代碼行數:25,代碼來源:TableViewEditPart.java

示例2: doRefreshVisuals

import org.insightech.er.editor.view.figure.table.TableFigure; //導入方法依賴的package包/類
@Override
public void doRefreshVisuals() {
	TableFigure tableFigure = (TableFigure) this.getFigure();
	TableView tableView = (TableView) this.getModel();

	tableFigure.create(tableView.getColor());

	ERDiagram diagram = this.getDiagram();
	tableFigure.setName(getTableViewName(tableView, diagram));

	UpdatedNodeElement updated = null;
	if (diagram.getChangeTrackingList().isCalculated()) {
		updated = diagram.getChangeTrackingList().getUpdatedNodeElement(
				tableView);
	}

	for (Object child : this.getChildren()) {
		ColumnEditPart part = (ColumnEditPart) child;
		part.refreshTableColumns(updated);
	}

	if (updated != null) {
		showRemovedColumns(diagram, tableFigure,
				updated.getRemovedColumns(), true);
	}
}
 
開發者ID:kozake,項目名稱:ermaster-k,代碼行數:27,代碼來源:TableViewEditPart.java

示例3: refreshVisuals

import org.insightech.er.editor.view.figure.table.TableFigure; //導入方法依賴的package包/類
/**
 * {@inheritDoc}
 */
@Override
public void refreshVisuals() {
    try {
        final TableFigure figure = (TableFigure) getFigure();

        final RemovedERTable removedERTable = (RemovedERTable) getModel();
        final ERTable table = (ERTable) removedERTable.getNodeElement();

        figure.create(null);

        final ERDiagram diagram = getDiagram();

        final int viewMode = diagram.getDiagramContents().getSettings().getViewMode();

        if (viewMode == Settings.VIEW_MODE_PHYSICAL) {
            figure.setName(diagram.filter(table.getPhysicalName()));

        } else if (viewMode == Settings.VIEW_MODE_LOGICAL) {
            figure.setName(diagram.filter(table.getLogicalName()));

        } else {
            figure.setName(diagram.filter(table.getLogicalName()) + "/" + diagram.filter(table.getPhysicalName()));
        }

        refreshTableColumns(figure);

        super.refreshVisuals();

    } catch (final Exception e) {
        ERDiagramActivator.showExceptionDialog(e);
    }
}
 
開發者ID:roundrop,項目名稱:ermasterr,代碼行數:36,代碼來源:RemovedERTableEditPart.java

示例4: refreshVisuals

import org.insightech.er.editor.view.figure.table.TableFigure; //導入方法依賴的package包/類
/**
 * {@inheritDoc}
 */
@Override
public void refreshVisuals() {
	try {
		TableFigure figure = (TableFigure) this.getFigure();

		RemovedERTable removedERTable = (RemovedERTable) this.getModel();
		ERTable table = (ERTable) removedERTable.getNodeElement();

		figure.create(null);

		ERDiagram diagram = this.getDiagram();

		int viewMode = diagram.getDiagramContents().getSettings()
				.getViewMode();

		if (viewMode == Settings.VIEW_MODE_PHYSICAL) {
			figure.setName(diagram.filter(table.getPhysicalName()));

		} else if (viewMode == Settings.VIEW_MODE_LOGICAL) {
			figure.setName(diagram.filter(table.getLogicalName()));

		} else {
			figure.setName(diagram.filter(table.getLogicalName()) + "/"
					+ diagram.filter(table.getPhysicalName()));
		}

		this.refreshTableColumns(figure);

		super.refreshVisuals();

	} catch (Exception e) {
		ERDiagramActivator.showExceptionDialog(e);
	}
}
 
開發者ID:kozake,項目名稱:ermaster-k,代碼行數:38,代碼來源:RemovedERTableEditPart.java


注:本文中的org.insightech.er.editor.view.figure.table.TableFigure.create方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。