Class NodeFactoryImpl

    • Constructor Detail

      • NodeFactoryImpl

        protected NodeFactoryImpl​(IdGroupingToken groupId,
                                  Nodes vertices)
        Constructor
        Parameters:
        groupId - to use
        vertices - to use
    • Method Detail

      • createNew

        public Node createNew()
        Create a new node (without registering)
        Specified by:
        createNew in interface NodeFactory
        Returns:
        created node
      • registerNew

        public Node registerNew()
        Create and register new node
        Specified by:
        registerNew in interface NodeFactory
        Returns:
        new node created
      • registerNew

        public Node registerNew​(org.locationtech.jts.geom.Point position,
                                boolean syncXmlIdToId)
        Register a new node and set its geometry and potentially sync its XML id to the underlying internal id
        Specified by:
        registerNew in interface NodeFactory
        Parameters:
        position - to use
        syncXmlIdToId - when true set XML id to internal id, when false leave it null
        Returns:
        created and registered node