Package com._1c.g5.v8.dt.erd.ui
Class DiagramGuiBuilder
- java.lang.Object
-
- com._1c.g5.v8.dt.erd.ui.DiagramGuiBuilder
-
- All Implemented Interfaces:
com._1c.g5.v8.dt.diagram.framework.ui.IDiagramGuiBuilder
public class DiagramGuiBuilder extends Object implements com._1c.g5.v8.dt.diagram.framework.ui.IDiagramGuiBuilder
Instance of this class builds UI diagram representation. It keeps last builded diagram inlastBuildedDiagram
field. UsegetLastBuildedDiagram()
to access it.
-
-
Constructor Summary
Constructors Constructor Description DiagramGuiBuilder(DiagramTabItem tab)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com._1c.g5.v8.dt.diagram.framework.ui.IDiagram
build(com._1c.g5.v8.dt.diagram.framework.IDiagramCore<? extends com._1c.g5.v8.dt.diagram.framework.IEntity,? extends com._1c.g5.v8.dt.diagram.framework.IRelation> diagramCore)
com._1c.g5.v8.dt.diagram.framework.ui.IDiagram
build(com._1c.g5.v8.dt.diagram.framework.IDiagramCore<? extends com._1c.g5.v8.dt.diagram.framework.IEntity,? extends com._1c.g5.v8.dt.diagram.framework.IRelation> newDiagramCore, com._1c.g5.v8.dt.diagram.framework.ui.IDiagram oldDiagram)
protected com._1c.g5.v8.dt.diagram.framework.ui.model.AbstractDiagramConnection
buildConnection(com._1c.g5.v8.dt.diagram.framework.IRelation relation, com._1c.g5.v8.dt.diagram.framework.ui.IDiagram diagram)
Builds connection from given relation.protected AbstractErdFigure
buildEntity(IErdEntity entity, com._1c.g5.v8.dt.diagram.framework.ui.IDiagram diagram)
Builds figure from given entity.com._1c.g5.v8.dt.diagram.framework.ui.IDiagram
getLastBuildedDiagram()
Returns last builded diagram.
-
-
-
Constructor Detail
-
DiagramGuiBuilder
public DiagramGuiBuilder(DiagramTabItem tab)
Constructor.- Parameters:
tab
- - tab to build diagram for. Can't benull
.
-
-
Method Detail
-
getLastBuildedDiagram
public com._1c.g5.v8.dt.diagram.framework.ui.IDiagram getLastBuildedDiagram()
Returns last builded diagram.- Returns:
- last builded diagram. Can return
null
.
-
build
public com._1c.g5.v8.dt.diagram.framework.ui.IDiagram build(com._1c.g5.v8.dt.diagram.framework.IDiagramCore<? extends com._1c.g5.v8.dt.diagram.framework.IEntity,? extends com._1c.g5.v8.dt.diagram.framework.IRelation> diagramCore)
- Specified by:
build
in interfacecom._1c.g5.v8.dt.diagram.framework.ui.IDiagramGuiBuilder
-
build
public com._1c.g5.v8.dt.diagram.framework.ui.IDiagram build(com._1c.g5.v8.dt.diagram.framework.IDiagramCore<? extends com._1c.g5.v8.dt.diagram.framework.IEntity,? extends com._1c.g5.v8.dt.diagram.framework.IRelation> newDiagramCore, com._1c.g5.v8.dt.diagram.framework.ui.IDiagram oldDiagram)
- Specified by:
build
in interfacecom._1c.g5.v8.dt.diagram.framework.ui.IDiagramGuiBuilder
-
buildEntity
protected AbstractErdFigure buildEntity(IErdEntity entity, com._1c.g5.v8.dt.diagram.framework.ui.IDiagram diagram)
Builds figure from given entity.- Parameters:
entity
- - entity to build figure from. Can't benull
.diagram
- - parent diagram. Can't benull
.- Returns:
- figure. Can return
null
.
-
buildConnection
protected com._1c.g5.v8.dt.diagram.framework.ui.model.AbstractDiagramConnection buildConnection(com._1c.g5.v8.dt.diagram.framework.IRelation relation, com._1c.g5.v8.dt.diagram.framework.ui.IDiagram diagram)
Builds connection from given relation.- Parameters:
relation
- - relation to build connection from. Can't benull
.diagram
- - parent diagram. Can't benull
.- Returns:
- builded connection. Can't return
null
.
-
-