Bug 587

Summary: Arrows on map display error
Product: Group31Bullship Reporter: Kannachan <bullshipkanna>
Component: MapAssignee: Kobayashi <bullshipkobayashi>
Status: RESOLVED FIXED    
Severity: critical CC: bullshipkobayashi
Priority: Normal    
Version: Demo 1.0   
Hardware: PC   
OS: Windows   
Attachments: Screenshot of the map in the software with display error

Description Kannachan 2021-11-20 19:49:56 HKT
Created attachment 91 [details]
Screenshot of the map in the software with display error

Problem description: 
The positions of the arrowheads in the map are inaccurate. It looks like the coordinates of the arrowheads are transformed.

Step to reproduce: 
1. Edit the starting point and the destination point with appropriate integers in Map.java.
2. Run Main.java.

Actual result: 
As shown in the attachment, the red arrowheads are displayed on the wrong coordinates, when the black lines are well connected and the black passing spots are shown.

Expected result: 
The red arrowheads are displayed on the correct coordinates, which are at the end of each line and pointing at the right angle.
Comment 1 Kobayashi 2021-11-20 20:13:02 HKT
We understand the problem and we released version Demo 1.1, in which the function paintComponent() in Map.java is revised and updated. The display error is caused by some logical errors in the part of arrowheads' coordinate calculations, translation, and transformation. We change the calculation method and now the arrowheads should display at a correct position on the map. For more information, we sent you an email for you to compare the changed details of the new version with the earlier released version of our software.
Comment 2 Kobayashi 2021-11-20 20:16:58 HKT
We understand the problem and we released version Demo 1.1, in which the function paintComponent() in Map.java is revised and updated. The display error is caused by some logical errors in the part of arrowheads' coordinate calculations, translation, and transformation. We change the calculation method and now the arrowheads should display at a correct position on the map. For more information, we sent you an email for you to compare the changed details of the new version with the earlier released version of our software.