Uses of Class
twaver.model.Data

Packages that use Data
twaver   
twaver.alarm   
twaver.core.model   
twaver.event   
twaver.model   
twaver.model.io   
 

Uses of Data in twaver
 

Methods in twaver with parameters of type Data
static boolean Utils.forEachChildren(Data parent, Action<Data> action)
          遍历孩子元素,回调函数返回false时,整个遍历结束
 

Method parameters in twaver with type arguments of type Data
static boolean Utils.forEachByBreadthFirst(java.lang.Iterable<? extends Data> roots, Action<Data> action)
          广度优先遍历,回调函数返回false时,整个遍历结束
static boolean Utils.forEachByBreadthFirst(java.lang.Iterable<? extends Data> roots, Action<Data> action)
          广度优先遍历,回调函数返回false时,整个遍历结束
static boolean Utils.forEachByDepthFirst(java.lang.Iterable<? extends Data> list, Action<Data> action)
          深度优先遍历,回调函数返回false时,整个遍历结束
static boolean Utils.forEachByDepthFirst(java.lang.Iterable<? extends Data> list, Action<Data> action)
          深度优先遍历,回调函数返回false时,整个遍历结束
static boolean Utils.forEachByDepthFirstReverse(java.util.List<? extends Data> list, Action<Data> action)
          深度优先遍历,回调函数返回false时,整个遍历结束
static boolean Utils.forEachByDepthFirstReverse(java.util.List<? extends Data> list, Action<Data> action)
          深度优先遍历,回调函数返回false时,整个遍历结束
static boolean Utils.forEachChildren(Data parent, Action<Data> action)
          遍历孩子元素,回调函数返回false时,整个遍历结束
 

Uses of Data in twaver.alarm
 

Classes in twaver.alarm with type parameters of type Data
 class PropertyPropagator<T extends Data>
          属性传播器,twaver内部使用
 

Subclasses of Data in twaver.alarm
 class Alarm
          告警对象,代表一条告警数据
 

Methods in twaver.alarm with parameters of type Data
protected  void PropertyPropagator.propagate(Data data)
          Propagate property change to the specified data.
protected  void PropertyPropagator.propagateToParent(Data child, Data parent)
          Called when need to propagate property change to specified data's parent.
protected  void AlarmStatePropagator.propagateToParent(Data child, Data parent)
           
protected  void PropertyPropagator.propagateToTop(Data data)
          Propagate property change to the specified data's next level data.
protected  void AlarmStatePropagator.propagateToTop(Data data)
           
 

Uses of Data in twaver.core.model
 

Classes in twaver.core.model with type parameters of type Data
 interface IDataBox<T extends Data>
          数据容器接口,twaver内部使用
 interface IHashCollection<T extends Data>
          哈希数据容器接口,twaver内部使用
 interface IHashCollectionListener<T extends Data>
          哈希数据容器监听器接口,twaver内部使用
 interface ISelectionModel<T extends Data>
          选中模型接口,twaver内部使用
 

Methods in twaver.core.model that return Data
 Data IChildList.getChildAt(int index)
           
 Data IChildList.getParent()
           
 Data[] IChildList.toChildren()
           
 

Methods in twaver.core.model that return types with arguments of type Data
 java.util.List<Data> IChildList.getChildren()
           
 

Methods in twaver.core.model with parameters of type Data
 boolean IChildList.addChild(Data child)
           
 boolean IChildList.addChild(Data child, int index)
           
 int IChildList.getChildIndex(Data child)
           
 boolean IChildList.isDescendantOf(Data parent)
           
 void IHashCollectionListener.onAdd(Data data)
           
 void IChildList.onParentChanged(Data oldParent, Data newParent)
           
 void IHashCollectionListener.onRemove(Data data)
           
 boolean IChildList.removeChild(Data child)
           
 boolean IChildList.setChildIndex(Data child, int index)
           
 boolean IChildList.setParent(Data data)
           
 boolean IChildList.setParent(Data data, int index)
           
 

Method parameters in twaver.core.model with type arguments of type Data
 void IHashCollectionListener.onAdd(java.util.List<Data> datas)
           
 void IHashCollectionListener.onRemove(java.util.List<Data> datas)
           
 

Uses of Data in twaver.event
 

Classes in twaver.event with type parameters of type Data
 class ListEvent<T extends Data>
          数据容器事件
 class ListEventListener<T extends Data>
          数据容器变化事件
 

Fields in twaver.event declared as Data
protected  T ListEvent.data
          数据元素
 

Methods in twaver.event that return Data
 Data ChildIndexChangeEvent.getChild()
          子节点
 Data ParentChangeEvent.getOldParent()
          原来的父节点
 Data ParentChangeEvent.getParent()
          获取父节点
 Data ChildIndexChangeEvent.getParent()
          父节点
 Data ParentChangeEvent.getSource()
          获取数据元素
 

