| | |
| | | private JLabel errorCodeLabel; |
| | | private JLabel errorMessageLabel; |
| | | private JLabel rollLabel; |
| | | private JLabel pitchLabel; |
| | | private JLabel yawLabel; |
| | | |
| | | private JLabel updateTimeLabel; |
| | |
| | | // 横滚角 |
| | | addLabelRow(grid, gbc, currentRow++, "横滚角:", rollLabel = createValueLabel(), titleFont, valueFont); |
| | | |
| | | // 俯仰角 |
| | | addLabelRow(grid, gbc, currentRow++, "俯仰角:", pitchLabel = createValueLabel(), titleFont, valueFont); |
| | | |
| | | // 偏航角 |
| | | addLabelRow(grid, gbc, currentRow++, "偏航角:", yawLabel = createValueLabel(), titleFont, valueFont); |
| | | |
| | |
| | | errorCodeLabel = null; |
| | | errorMessageLabel = null; |
| | | rollLabel = null; |
| | | pitchLabel = null; |
| | | yawLabel = null; |
| | | |
| | | updateTimeLabel = null; |
| | |
| | | errorCodeLabel.setText(formatDeviceValue(device.getError_code())); |
| | | errorMessageLabel.setText(formatDeviceValue(device.getError_message())); |
| | | rollLabel.setText(formatDeviceValue(device.getRoll())); |
| | | pitchLabel.setText(formatDeviceValue(device.getPitch())); |
| | | yawLabel.setText(formatDeviceValue(device.getYaw())); |
| | | |
| | | updateTimeLabel.setText(formatTimestamp(device.getGupdateTime())); |
| | |
| | | if (errorCodeLabel != null) errorCodeLabel.setText(value); |
| | | if (errorMessageLabel != null) errorMessageLabel.setText(value); |
| | | if (rollLabel != null) rollLabel.setText(value); |
| | | if (pitchLabel != null) pitchLabel.setText(value); |
| | | if (yawLabel != null) yawLabel.setText(value); |
| | | |
| | | if (updateTimeLabel != null) updateTimeLabel.setText(value); |