Class AbstractProbeImageSwingJPanel.MainJPanel

    • Constructor Detail

      • MainJPanel

        public MainJPanel​(Color background)
        Builds an initialized JPanel where the probe is being displayed.
        Parameters:
        background - The background color used in the panel.
    • Method Detail

      • showInitializationLabel

        public final void showInitializationLabel()
        Displays the initialization label in the panel.
      • showSimulationPanel

        public final void showSimulationPanel()
        Displays the simulation panel in the panel.
      • updateSimulationPanel

        public final void updateSimulationPanel​(BufferedImage printerImage)
        Swaps the image being printed into the panel.
        Parameters:
        printerImage - The image containing a 2D representation of the level of the simulation.