test_class.declarator: log = LoggerFactory.getLogger(SpatialGridTest.class)
test_class.modifier: private static final
test_class.original_string: private static final Logger log = LoggerFactory.getLogger(SpatialGridTest.class);
test_class.type: Logger
test_class.var_name: log
test_class.file: jung-visualization/src/test/java/edu/uci/ics/jung/visualization/spatial/SpatialGridTest.java
test_class.identifier: SpatialGridTest
test_case.body: @Test
    public void testBoxLocations() {
  
      SpatialGrid spatial = new SpatialGrid(null, new Rectangle(0, 0, 100, 100), 4, 4);
      log.trace("grid is " + spatial.getGrid());
      showBoxIndex(spatial, 10, 10);
      showBoxIndex(spatial, 49, 49);
      showBoxIndex(spatial, 50, 50);
      showBoxIndex(spatial, 99, 1);
      showBoxIndex(spatial, 70, 10);
  
      showVisibleTiles(spatial, new Rectangle(0, 0, 100, 100));
      showVisibleTiles(spatial, new Rectangle(25, 25, 10, 10));
      showVisibleTiles(spatial, new Rectangle(25, 25, 30, 30));
      showVisibleTiles(spatial, new Rectangle(99, 99, 30, 30));
    }
test_case.class_method_signature: SpatialGridTest.testBoxLocations()
test_case.full_signature: @Test public void testBoxLocations()
test_case.identifier: testBoxLocations
test_case.invocations: trace getGrid showBoxIndex showBoxIndex showBoxIndex showBoxIndex showBoxIndex showVisibleTiles showVisibleTiles showVisibleTiles showVisibleTiles
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testBoxLocations()
focal_class.declarator: log = LoggerFactory.getLogger(SpatialGrid.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger log = LoggerFactory.getLogger(SpatialGrid.class);
focal_class.type: Logger
focal_class.var_name: log
focal_class.declarator: horizontalCount
focal_class.modifier: private
focal_class.original_string: private int horizontalCount;
focal_class.type: int
focal_class.var_name: horizontalCount
focal_class.declarator: verticalCount
focal_class.modifier: private
focal_class.original_string: private int verticalCount;
focal_class.type: int
focal_class.var_name: verticalCount
focal_class.declarator: size
focal_class.modifier: private
focal_class.original_string: private Dimension size;
focal_class.type: Dimension
focal_class.var_name: size
focal_class.declarator: map = Multimaps.synchronizedListMultimap(ArrayListMultimap.create())
focal_class.modifier: private
focal_class.original_string: private Multimap<Integer, N> map = Multimaps.synchronizedListMultimap(ArrayListMultimap.create());
focal_class.type: Multimap<Integer, N>
focal_class.var_name: map
focal_class.declarator: boxWidth
focal_class.modifier: private
focal_class.original_string: private double boxWidth;
focal_class.type: double
focal_class.var_name: boxWidth
focal_class.declarator: boxHeight
focal_class.modifier: private
focal_class.original_string: private double boxHeight;
focal_class.type: double
focal_class.var_name: boxHeight
focal_class.declarator: layoutArea
focal_class.modifier: private
focal_class.original_string: private Rectangle2D layoutArea;
focal_class.type: Rectangle2D
focal_class.var_name: layoutArea
focal_class.declarator: gridCache
focal_class.modifier: private
focal_class.original_string: private List<Shape> gridCache;
focal_class.type: List<Shape>
focal_class.var_name: gridCache
focal_class.file: jung-visualization/src/main/java/edu/uci/ics/jung/visualization/spatial/SpatialGrid.java
focal_class.identifier: SpatialGrid
focal_class.interfaces: implements Spatial<N>, TreeNode
focal_class.class_method_signature: SpatialGrid.SpatialGrid(LayoutModel<N> layoutModel)
focal_class.full_signature: public  SpatialGrid(LayoutModel<N> layoutModel)
focal_class.identifier: SpatialGrid
focal_class.modifiers: public
focal_class.parameters: (LayoutModel<N> layoutModel)
focal_class.signature:  SpatialGrid(LayoutModel<N> layoutModel)
focal_class.class_method_signature: SpatialGrid.SpatialGrid(
        LayoutModel<N> layoutModel, Rectangle2D bounds, int horizontalCount, int verticalCount)
focal_class.full_signature: public  SpatialGrid(
        LayoutModel<N> layoutModel, Rectangle2D bounds, int horizontalCount, int verticalCount)
focal_class.identifier: SpatialGrid
focal_class.modifiers: public
focal_class.parameters: (
        LayoutModel<N> layoutModel, Rectangle2D bounds, int horizontalCount, int verticalCount)
focal_class.signature:  SpatialGrid(
        LayoutModel<N> layoutModel, Rectangle2D bounds, int horizontalCount, int verticalCount)
focal_class.class_method_signature: SpatialGrid.setBounds(Rectangle2D bounds)
focal_class.full_signature: public void setBounds(Rectangle2D bounds)
focal_class.identifier: setBounds
focal_class.modifiers: public
focal_class.parameters: (Rectangle2D bounds)
focal_class.return: void
focal_class.signature: void setBounds(Rectangle2D bounds)
focal_class.class_method_signature: SpatialGrid.getContainingLeafs(Point2D p)
focal_class.full_signature: @Override public Set<TreeNode> getContainingLeafs(Point2D p)
focal_class.identifier: getContainingLeafs
focal_class.modifiers: @Override public
focal_class.parameters: (Point2D p)
focal_class.return: Set<TreeNode>
focal_class.signature: Set<TreeNode> getContainingLeafs(Point2D p)
focal_class.class_method_signature: SpatialGrid.getContainingLeafs(double x, double y)
focal_class.full_signature: @Override public Set<TreeNode> getContainingLeafs(double x, double y)
focal_class.identifier: getContainingLeafs
focal_class.modifiers: @Override public
focal_class.parameters: (double x, double y)
focal_class.return: Set<TreeNode>
focal_class.signature: Set<TreeNode> getContainingLeafs(double x, double y)
focal_class.class_method_signature: SpatialGrid.getContainingLeaf(Object element)
focal_class.full_signature: @Override public TreeNode getContainingLeaf(Object element)
focal_class.identifier: getContainingLeaf
focal_class.modifiers: @Override public
focal_class.parameters: (Object element)
focal_class.return: TreeNode
focal_class.signature: TreeNode getContainingLeaf(Object element)
focal_class.class_method_signature: SpatialGrid.getGrid(List<Shape> list, SpatialGrid<N> grid)
focal_class.full_signature: public static List<Shape> getGrid(List<Shape> list, SpatialGrid<N> grid)
focal_class.identifier: getGrid
focal_class.modifiers: public static
focal_class.parameters: (List<Shape> list, SpatialGrid<N> grid)
focal_class.return: List<Shape>
focal_class.signature: List<Shape> getGrid(List<Shape> list, SpatialGrid<N> grid)
focal_class.class_method_signature: SpatialGrid.getGrid()
focal_class.full_signature: @Override public List<Shape> getGrid()
focal_class.identifier: getGrid
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: List<Shape>
focal_class.signature: List<Shape> getGrid()
focal_class.class_method_signature: SpatialGrid.getMap()
focal_class.full_signature: public Multimap<Integer, N> getMap()
focal_class.identifier: getMap
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Multimap<Integer, N>
focal_class.signature: Multimap<Integer, N> getMap()
focal_class.class_method_signature: SpatialGrid.getBoxNumber(int boxX, int boxY)
focal_class.full_signature: protected int getBoxNumber(int boxX, int boxY)
focal_class.identifier: getBoxNumber
focal_class.modifiers: protected
focal_class.parameters: (int boxX, int boxY)
focal_class.return: int
focal_class.signature: int getBoxNumber(int boxX, int boxY)
focal_class.class_method_signature: SpatialGrid.getBoxNumber(int[] boxXY)
focal_class.full_signature: protected int getBoxNumber(int[] boxXY)
focal_class.identifier: getBoxNumber
focal_class.modifiers: protected
focal_class.parameters: (int[] boxXY)
focal_class.return: int
focal_class.signature: int getBoxNumber(int[] boxXY)
focal_class.class_method_signature: SpatialGrid.getBoxNumberFromLocation(Point p)
focal_class.full_signature: protected int getBoxNumberFromLocation(Point p)
focal_class.identifier: getBoxNumberFromLocation
focal_class.modifiers: protected
focal_class.parameters: (Point p)
focal_class.return: int
focal_class.signature: int getBoxNumberFromLocation(Point p)
focal_class.class_method_signature: SpatialGrid.getBoxNumberFromLocation(double x, double y)
focal_class.full_signature: protected int getBoxNumberFromLocation(double x, double y)
focal_class.identifier: getBoxNumberFromLocation
focal_class.modifiers: protected
focal_class.parameters: (double x, double y)
focal_class.return: int
focal_class.signature: int getBoxNumberFromLocation(double x, double y)
focal_class.class_method_signature: SpatialGrid.getBoxIndex(double x, double y)
focal_class.full_signature: protected int[] getBoxIndex(double x, double y)
focal_class.identifier: getBoxIndex
focal_class.modifiers: protected
focal_class.parameters: (double x, double y)
focal_class.return: int[]
focal_class.signature: int[] getBoxIndex(double x, double y)
focal_class.class_method_signature: SpatialGrid.recalculate()
focal_class.full_signature: @Override public void recalculate()
focal_class.identifier: recalculate
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void recalculate()
focal_class.class_method_signature: SpatialGrid.clear()
focal_class.full_signature: @Override public void clear()
focal_class.identifier: clear
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void clear()
focal_class.class_method_signature: SpatialGrid.recalculate(Collection<N> nodes)
focal_class.full_signature: public void recalculate(Collection<N> nodes)
focal_class.identifier: recalculate
focal_class.modifiers: public
focal_class.parameters: (Collection<N> nodes)
focal_class.return: void
focal_class.signature: void recalculate(Collection<N> nodes)
focal_class.class_method_signature: SpatialGrid.update(N node, Point location)
focal_class.full_signature: @Override public void update(N node, Point location)
focal_class.identifier: update
focal_class.modifiers: @Override public
focal_class.parameters: (N node, Point location)
focal_class.return: void
focal_class.signature: void update(N node, Point location)
focal_class.class_method_signature: SpatialGrid.getClosestElement(Point2D p)
focal_class.full_signature: @Override public N getClosestElement(Point2D p)
focal_class.identifier: getClosestElement
focal_class.modifiers: @Override public
focal_class.parameters: (Point2D p)
focal_class.return: N
focal_class.signature: N getClosestElement(Point2D p)
focal_class.class_method_signature: SpatialGrid.getClosestElement(double x, double y)
focal_class.full_signature: @Override public N getClosestElement(double x, double y)
focal_class.identifier: getClosestElement
focal_class.modifiers: @Override public
focal_class.parameters: (double x, double y)
focal_class.return: N
focal_class.signature: N getClosestElement(double x, double y)
focal_class.class_method_signature: SpatialGrid.getVisibleTiles(Shape visibleArea)
focal_class.full_signature: protected Collection<Integer> getVisibleTiles(Shape visibleArea)
focal_class.identifier: getVisibleTiles
focal_class.modifiers: protected
focal_class.parameters: (Shape visibleArea)
focal_class.return: Collection<Integer>
focal_class.signature: Collection<Integer> getVisibleTiles(Shape visibleArea)
focal_class.class_method_signature: SpatialGrid.getVisibleElements(Shape visibleArea)
focal_class.full_signature: @Override public Set<N> getVisibleElements(Shape visibleArea)
focal_class.identifier: getVisibleElements
focal_class.modifiers: @Override public
focal_class.parameters: (Shape visibleArea)
focal_class.return: Set<N>
focal_class.signature: Set<N> getVisibleElements(Shape visibleArea)
focal_class.class_method_signature: SpatialGrid.getLayoutArea()
focal_class.full_signature: @Override public Rectangle2D getLayoutArea()
focal_class.identifier: getLayoutArea
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Rectangle2D
focal_class.signature: Rectangle2D getLayoutArea()
focal_class.class_method_signature: SpatialGrid.getBounds()
focal_class.full_signature: @Override public Rectangle2D getBounds()
focal_class.identifier: getBounds
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Rectangle2D
focal_class.signature: Rectangle2D getBounds()
focal_class.class_method_signature: SpatialGrid.getChildren()
focal_class.full_signature: @Override public Collection<? extends TreeNode> getChildren()
focal_class.identifier: getChildren
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Collection<? extends TreeNode>
focal_class.signature: Collection<? extends TreeNode> getChildren()
focal_class.superclass: extends AbstractSpatial<N, N>
focal_method.body: public static <N> List<Shape> getGrid(List<Shape> list, SpatialGrid<N> grid) {
      list.addAll(grid.getGrid());
      return list;
    }
focal_method.class_method_signature: SpatialGrid.getGrid(List<Shape> list, SpatialGrid<N> grid)
focal_method.full_signature: public static List<Shape> getGrid(List<Shape> list, SpatialGrid<N> grid)
focal_method.identifier: getGrid
focal_method.invocations: addAll getGrid
focal_method.modifiers: public static
focal_method.parameters: (List<Shape> list, SpatialGrid<N> grid)
focal_method.return: List<Shape>
focal_method.signature: List<Shape> getGrid(List<Shape> list, SpatialGrid<N> grid)