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
ConstructorsChangeConstructorDescriptionLayoutLocationMap(GridLocationMap<V, E> gridLocations, com.google.common.base.Function<V, Shape> transformer, boolean isCondensed, TaskMonitor monitor) -
Method Summary
ChangeModifier and TypeMethodDescriptionMODIFIEDarticulations(E e) MODIFIEDcol(int gridX) MODIFIEDMODIFIEDcolumns()Returns the columns in this location map, sorted from lowest index to highestvoiddispose()MODIFIEDgetColumnContaining(int x) intNEWintintintbooleanMODIFIEDlastRow()nextColumn(Column<V> column) row(int gridY) Collection<Row<V>> rows()Returns the rows in this location map, sorted from lowest index to highesttoString()REMOVEDLayoutLocationMap<V, E>copy() RemovedREMOVEDColumnnextColumn(Column column) Removed
-
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
-
dispose
public void dispose() -
getRowCount
public int getRowCount() -
getColumnCount
public int getColumnCount() -
col MODIFIED
return type: Column → Column-ghidra.graph.viewer.layout.Column col(V v)+ghidra.graph.viewer.layout.Column<V> col(V v) -
col MODIFIED
return type: Column → Column-ghidra.graph.viewer.layout.Column col(int gridX)+ghidra.graph.viewer.layout.Column<V> col(int gridX) -
getColumnContaining MODIFIED
return type: Column → Column-ghidra.graph.viewer.layout.Column getColumnContaining(int x)+ghidra.graph.viewer.layout.Column<V> getColumnContaining(int x) -
columns MODIFIED
return type: Collection → Collection-java.util.Collection<ghidra.graph.viewer.layout.Column> columns()+java.util.Collection<ghidra.graph.viewer.layout.Column<V>> 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 MODIFIED
return type: Column → Column-ghidra.graph.viewer.layout.Column lastColumn()+ghidra.graph.viewer.layout.Column<V> lastColumn() -
nextColumn
-
articulations MODIFIED
return type: List → List-java.util.List<java.awt.Point> articulations(E e)+java.util.List<ghidra.graph.viewer.layout.GridPoint> articulations(E e) -
row
-
lastRow
-
row
-
gridX
-
gridY
-
getRowOffsets
-
getColOffsets
-
isCondensed
public boolean isCondensed() -
toString
-
getGridCoordinates NEW
-