override fun createCenterPanel()

in src/org/jetbrains/r/run/graphics/ui/RChunkGraphicsSettingsDialog.kt [50:97]


  override fun createCenterPanel(): JComponent {
    return panel {
      group(RBundle.message("chunk.graphics.settings.dialog.for.current.plot")) {
        row {
          checkBox(RBundle.message("graphics.panel.settings.dialog.auto.resize"))
            .bindSelected(::isAutoResizeEnabled)
        }
        lateinit var overrideCheckBox: JBCheckBox
        row {
          overrideCheckBox = checkBox(RBundle.message("chunk.graphics.settings.dialog.override.global.text"))
            .bindSelected(::overridesGlobal)
            .component
        }
        row(RBundle.message("graphics.panel.settings.dialog.resolution")) {
          intTextField(INPUT_RANGE)
            .columns(INPUT_COLUMN_COUNT)
            .bindIntText(::localResolution)
            .gap(RightGap.SMALL)
            .enabledIf(overrideCheckBox.selected)
          label(RBundle.message("graphics.panel.settings.dialog.dpi"))
        }
        row(RBundle.message("graphics.panel.engine.text")) {
          comboBox(listOf(true, false), EngineCellRenderer())
            .bindItem(::localStandalone.toNullableProperty())
            .enabledIf(overrideCheckBox.selected)
        }
      }
      group(RBundle.message("chunk.graphics.settings.dialog.for.all.plots")) {
        row(RBundle.message("graphics.panel.settings.dialog.resolution")) {
          intTextField(INPUT_RANGE)
            .columns(INPUT_COLUMN_COUNT)
            .gap(RightGap.SMALL)
            .bindIntText(::globalResolution)
          label(RBundle.message("graphics.panel.settings.dialog.dpi"))
        }
        if (isDarkModeVisible) {
          row {
            checkBox(RBundle.message("chunk.graphics.settings.dialog.adapt.to.dark.theme"))
              .bindSelected(::isDarkModeEnabled)
          }
        }
        row(RBundle.message("graphics.panel.engine.text")) {
          comboBox(listOf(true, false), EngineCellRenderer())
            .bindItem(::globalStandalone.toNullableProperty())
        }
      }
    }
  }