MonitorGUI

public class MonitorGUI extends javax.swing.JFrame

Display for monitoring the current Coordinator state. This display is controlled by the Coordinator.

Author:Marcel Stefko

Fields

l_fps

public javax.swing.JLabel l_fps

l_laser_power_max

public javax.swing.JLabel l_laser_power_max

l_last_analysis_duration

public javax.swing.JLabel l_last_analysis_duration

p_realtime_plot_parent

public javax.swing.JPanel p_realtime_plot_parent

pb_laser_power

public javax.swing.JProgressBar pb_laser_power

Constructors

MonitorGUI

public MonitorGUI(Coordinator coordinator, String analyzer_name, String controller_name, String laser_name, String analyzer_description, double start_setpoint)

Creates new form MonitorGUI

Parameters:
  • coordinator – Coordinator parent
  • analyzer_name – name of the used analyzer
  • controller_name – name of the used controller
  • laser_name – name of the used laser
  • analyzer_description – A short description of the analyzer’s units.
  • start_setpoint – setpoint value to display at startup

Methods

setLaserPowerDisplayMax

public void setLaserPowerDisplayMax(double value)

Adjust the displayed laser power maximal value and store it for progressbar calculations.

Parameters:
  • value – max laser power value

setRoiStatus

public void setRoiStatus(boolean is_set)

Update the GUI display of ROI status

Parameters:
  • is_set – true if ROI is set

setStopped

public void setStopped()

Displays the STOPPED message in GUI.

updateAnalyzerDescription

public void updateAnalyzerDescription(String description)

Update analyzer description.

Parameters:
  • description – A short description of the analyzer’s outputs.

updateFPS

public void updateFPS(int value)

Update displayed FPS to new value

Parameters:
  • value – new value of FPS

updateLaserPowerDisplay

public void updateLaserPowerDisplay(double value)

Update displayed laser power to new value

Parameters:
  • value – new value of laser power

updateLastAnalysisDuration

public void updateLastAnalysisDuration(int duration_ms)

Update last analysis duration to new value

Parameters:
  • duration_ms – last analysis duration in ms

updatePlot

public void updatePlot(GraphData data)

Update the plow with new data

Parameters:
  • data – data to be plotted