Clover coverage report - clover
Coverage timestamp: Sat Oct 8 2005 22:54:17 EDT
file stats: LOC: 44   Methods: 3
NCLOC: 17   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
JGraphTester.java - 33.3% 33.3% 33.3%
coverage coverage
 1   
 package abbot.tester.extensions;
 2   
 import java.awt.*;
 3   
 
 4   
 import abbot.*;
 5   
 import abbot.tester.*;
 6   
 import org.jgraph.JGraph;
 7   
 import org.jgraph.graph.*;
 8   
 
 9   
 /** Provide user actions on an instance of {@link JGraph}.  
 10   
     The substructure for {@link JGraph} is a cell (vertex or edge).
 11   
     This class provides an example of a {@link ComponentTester} extension.
 12   
 
 13   
     @see JGraphLocation
 14   
  */
 15   
 
 16   
 // TODO: marquee selection
 17   
 // TODO: multi-selection (can this be generalized?)
 18   
 //    maybe multi-select(begin, end)
 19   
 //          multi-select(array) (discontiguous)
 20   
 
 21   
 public class JGraphTester extends JComponentTester {
 22   
 
 23   
     /** Select a single cell. */
 24  6
     public void actionSelectCell(Component c, ComponentLocation loc) {
 25  6
         actionClick(c, loc);
 26   
     }
 27   
 
 28  0
     public ComponentLocation parseLocation(String encoded) {
 29  0
         return new JGraphLocation().parse(encoded);
 30   
     }
 31   
 
 32   
     /** Returns a {@link JGraphLocation} corresponding to the given
 33   
         {@link Point} location.  If there is no object at that location,
 34   
         the raw {@link Point} is used.  If there is an object, and its
 35   
         {@link CellView}'s {@link Object#toString()} looks meaningful, that is
 36   
         used, otherwise the object's index is used.
 37   
     */
 38  0
     public ComponentLocation getLocation(Component c, Point p) {
 39   
         //JGraph graph = (JGraph)c;
 40   
         // FIXME
 41  0
         return new JGraphLocation(p);
 42   
     }
 43   
 }
 44