Package ghidra.app.util.viewer.listingpanel

# Interface MarginProvider

public interface MarginProvider
Interface for objects that want to add a component to the listing's left margin.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `JComponent`
  `getComponent()`
  Get the component to show the margin markers.
  `MarkerLocation`
  `getMarkerLocation(int x, int y)`
  Get the marker location for the given x, y point.
  `boolean`
  `isResizeable()`
  Return true if can be resized.
  `void`
  `setProgram(Program program, AddressIndexMap addressIndexMap, VerticalPixelAddressMap pixelMap)`
  Set the program and associated maps.

- ## Method Details

  - ### getComponent

    JComponent getComponent()
    Get the component to show the margin markers.
    Returns:
      the component

  - ### isResizeable

    boolean isResizeable()
    Return true if can be resized.
    Returns:
      true if can be resized.

  - ### setProgram

    void setProgram(Program program, AddressIndexMap addressIndexMap, VerticalPixelAddressMap pixelMap)
    Set the program and associated maps.
    Parameters:
      `program` - the program to use.
      `addressIndexMap` - the address-index map to use.
      `pixelMap` - the vertical pixel map to use.

  - ### getMarkerLocation

    MarkerLocation getMarkerLocation(int x, int y)
    Get the marker location for the given x, y point.
    Parameters:
      `x` - the horizontal coordinate.
      `y` - the vertical coordinate.
    Returns:
      the location