Uses of Class
twaver.model.Node

Packages that use Node
twaver   
twaver.core.model   
twaver.layout   
twaver.model   
twaver.network   
 

Uses of Node in twaver
 

Methods in twaver with parameters of type Node
static void Utils.findFollowers(Node node, java.util.Collection<Node> nodes, IFilter<Element> filter)
          找出所有的跟随节点
 

Method parameters in twaver with type arguments of type Node
static void Utils.findFollowers(Node node, java.util.Collection<Node> nodes, IFilter<Element> filter)
          找出所有的跟随节点
 

Uses of Node in twaver.core.model
 

Methods in twaver.core.model that return Node
 Node ILink.getAnotherNode(Node node)
           
 Node ILink.getFrom()
           
 Node IFollower.getHost()
           
 Node ILinkBundle.getNode1()
          端点
 Node ILinkBundle.getNode2()
          另一端点
 Node ILink.getTo()
           
 

Methods in twaver.core.model that return types with arguments of type Node
 HashList<Node> IHost.getFollowers()
           
 

Methods in twaver.core.model with parameters of type Node
 boolean IHost.addFollower(Node child)
           
 Node ILink.getAnotherNode(Node node)
           
 boolean IHost.removeFollower(Node child)
           
 boolean ILink.setFrom(Node from)
           
 boolean IFollower.setHost(Node host)
           
 boolean ILink.setTo(Node to)
           
 

Uses of Node in twaver.layout
 

Methods in twaver.layout with parameters of type Node
 void SpringLayouter.setMass(Node node, float mass)
          设置节点质量,默认为1
 

Method parameters in twaver.layout with type arguments of type Node
 void AutoLayouter.setElementSizeGenerator(Generator<Node,Size> elementSizeGenerator)
          设置网元大小生成器,默认取网元UI大小,网元UI不存在时,取网元的计算大小 getCalculateSize()
 

Constructor parameters in twaver.layout with type arguments of type Node
AutoLayouter(Network network, int layoutType, java.lang.Runnable callback, int xOffset, int yOffset, Generator<Node,Size> elementSizeGenerator)
          构造函数,自动布局,twaver默认实现了几种布局算法,支持树形布局,圆形布局,星形布局,层次布局
 

Uses of Node in twaver.model
 

Subclasses of Node in twaver.model
 class Group
          分组类型,继承于Node类型,可以展开合并,合并状态时与普通节点呈现一致,展开状态时,分组内的孩子节点可见
 class ShapeNode
          多边形节点,继承于Node,实现了IShape接口,可以添加路径片段,通过添加路径片段,围成一个多边形, 可以填充颜色或者渐变,如果不填充,则表现为线条样式 默认UI类为ShapeNodeUI
 class ShapeSubnetwork
          子网多边形,继承于ShapeNode,实现了子网接口
 class Subnetwork
          子网节点,继承于Node,实现了子网接口
 

Fields in twaver.model declared as Node
protected  Node Link.from
          起始端点
protected  Node Node.host
          宿主节点,一个节点跟随另一个节点拖动而移动,被跟随的节点称为宿主节点
protected  Node Link.to
          结束端节点
 

Methods in twaver.model that return Node
 Node Link.getAnotherAgent(Node node)
          获取另一个代理节点
 Node Link.getAnotherNode(Node node)
          获取另一端的节点
 Node Link.getFrom()
           
 Node Link.getFromAgent()
          获取起始端代理节点 如果起始或者结束节点放在分组中,分组合并状态时,外观上分组与连线相连,这时此分组为代理节点
 Node Node.getHost()
          获取宿主节点
 Node Link.getOldFrom()
          最后一次设置的起始端 当连线从网元容器中删除时,连线的起始和结束端会被设置为空, 此时将无法获取连线的端点信息,而这个方法可以缓存最后一次设置的起始端
 Node Link.getOldTo()
          最后一次设置的结束端 当连线从网元容器中删除时,连线的起始和结束端会被设置为空, 此时将无法获取连线的端点信息,而这个方法可以缓存最后一次设置的结束端
 Node Link.getTo()
           
 Node Link.getToAgent()
          获取结束端代理节点 如果起始或者结束节点放在分组中,分组合并状态时,外观上分组与连线相连,这时此分组为代理节点
 Node[] Node.toFollowers()
          获取跟随者数组
 

