RLCTreeBuilder.java 文件源码

java
阅读 20 收藏 0 点赞 0 评论 0

项目:rlc-analyser 作者:
/**
 * This method will create the configuration tab tree
 *
 * @param dataStore
 *            - the RLCDataStore that was used to collect all the data for
 *            the RLCs processed
 * @param configurationDataStore
 *            - the ConfigurationDataStore that was used to collect all the
 *            data for the RLCs processed
 * @return JScrollPane
 */
public JScrollPane createConfigurationResultsTree(final RLCDataStore dataStore,
                                                  final ConfigurationDataStore configurationDataStore) {
    final DefaultMutableTreeNode top = new DefaultMutableTreeNode("root");

    final ConfigurationAnalyser configurationAnalyser = new ConfigurationAnalyser(configurationDataStore);

    // Populate with config tab results
    final DefaultMutableTreeNode commPointAnalysis = new DefaultMutableTreeNode("Communication Points");
    for (final String type : configurationAnalyser.getAllCommunicationPointTypes()) {
        final List<ModifiedPropertyCountData> properties = configurationAnalyser
                .getModifiedCommunicationPointPropertyCounts(type, -1);
        addResultTreeNode(commPointAnalysis, "" + type + " configuration", properties);
    }
    top.add(commPointAnalysis);

    return new JScrollPane(manipulateJTree(top));
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号