Package ghidra.app.util.viewer.util

# Class MemoryBlockMap

java.lang.Object
ghidra.app.util.viewer.util.MemoryBlockMap

All Implemented Interfaces:
  `AddressPixelMap`

public class MemoryBlockMap extends Object implements AddressPixelMap

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `MemoryBlockMap(Program program)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `clear()`
  `void`
  `createMapping(int width)`
  `Address`
  `getAddress(int pixel)`
  `Rectangle`
  `getBlockPosition(MemoryBlock block)`
  `MemoryBlock[]`
  `getBlocks()`
  `int`
  `getPixel(Address address)`
  `protected MemoryBlock[]`
  `includeBlocks()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### MemoryBlockMap

    public MemoryBlockMap(Program program)

- ## Method Details

  - ### createMapping

    public void createMapping(int width)
    Specified by:
      `createMapping` in interface `AddressPixelMap`

  - ### includeBlocks

    protected MemoryBlock[] includeBlocks()

  - ### getAddress

    public Address getAddress(int pixel)
    Specified by:
      `getAddress` in interface `AddressPixelMap`

  - ### getPixel

    public int getPixel(Address address)
    Specified by:
      `getPixel` in interface `AddressPixelMap`

  - ### getBlocks

    public MemoryBlock[] getBlocks()
    Specified by:
      `getBlocks` in interface `AddressPixelMap`

  - ### getBlockPosition

    public Rectangle getBlockPosition(MemoryBlock block)
    Specified by:
      `getBlockPosition` in interface `AddressPixelMap`

  - ### clear

    public void clear()
    Specified by:
      `clear` in interface `AddressPixelMap`