本文整理汇总了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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}