Constructors in twaver.event with parameters of type Data
ChildAddEvent(Data parent, java.lang.Object child)
          构造函数
ChildIndexChangeEvent(Data parent, Data child, int oldIndex, int newIndex)
          构造函数,子节点序号变化事件
ChildRemoveEvent(Data source, java.lang.Object child)
          构造函数,
ParentChangeEvent(Data source, Data newParent, int newIndex)
          构造函数,父节点变化事件,元素的父节点被修改时,会派发此类事件
 

Uses of Data in twaver.model
 

Classes in twaver.model with type parameters of type Data
 class DataBox<T extends Data>
          数据容器
 class HashCollection<T extends Data>
          数据容器,继承于 HashList,增加数据元素事件监听管理,以及过滤功能,是数据管理容器的基类
 class QuickFinder<T extends Data>
          快速查找器,通过元素的某个属性查找相关元素,比如通过元素名称查找,下面的例子是查找所有名称为"pc"的元素:
 class SelectionModel<T extends Data>
          选中模型,用于元素的选中状态管理,可以选中或者取消元素的选中状态
 

Subclasses of Data in twaver.model
 class Element
          网元数据类型
 class Group
          分组类型,继承于Node类型,可以展开合并,合并状态时与普通节点呈现一致,展开状态时,分组内的孩子节点可见
 class Layer
          图层元素
 class Link
          连线类型,包含两个节点属性:起始节点Link.from和结束节点 Link.to 起始节点或者结束节点未设置时,称该连线无效 Link.isInvalid() 起始节点和结束节点相同时,称为自环 Link.isLooped() 如果起始或者结束节点放在分组中,分组合并状态时,外观上分组与连线相连, 这时此分组为代理节点Link.getFromAgent()Link.getToAgent() 此外还实现了IShape接口,可以添加中间路径片段Link.addPathSegement(PathSegment) 对应的默认UI类为LinkUI
 class LinkSubnetwork
          连线子网,外观与连线一致,具备子网功能
 class Node
          节点类型,可以设置图片,添加跟随者 默认对应的UI类是 NodeUI
 class ShapeNode
          多边形节点,继承于Node,实现了IShape接口,可以添加路径片段,通过添加路径片段,围成一个多边形, 可以填充颜色或者渐变,如果不填充,则表现为线条样式 默认UI类为ShapeNodeUI
 class ShapeSubnetwork
          子网多边形,继承于ShapeNode,实现了子网接口
 class Subnetwork
          子网节点,继承于Node,实现了子网接口
 

Fields in twaver.model declared as Data
protected  Data Data.parent
          父节点
 

Methods in twaver.model that return Data
 Data Data.getChildAt(int index)
           
 Data Data.getParent()
           
 Data[] Data.toChildren()
           
 

Methods in twaver.model that return types with arguments of type Data
 java.util.List<Data> Data.getChildren()
           
 

Methods in twaver.model with parameters of type Data
 boolean Data.addChild(Data child)
           
 boolean Data.addChild(Data child, int index)
           
 int Data.getChildIndex(Data child)
           
 boolean Data.isDescendantOf(Data parent)
           
protected  void Data.onChildAdd(Data child, int index)
          添加孩子节点时回调此函数
protected  void Data.onChildRemove(Data child)
          孩子节点被删除时回调此函数
protected  void Data.onChildrenClear(Data[] children)
          清除所有孩子时,回调此函数
 void Node.onParentChanged(Data oldParent, Data newParent)
           
 void Data.onParentChanged(Data oldParent, Data newParent)
           
 boolean Data.removeChild(Data child)
           
 boolean Data.setChildIndex(Data child, int index)
           
 boolean Data.setParent(Data parent)
           
 boolean Data.setParent(Data parent, int index)
           
 

Method parameters in twaver.model with type arguments of type Data
 boolean DataBox.forEachByBreadthFirst(Action<Data> action)
          广度优先遍历
 boolean DataBox.forEachByDepthFirst(Action<Data> action)
          深度优先遍历
 boolean DataBox.forEachByDepthFirstReverse(Action<Data> action)
          深度优先反向遍历
 

Uses of Data in twaver.model.io
 

Methods in twaver.model.io with parameters of type Data
 boolean XMLSerializer.isDataSerializable(Data data)
          数据元素是否允许序列化
 boolean XMLSerializer.isPropertySerializable(Data data, java.lang.String propertyName, java.lang.Object propertyValue, java.lang.String propertyType)
          属性是否可以允许序列化
 boolean XMLSerializer.isPropertySerializable(Data data, java.lang.String propertyName, java.lang.String propertyType)
          属性是否可以允许序列化