|
Geometry-Based Edge Clustering
|
This class represents a region in which the Edges of the graph have a similar direction. More...
Public Member Functions | |
| GridRegion (double primaryAngle) | |
| Creates a GridRegion with the specified primary angle. More... | |
| ArrayList< GridCell > | getCells () |
| Returns the GridCells belonging to the GridRegion. More... | |
| void | addCell (GridCell cell) |
| Adds a GridCell to the GridRegion. More... | |
| double | getPrimaryAngle () |
| Returns the primary angle of the Edges passing through the GridRegion. More... | |
| int | getMinX () |
| Returns the minimum x-coordinate of the GridRegion's bounding box. More... | |
| int | getMinY () |
| Returns the minimum y-coordinate of the GridRegion's bounding box. More... | |
| int | getMaxX () |
| Returns the maximum x-coordinate of the GridRegion's bounding box. More... | |
| int | getMaxY () |
| Returns the maximum y-coordinate of the GridRegion's bounding box. More... | |
| boolean | contains (Node node) |
| Checks whether the specified Node is contained within the GridRegion. More... | |
| Node | center () |
| Returns the center of the GridRegion's bounding box. More... | |
| void | updatePrimaryAngle () |
| Re-evaluates the primary angle of the region by taking the average of the GridCells' primary angles. | |
This class represents a region in which the Edges of the graph have a similar direction.
Definition at line 10 of file GridRegion.java.
| GridRegion.GridRegion | ( | double | primaryAngle) |
Creates a GridRegion with the specified primary angle.
| primaryAngle | The primary angle of the Edges passing through the GridRegion. |
Definition at line 24 of file GridRegion.java.
| void GridRegion.addCell | ( | GridCell | cell) |
Adds a GridCell to the GridRegion.
| cell | The GridCell that is added to the GridRegion. |
Definition at line 45 of file GridRegion.java.
| Node GridRegion.center | ( | ) |
Returns the center of the GridRegion's bounding box.
Definition at line 117 of file GridRegion.java.
| boolean GridRegion.contains | ( | Node | node) |
Checks whether the specified Node is contained within the GridRegion.
| node | The node which is checked. |
Definition at line 103 of file GridRegion.java.
| ArrayList<GridCell> GridRegion.getCells | ( | ) |
Returns the GridCells belonging to the GridRegion.
Definition at line 37 of file GridRegion.java.
| int GridRegion.getMaxX | ( | ) |
Returns the maximum x-coordinate of the GridRegion's bounding box.
Definition at line 86 of file GridRegion.java.
| int GridRegion.getMaxY | ( | ) |
Returns the maximum y-coordinate of the GridRegion's bounding box.
Definition at line 94 of file GridRegion.java.
| int GridRegion.getMinX | ( | ) |
Returns the minimum x-coordinate of the GridRegion's bounding box.
Definition at line 70 of file GridRegion.java.
| int GridRegion.getMinY | ( | ) |
Returns the minimum y-coordinate of the GridRegion's bounding box.
Definition at line 78 of file GridRegion.java.
| double GridRegion.getPrimaryAngle | ( | ) |
Returns the primary angle of the Edges passing through the GridRegion.
Definition at line 62 of file GridRegion.java.