Class 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 in lastBuildedDiagram field. Use getLastBuildedDiagram() to access it.
    • 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 be null.
    • 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 interface com._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 interface com._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 be null.
        diagram - - parent diagram. Can't be null.
        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 be null.
        diagram - - parent diagram. Can't be null.
        Returns:
        builded connection. Can't return null.