Bug 587 - Arrows on map display error
Summary: Arrows on map display error
Status: RESOLVED FIXED
Alias: None
Product: Group31Bullship
Classification: Unclassified
Component: Map (show other bugs)
Version: Demo 1.0
Hardware: PC Windows
: Normal critical
Assignee: Kobayashi
URL:
Depends on:
Blocks:
 
Reported: 2021-11-20 19:49 HKT by Kannachan
Modified: 2021-11-20 20:27 HKT (History)
1 user (show)

See Also:


Attachments
Screenshot of the map in the software with display error (80.06 KB, image/jpeg)
2021-11-20 19:49 HKT, Kannachan
Details

Note You need to log in before you can comment on or make changes to this bug.
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.