Class MultiListingLayoutModel
- java.lang.Object
- 
- ghidra.app.util.viewer.multilisting.MultiListingLayoutModel
 
- 
- All Implemented Interfaces:
- FormatModelListener,- ListingModelListener
 
 public class MultiListingLayoutModel extends java.lang.Object implements ListingModelListener, FormatModelListener Class for creating multiple coordinated ListingModels for multiple programs.
- 
- 
Constructor SummaryConstructors Constructor Description MultiListingLayoutModel(FormatManager formatMgr, Program[] programs, AddressSetView primaryAddrSet)Constructs a new MultiListingLayoutModel.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddataChanged(boolean updateImmediately)Called when the data at an index or range of indexes changes.voidformatModelAdded(FieldFormatModel model)Notifies that a new format model was added to the format manager.voidformatModelChanged(FieldFormatModel model)Notifies that the given format model was changed.voidformatModelRemoved(FieldFormatModel model)Notifies that a format model was removed.ListingModelgetAlignedModel(int index)Returns the the ListingLayoutModel for the i'th program.ListingModelgetModel(int index)Returns the ListingModel for the program with the indicated index.voidmodelSizeChanged()Called whenever the number of indexes changedvoidsetAddressSet(AddressSetView view)Sets the address set for this MultiListingLayoutModelvoidsetAddressTranslator(AddressTranslator translator)
 
- 
- 
- 
Constructor Detail- 
MultiListingLayoutModelpublic MultiListingLayoutModel(FormatManager formatMgr, Program[] programs, AddressSetView primaryAddrSet) Constructs a new MultiListingLayoutModel.- Parameters:
- formatMgr- the FormatManager used to layout the fields.
- programs- the list of programs that will be coordinated using listing models. The first program in the array will be used as the primary program.
- primaryAddrSet- the addressSet to use for the view. This is compatible with the primary program, which is program[0].
 
 
- 
 - 
Method Detail- 
getAlignedModelpublic ListingModel getAlignedModel(int index) Returns the the ListingLayoutModel for the i'th program.- Parameters:
- index- the index of program for which to return a listing model
 
 - 
dataChangedpublic void dataChanged(boolean updateImmediately) Description copied from interface:ListingModelListenerCalled when the data at an index or range of indexes changes.- Specified by:
- dataChangedin interface- ListingModelListener
 
 - 
modelSizeChangedpublic void modelSizeChanged() Description copied from interface:ListingModelListenerCalled whenever the number of indexes changed- Specified by:
- modelSizeChangedin interface- ListingModelListener
 
 - 
formatModelAddedpublic void formatModelAdded(FieldFormatModel model) Description copied from interface:FormatModelListenerNotifies that a new format model was added to the format manager.- Specified by:
- formatModelAddedin interface- FormatModelListener
- Parameters:
- model- the new model.
- See Also:
- FormatModelListener.formatModelAdded(ghidra.app.util.viewer.format.FieldFormatModel)
 
 - 
formatModelRemovedpublic void formatModelRemoved(FieldFormatModel model) Description copied from interface:FormatModelListenerNotifies that a format model was removed.- Specified by:
- formatModelRemovedin interface- FormatModelListener
- Parameters:
- model- the model that was removed.
- See Also:
- FormatModelListener.formatModelRemoved(ghidra.app.util.viewer.format.FieldFormatModel)
 
 - 
formatModelChangedpublic void formatModelChanged(FieldFormatModel model) Description copied from interface:FormatModelListenerNotifies that the given format model was changed.- Specified by:
- formatModelChangedin interface- FormatModelListener
- Parameters:
- model- the model that was changed.
- See Also:
- FormatModelListener.formatModelChanged(ghidra.app.util.viewer.format.FieldFormatModel)
 
 - 
getModelpublic ListingModel getModel(int index) Returns the ListingModel for the program with the indicated index.- Parameters:
- index- the index indicating which program's model to get.
- Returns:
- the program's ListingModel.
 
 - 
setAddressTranslatorpublic void setAddressTranslator(AddressTranslator translator) 
 - 
setAddressSetpublic void setAddressSet(AddressSetView view) Sets the address set for this MultiListingLayoutModel- Parameters:
- view- the current address set, which must be compatible with the primary program and listingModel
 
 
- 
 
-