Methods in twaver.model that return types with arguments of type Node
 HashList<Node> Node.getFollowers()
          获取所有的跟随者,结果可能为null
 HashList<Node> Node.getFollowers(boolean create)
          获取所有的跟随者
 

Methods in twaver.model with parameters of type Node
 boolean Node.addFollower(Node follower)
          添加跟随者,网元被拖动时,跟随者也会被拖动,以下两行代码作用相同:
 Node Link.getAnotherAgent(Node node)
          获取另一个代理节点
 Node Link.getAnotherNode(Node node)
          获取另一端的节点
 int Node.getFollowerIndex(Node child)
          获取跟随者的索引号
 ILinkBundle ElementBox.getLinkBundle(Node node1, Node node2)
          获取连线捆绑器
protected  void ElementBox.onLinkAgentChange(Link link, Node oldAgent, Node newAgent, Node anotherNode)
          连线代理节点变化时回调此函数
protected  void ElementBox.onLinkFromAgentChange(Link link, Node oldAgent, Node newAgent)
          连线起始端代理变化时回调此函数
protected  void ElementBox.onLinkToAgentChange(Link link, Node oldAgent, Node newAgent)
          连线结束端代理变化时回调此函数
 boolean Node.removeFollower(Node follower)
          删除跟随者
 void Node.setFollowerIndex(Node child, int index)
          设置跟随者索引位置
 boolean Link.setFrom(Node from)
          设置起始端,会派发Consts.PROPERTYNAME_LINK_FROM属性变化事件
 boolean Node.setHost(Node host)
          设置宿主节点,与addFollower(Node)可以实现相同的功能,以下两行代码作用相同:
 boolean Link.setTo(Node to)
          设置结束端节点,如果设置成功,会派发Consts.PROPERTYNAME_LINK_TO属性变化事件
 

Constructors in twaver.model with parameters of type Node
Link(Node from, Node to)
          指定连线的两端
LinkSubnetwork(Node from, Node to)
           
 

Uses of Node in twaver.network
 

Methods in twaver.network that return types with arguments of type Node
 IFilter<Node> Network.getResizableFilter()
          能否调整节点大小过滤器
 

Methods in twaver.network with parameters of type Node
 Link Network.createLinkByInteraction(Node from, Node to, java.util.List<Point> points)
          创建连线,创建连线交互时会调用此方法,同时会派发创建网元交互事件InteractionEvent.ELEMENT_CREATE
 IImage Network.getImage(Node node)
          获取节点图片,可全局注册图片,支持多种图片类型IImage
 ILinkBundle Network.getLinkBundle(Node node1, Node node2)
          获取连线捆绑对象,通过该对象可以得到两节点之间所有的连线
 void Network.highlightAllLinkabelToNodes(Node from)
          高亮显示所有可以被连接的节点
 boolean Network.isLinkableFrom(Node node)
          能否作为连线的起始端,用于创建连线交互CreateLinkInteraction
 boolean Network.isLinkableTo(Node node, Node from)
          能否作为连线的终端,用于创建连线交互CreateLinkInteraction
 boolean Network.isResizable(Node node)
          能否调整节点大小过滤器
 boolean Network.moveNode(Node node, float dx, float dy)
          移动节点,跟随节点也会被移动,此外如果分组被拖动,其内的孩子网元也会被移动
 boolean Network.moveNodeTo(Node node, Point location)
          移动节点到某个位置
 

Method parameters in twaver.network with type arguments of type Node
 boolean Network.moveNodes(java.util.List<Node> nodes, float dx, float dy)
          移动节点集合,跟随节点也会被移动,如果分组被拖动,其内的孩子网元也会被移动,此外如果连线的两个端点都被移动,连线也会被移动
 void Network.setResizableFilter(IFilter<Node> resizableFilter)
          设置能否调整节点大小过滤器
 

Constructors in twaver.network with parameters of type Node
NodeUI(Node node, Network network)
          节点图形元素,用于绘制网元节点