class_docstr: A controller for the BinaryMatrix setting
      
class_docstr_tok: ["A","controller","for","the","BinaryMatrix","setting"]
code: def get_matrix_element_rect(i, j):
      bx, ex, dx, by, ey, dy = [
          wx.SystemSettings.GetMetric(m)
          for m in (
              wx.SYS_BORDER_X,
              wx.SYS_EDGE_X,
              wx.SYS_SMALLICON_X,
              wx.SYS_BORDER_Y,
              wx.SYS_EDGE_Y,
              wx.SYS_SMALLICON_Y,
          )
      ]
      return wx.Rect(
          ex * (2 * j + 1) + dx * j + bx * j,
          ey * (2 * i + 1) + dy * i + by * i,
          dx,
          dy,
      )
  
file_path: CellProfiler/src/frontend/cellprofiler/gui/module_view/_binary_matrix_controller.py
imports: import wx
  from cellprofiler_core.preferences import get_background_color
  from cellprofiler_core.setting import BinaryMatrix
  from ._module_view import ModuleView
  from ..utilities.module_view import edit_control_name
label_desc: Use image node_id 5 for calling the BinaryMatrixController obj's underlying member method code with example usage: obj.get_matrix_element_rect(i, j) and returns: wx