Class ComparisonItemRenderer
java.lang.Object
ghidra.app.merge.structures.ComparisonItemRenderer
- All Implemented Interfaces:
EventListener, ListDataListener, ListCellRenderer<ComparisonItem>
public class ComparisonItemRenderer
extends Object
implements ListCellRenderer<ComparisonItem>, ListDataListener
ListCellRenderer for rendering structure lines in
CoordinatedStructureDisplay. It
consists of a label for each possible column. The labels are arranged by a
ComparisonItemLayout which is fed column widths for each type of line item. The
columns widths for each type are computed when the renderer is constructed by examining all
the lines in the model and computing the min/max column widths for that type.-
Method Summary
Modifier and TypeMethodDescriptionvoidgetListCellRendererComponent(JList<? extends ComparisonItem> list, ComparisonItem value, int index, boolean isSelected, boolean cellHasFocus) intvoidvoid
-
Method Details
-
getFontMetrics
-
getPreferredHeight
public int getPreferredHeight() -
getListCellRendererComponent
public Component getListCellRendererComponent(JList<? extends ComparisonItem> list, ComparisonItem value, int index, boolean isSelected, boolean cellHasFocus) - Specified by:
getListCellRendererComponentin interfaceListCellRenderer<ComparisonItem>
-
intervalAdded
- Specified by:
intervalAddedin interfaceListDataListener
-
intervalRemoved
- Specified by:
intervalRemovedin interfaceListDataListener
-
contentsChanged
- Specified by:
contentsChangedin interfaceListDataListener
-