Changeset 2404

Show
Ignore:
Timestamp:
08/13/08 11:24:59 (3 months ago)
Author:
mwlinnem
Message:

Message is now printed to console discribing the inadequacies of Radial Graph layout for graphs with multiple weak components.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plugins/visualization/edu.iu.nwb.visualization.radialgraph/src/edu/iu/nwb/visualization/radialgraph/RadialGraph.java

    r1975 r2404  
    77import org.cishell.framework.algorithm.AlgorithmFactory; 
    88import org.cishell.framework.data.Data; 
     9import org.osgi.service.log.LogService; 
    910 
    1011import edu.berkeley.guir.prefuse.graph.Graph; 
     
    2728                Dictionary parameters; 
    2829                CIShellContext ciContext; 
     30                LogService log; 
    2931                 
    3032                public RadialGraphAlg(Data[] dm, Dictionary parameters, 
     
    3335                        this.parameters = parameters; 
    3436                    this.ciContext = ciContext; 
     37                    this.log = (LogService) ciContext.getService(LogService.class.getName()); 
    3538                } 
    3639 
    3740                public Data[] execute() { 
     41                        log.log(LogService.LOG_INFO, ""); 
     42                        log.log(LogService.LOG_INFO, "Note that the radial graph layout will ignore all but the first weak component in a graph."); 
     43                        log.log(LogService.LOG_INFO, "Nodes belonging to additional weak components will be placed in the upper-left-hand corner."); 
     44                        log.log(LogService.LOG_INFO, "Because of this, the Radial Graph layout is not recommended for graphs with more than one weak component"); 
     45                         
    3846                    Graph graph = (Graph) dm[0].getData(); 
    3947                    RadialGraphVisualization rgv = new RadialGraphVisualization();