AttributeController attributeController = Lookup.getDefault().lookup(AttributeController.class);
Graph graph = Lookup.getDefault().lookup(GraphController.class).getModel().getGraphVisible();
List<Ranking> rankingList = new ArrayList<Ranking>();
for (AttributeColumn column : attributeController.getModel().getEdgeTable().getColumns()) {
if (RankingFactory.isNumberColumn(column)) {
EdgeRanking r = RankingFactory.getEdgeAttributeRanking(column, graph);
if (r.getMinimumValue() != null && r.getMaximumValue() != null && !r.getMinimumValue().equals(r.getMaximumValue())) {
rankingList.add(r);
}
} else if (RankingFactory.isDynamicNumberColumn(column) && getDynamicModel() != null) {
TimeInterval visibleInterval = dynamicModel.getVisibleInterval();
EdgeRanking r = RankingFactory.getEdgeDynamicAttributeRanking(column, graph, visibleInterval, dynamicModel.getNumberEstimator());
if (r.getMinimumValue() != null && r.getMaximumValue() != null && !r.getMinimumValue().equals(r.getMaximumValue())) {
rankingList.add(r);
}
}
}
return rankingList.toArray(new EdgeRanking[0]);