コード例 #1
0
  @Override
  public void elemChosen(NodeDescriptor element) {
    CustomVisualizationViewer visualisator = handler.getVisualizator();
    visualisator.jumpToPlace(visualisator.getGraphLayout().transform(element));

    for (NodeDescriptor node : graph.getVertices()) {
      node.setNodeColour(NodeColours.NOT_RESULT_COLOUR);
    }
    element.setNodeColour(NodeColours.RESULT_COLOUR);
  }
コード例 #2
0
 @Override
 public void addResults(Collection<NodeDescriptor> results) {
   for (NodeDescriptor node : results) {
     node.setNodeColour(NodeColours.RESULT_COLOUR);
   }
 }