Package ghidra.graph.viewer.layout
Class LayoutLocationMap<V,E>
java.lang.Object
ghidra.graph.viewer.layout.LayoutLocationMap<V,E>
- Type Parameters:
V
- the vertex typeE
- the edge type
A class that holds row and column data for each vertex and edge.
This class will take in a GridLocationMap
, which is comprised of grid index
values, not layout space points. Then, the grid values will be used to calculate
offsets and size for each row and column. Each row has a y location and a height; each
column has an x location and a width. The height and width are uniform in size across
all rows and columns, based upon the tallest and widest vertex in the graph.
-
Constructor Summary
ConstructorDescriptionLayoutLocationMap
(GridLocationMap<V, E> gridLocations, com.google.common.base.Function<V, Shape> transformer, boolean isCondensed, TaskMonitor monitor) -
Method Summary
Modifier and TypeMethodDescriptionarticulations
(E e) col
(int gridX) columns()
Returns the columns in this location map, sorted from lowest index to highestcopy()
void
dispose()
getColumnContaining
(int x) int
int
int
int
boolean
lastRow()
nextColumn
(Column column) row
(int gridY) Collection
<Row<V>> rows()
Returns the rows in this location map, sorted from lowest index to highesttoString()
-
Constructor Details
-
LayoutLocationMap
public LayoutLocationMap(GridLocationMap<V, E> gridLocations, com.google.common.base.Function<V, throws CancelledExceptionShape> transformer, boolean isCondensed, TaskMonitor monitor) - Throws:
CancelledException
-
-
Method Details
-
copy
-
dispose
public void dispose() -
getRowCount
public int getRowCount() -
getColumnCount
public int getColumnCount() -
col
-
col
-
getColumnContaining
-
columns
Returns the columns in this location map, sorted from lowest index to highest- Returns:
- the columns in this location map, sorted from lowest index to highest
-
rows
Returns the rows in this location map, sorted from lowest index to highest- Returns:
- the rows in this location map, sorted from lowest index to highest
-
lastColumn
-
nextColumn
-
articulations
-
row
-
lastRow
-
row
-
gridX
-
gridY
-
getRowOffsets
-
getColOffsets
-
isCondensed
public boolean isCondensed() -
toString
-