Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
327 commits
Select commit Hold shift + click to select a range
d2e2f2c
Fixed bug where intersections outside the map were being detected
altair1673 Jan 10, 2023
56cbdc8
Changed heatmaps to only show the weight values in text form
altair1673 Jan 11, 2023
a810062
Added new ThiessenPolygon class to try new algorithm
altair1673 Jan 12, 2023
c19eb34
Added in Parabola class for new algorithm for thiessen polygons
altair1673 Jan 13, 2023
aa3c33b
Floating point error bug seemingly fixed
altair1673 Jan 16, 2023
7917682
Exporting menu implemented
altair1673 Jan 16, 2023
8a49cdf
Added rectangle to select multiple markers
altair1673 Jan 17, 2023
cb44db3
Rectangle can now be reshaped based on where the user drags their mouse
altair1673 Jan 17, 2023
2185f6d
Multiple marker selection enabled
altair1673 Jan 18, 2023
3ea0197
Zoom All and Zoom Selection detects the location the map should be pa…
altair1673 Jan 18, 2023
92e2587
Map moves close to correct location when "Zoom Selected" is clicked
altair1673 Jan 23, 2023
eb66071
Refactored Panning
altair1673 Jan 24, 2023
882cdb9
Zoom on correct location for "Zoom Selection" and "Zoom all"
altair1673 Jan 25, 2023
2f9169c
Auto zoom now zooms to correct level only if map is zoomed out to be…
altair1673 Jan 27, 2023
a84dade
Zoom to location now has all coordinate options working
altair1673 Feb 1, 2023
7c4299c
Bug fixed where clicking Zoom to All would start an infinite loop
altair1673 Feb 1, 2023
1a26955
Refactored zooming function
altair1673 Feb 3, 2023
68fa722
Infinite Looping bug fixed when user is zoomed too far in
altair1673 Feb 3, 2023
f78289b
Added some documentation
altair1673 Feb 8, 2023
faa04db
Writing tests
altair1673 Feb 8, 2023
15bce1f
Wrote some tests for MapView class
altair1673 Feb 9, 2023
9979eb1
Wrote tests for circle and polygon markers
altair1673 Feb 10, 2023
16a56a7
Reversed Changes made to original map view
altair1673 Feb 12, 2023
78e3d02
Commented out code removed, made path file relative
altair1673 Feb 13, 2023
bd5a445
Adding some javadoc to classes
altair1673 Feb 13, 2023
65c51cc
Changed background fill and border stroke functions to be compatible …
altair1673 Feb 13, 2023
b64130e
Added some more JavaDoc
altair1673 Feb 13, 2023
6d33e4a
Changed tests to use Mockito
altair1673 Feb 14, 2023
cc672e3
Changed marker tests to use Mockito
altair1673 Feb 14, 2023
87a4b6e
Incorporated spy method in MapViewNGTest class
altair1673 Feb 14, 2023
d69e174
Used mockito spy method in marker test classes
altair1673 Feb 14, 2023
1db5f87
More use the the spy() function
altair1673 Feb 14, 2023
2893f96
Mocking the top component in every test function
altair1673 Feb 14, 2023
e423302
Removed some commented code
altair1673 Feb 14, 2023
701e0d7
Removed Code Smells
altair1673 Feb 15, 2023
02a4d4c
Fixed more code smells
altair1673 Feb 16, 2023
b3b87d1
Fixed some more smells
altair1673 Feb 16, 2023
e0bf2b3
Fixed smells and bugs
altair1673 Feb 16, 2023
83c2977
Fixed some indentation problems
altair1673 Feb 16, 2023
a0de74a
Fixed some more spacing stuff
altair1673 Feb 16, 2023
8ded37b
Code Smell Fixing
altair1673 Feb 17, 2023
f3fb157
Fixed bugs
altair1673 Feb 17, 2023
3479512
Fixed smells
altair1673 Feb 17, 2023
66e7d41
Simplified mapview constructor
altair1673 Feb 17, 2023
3ff7c06
Added Heatmap layer tests
altair1673 Feb 20, 2023
d7fb497
Unit tested ExtractCoordFromGraph plugin
altair1673 Feb 21, 2023
146d16e
Tried to fix build issues with ExtractCoords plugin
altair1673 Feb 21, 2023
2d58f77
Changed order of Mocks to see if that'll change anything
altair1673 Feb 22, 2023
dde2796
SelectOnGraph plugin test works locally
altair1673 Feb 22, 2023
23aa237
Made Vec3 tests
altair1673 Feb 22, 2023
21cdb0c
Test for IntersectionNode made
altair1673 Feb 22, 2023
8188eaf
Using Mockito spy function on everything
altair1673 Feb 22, 2023
adb8158
Removed code from setUpClass and tearDownClass in the ExtractCoordsFr…
altair1673 Feb 22, 2023
6b40968
Added code back again
altair1673 Feb 22, 2023
65c2537
Made fix to the ExtractCoordsFromGraph test
altair1673 Feb 23, 2023
1b99bc7
Wrote test for EntityPathsLayer
altair1673 Feb 23, 2023
fb8a155
Implemented PathLayer Tests but its not clear if right thing is being…
altair1673 Feb 24, 2023
256e426
Wrapped mocked statics with try blocks
altair1673 Feb 27, 2023
b87d086
Made requested changes
altair1673 Mar 6, 2023
8f50775
Fixed some imports
altair1673 Mar 6, 2023
f10d2f3
Removed logs and added finals
altair1673 Mar 7, 2023
c7f5bbc
Added description of classes
altair1673 Mar 7, 2023
8a8b2a7
Removed Point marker error region options from layers drop down since…
altair1673 Mar 7, 2023
f1517b5
Changed size of menu items, changed location of map file
altair1673 Mar 9, 2023
fd1cdbe
Selected only option works for queried markers
altair1673 Mar 15, 2023
470bfa4
Zoom to location menu is not jittering
altair1673 Mar 15, 2023
b71ea72
Text for tools drop down no longer small and cut-off
altair1673 Mar 15, 2023
3ba2a67
Info overlay moved to toolbar
altair1673 Mar 15, 2023
23b915b
Changed background colour of lattitude and longitude labels
altair1673 Mar 15, 2023
41d39d9
Tools overlay is now not attatched to the map
altair1673 Mar 15, 2023
5ed51dc
Change help button icon
altair1673 Mar 15, 2023
19e3592
Added help button functionality
altair1673 Mar 15, 2023
faaf33e
Fixed some finals
altair1673 Mar 15, 2023
78605f5
Added in more finals
altair1673 Mar 16, 2023
e92ed7d
Fixed code smells
altair1673 Mar 17, 2023
0664558
Trying to fix the overflow menu in toolbar
altair1673 Mar 17, 2023
bad9322
Added more finals
altair1673 Mar 22, 2023
14f622f
Toolbar removed and info overlay moved to second line below toolbar
altair1673 Mar 23, 2023
f5ca16b
Changed colour of longitude and latitude field
altair1673 Mar 23, 2023
f0af648
OverlayPane sticks to top right
altair1673 Mar 23, 2023
bd9f658
Added map overlay at bottom right of screen
altair1673 Mar 27, 2023
c61873f
OverView overlay's red square semi-functions
altair1673 Mar 28, 2023
04ba4ae
Overview Overlay redbox changes size when main map is zoomed
altair1673 Mar 28, 2023
e4d0631
Changed how width of viewport rectangle is calculated
altair1673 Mar 28, 2023
7373147
Panning rectangle in OverView is not on top of mini map
altair1673 Mar 29, 2023
af0ae12
OverView Pane pan box now covers most of the map view scene
altair1673 Mar 29, 2023
f4e524f
Merge branch 'master' into feature/map-view-rewrite
OrionsGuardian Apr 13, 2023
9c1ebcd
Changed window width of Zoom To Location pane
altair1673 May 3, 2023
ad1e092
Made some of the requested changes
altair1673 May 3, 2023
cc05eb1
Fixed return statement
altair1673 May 4, 2023
62f1628
Made some of the requested changes
altair1673 May 4, 2023
04c6f3b
Made some changes to theiessen polygon class
altair1673 May 5, 2023
3c50b3e
Made some more changes
altair1673 May 5, 2023
7f22f33
Made more changes
altair1673 May 9, 2023
ba12459
Fixed tests
altair1673 May 10, 2023
33a663a
Fixed code smells
altair1673 May 10, 2023
df4ba62
Made requested changes
altair1673 May 16, 2023
ba3bfd8
Fixed test
altair1673 May 16, 2023
91fe485
Changed whats new text
altair1673 May 16, 2023
38c4485
Merge branch 'master' into feature/map-view-rewrite
altair1673 May 16, 2023
69a4d36
Fixed some code smells
altair1673 May 17, 2023
c753ca3
Refactored ThiessenPolygonsLayer
altair1673 May 18, 2023
d9504f3
Made requested changes
altair1673 May 23, 2023
a55b5a5
Removed loggers and changed whats new
altair1673 May 25, 2023
a3f6aef
Null check added to ExtractCoordsFromMap class functino
altair1673 May 29, 2023
efff657
Markers is a menu item now
altair1673 May 29, 2023
efa4b53
Added more icons
altair1673 May 30, 2023
5f74c00
Added export icon
altair1673 May 30, 2023
458bdba
Changed UI of zoom to location
altair1673 May 30, 2023
25680b0
Menu options now only work if there is an active graph
altair1673 May 30, 2023
3aea16e
Made icons a consistent colour
altair1673 May 31, 2023
03b04a7
Zoom to location bug fixed
altair1673 Jun 8, 2023
0310431
Removed commented code
altair1673 Jun 8, 2023
02fd945
Trying to resize markers
altair1673 Jun 9, 2023
16e3558
Made icons lighter
altair1673 Jun 9, 2023
00f4ffc
Point marker changes position when size changes
altair1673 Jun 13, 2023
44ee5e6
When zooming in map markers are offset on the y-axis to get it closer…
altair1673 Jun 14, 2023
aab6308
Refactored adding and removing layers
altair1673 Jun 14, 2023
8a712e9
Point Markers now stay in same place when the user zooms in
altair1673 Jun 14, 2023
c64094d
Set debug shapes visibility to false, they will be removed later.
altair1673 Jun 14, 2023
175adec
Trying to get user point markers to have the same effect
altair1673 Jun 14, 2023
a410293
User point markers now stay in position when zooming in
altair1673 Jun 15, 2023
40022f1
Fixed test
altair1673 Jun 15, 2023
f399a06
User point markers spawn in correct size no matter the zoom level of map
altair1673 Jun 15, 2023
eab849d
Queried point markers now spawn at correct size
altair1673 Jun 15, 2023
4a093cd
Refactored marker scaling and resizing
altair1673 Jun 15, 2023
8da7643
Wrote test for MenuButtonCheckComboBox
altair1673 Jun 15, 2023
89ae96a
Fixed some code smells
altair1673 Jun 15, 2023
602fbcc
Tools overlay is on the left side now
altair1673 Jun 16, 2023
6826b20
Zoom to selection now scale marker properly
altair1673 Jun 16, 2023
34a3617
Made requested changes
altair1673 Jun 23, 2023
9ed5937
Added a refresh button to load in any new markers that are added
altair1673 Jun 23, 2023
f232008
Removed commented out code.
altair1673 Jun 23, 2023
a25324d
New nodes with lat and long attributes are automatically added to the…
altair1673 Jun 23, 2023
ae662c8
Made sure selected markers are definitely cleared
altair1673 Jun 23, 2023
06ede9e
Removed refresh button
altair1673 Jun 26, 2023
01c9430
Removed space
altair1673 Jun 27, 2023
535ff78
Merge branch 'feature/map-view-rewrite' of https://github.com/constel…
OrionsGuardian Jun 28, 2023
711472d
Geoshapes can now be rendered
altair1673 Jul 4, 2023
f226c11
Selection logic works properly
altair1673 Jul 4, 2023
240075b
Fixed bug where duplicate geo shapes were being added
altair1673 Jul 4, 2023
90f0353
Fixed dragging bug
altair1673 Jul 5, 2023
b1830ca
GeoShape colours working properly
altair1673 Jul 5, 2023
50e7b97
Geo shape labels show up
altair1673 Jul 5, 2023
1ecd4d5
Labels now scale
altair1673 Jul 5, 2023
95a7013
Trying to fix scaling issues with zooming
altair1673 Jul 6, 2023
06a0ba9
Marker labels have correct X coordinate when scaling
altair1673 Jul 11, 2023
00421c1
Removed comments
altair1673 Jul 11, 2023
3358ca0
Merge branch 'feature/map-view-rewrite' of https://github.com/constel…
OrionsGuardian Jul 12, 2023
303738e
Trying to make thessien polygons more efficient
altair1673 Jul 13, 2023
6c715b4
Merge branch 'master' into feature/map-view-rewrite
OrionsGuardian Jul 13, 2023
35b876b
Added some classes for Voronoi implementation
altair1673 Jul 17, 2023
60f1660
Added beach line class
altair1673 Jul 17, 2023
ea97aa6
Added functions to find right and left leaf
altair1673 Jul 24, 2023
e998ee9
Added more functions for polygons
altair1673 Jul 24, 2023
87f80e0
Still working through voronoi diagram
altair1673 Jul 28, 2023
d3c5d1c
Made new classes for a simpler voronoi implementation
altair1673 Jul 28, 2023
d44ff62
New edges and arcs should now be correctly created
altair1673 Jul 28, 2023
df3953c
Started working on remove arc function
altair1673 Jul 31, 2023
a2ab9a8
Removed uneeded files
altair1673 Jul 31, 2023
c8d541c
Trying to get intersection calculations right
altair1673 Aug 3, 2023
4bc0107
Trying to fix bugs in polygons layer
altair1673 Aug 4, 2023
e4c19f0
Lines are being drawn but not the correct lines
altair1673 Aug 7, 2023
74dcef1
Merge branch 'feature/map-view-rewrite' of https://github.com/constel…
OrionsGuardian Aug 7, 2023
f3bd206
Somewhat correct shapes are spawned
altair1673 Aug 7, 2023
655c3af
Correct shapes spawn but not how I want them to
altair1673 Aug 7, 2023
e87e4cc
Shapes are back to being incorrect
altair1673 Aug 7, 2023
98b4db0
Fixed intersection bug
altair1673 Aug 9, 2023
885c0ba
Trying to fix new bug thats got to do with node removals from the tree
altair1673 Aug 10, 2023
6dab476
Fixed intersection bug
altair1673 Aug 11, 2023
c48f293
Trying to add intersection points to a map
altair1673 Aug 11, 2023
a33a44f
Normal Shapes generate but corner shapes don't
altair1673 Aug 11, 2023
75b137a
Renamed some functions
altair1673 Aug 11, 2023
683f621
Corners are now part of shapes
altair1673 Aug 14, 2023
3b68317
Fixed bug where distance was being calculated from the intersection p…
altair1673 Aug 15, 2023
4162886
Fixed intersection issues with borders
altair1673 Aug 16, 2023
9d93b54
Wrote some comments
altair1673 Aug 17, 2023
21538be
Corner logic still needs some work
altair1673 Aug 17, 2023
9b4bfbd
Merge branch 'master' into feature/map-view-rewrite
altair1673 Aug 17, 2023
0d85563
Fixed corner logic but it can be improved
altair1673 Aug 18, 2023
97f6afe
Handles single vertical intersection edge case
altair1673 Aug 18, 2023
a8207ca
Fixed some code smells
altair1673 Aug 18, 2023
0fced14
Removed old ThiessenPolygonsLayer removed
altair1673 Aug 21, 2023
8f487f3
Removed offset from point markers
altair1673 Aug 21, 2023
adde320
Playing around with lat/long to x and y conversions
altair1673 Aug 21, 2023
d305451
Still trying to get offsets right
altair1673 Aug 23, 2023
8a77d12
Trying new formula
altair1673 Aug 23, 2023
cf58cb5
Still trying to fix offset
altair1673 Aug 24, 2023
1686c49
Removed some files
altair1673 Aug 24, 2023
6632d05
Marker offset is more complicated than it seems
altair1673 Aug 25, 2023
ba7135e
Somewhat fixed marker position, needs discussion
altair1673 Aug 28, 2023
3650681
Trying new map svg
altair1673 Aug 29, 2023
783845e
Still on offsets
altair1673 Aug 31, 2023
8055a34
Fixed some imports
altair1673 Sep 12, 2023
7f3ad7c
Marker positioning issues
altair1673 Sep 20, 2023
bcdb75b
Changed map file to see if that'd make a difference
altair1673 Oct 10, 2023
5ec228a
Trying to find the zoom level of an svg image
altair1673 Nov 14, 2023
e532162
Refactored label scaling functionality
altair1673 Nov 14, 2023
541bc0d
Uncommented marker scaling code
altair1673 Nov 28, 2023
2606aff
Merge branch 'master' into feature/map-view-rewrite
altair1673 Nov 28, 2023
218c8b1
Merge branch 'feature/map-view-rewrite' of https://github.com/constel…
OrionsGuardian Nov 29, 2023
93d80bc
Removed extra latToY function
altair1673 Dec 4, 2023
7d25e12
Fixed marker offset issues
altair1673 Dec 5, 2023
418c652
Got rid of offsets being added in various points of the code
altair1673 Dec 5, 2023
8619032
Removed unused maps
altair1673 Dec 5, 2023
b46922a
Merge branch 'feature/map-view-rewrite' of https://github.com/constel…
OrionsGuardian Dec 5, 2023
289767a
Commented out green squares
altair1673 Dec 5, 2023
e8bf45b
Moved more offset variables
altair1673 Dec 5, 2023
83e1351
Fixed tests
altair1673 Dec 5, 2023
9a0b736
Merge branch 'feature/map-view-rewrite' of https://github.com/constel…
OrionsGuardian Dec 5, 2023
9a688a8
First cut of utilities class to support multiple map extents.
serpens24 Dec 7, 2023
c1e5711
Merge branch 'feature/map-view-rewrite' of https://github.com/constel…
serpens24 Dec 7, 2023
3c2101e
Replaced MarkerUtilities with new MapConversions utilities class. Thi…
serpens24 Dec 7, 2023
ae415fc
Merge branch 'feature/map-view-rewrite' of https://github.com/constel…
OrionsGuardian Dec 7, 2023
26f0f52
Fixed map / marker positioning and width based on zoom level
OrionsGuardian Dec 7, 2023
18ec1d7
Fix for right click adding user markers.
OrionsGuardian Dec 7, 2023
2b37550
Allow maps to be loaded. Multiple cleanup activites. Lots to be done …
serpens24 Dec 8, 2023
b38505c
Added more maps. Fixed broken tests.
serpens24 Dec 9, 2023
58a7734
Added a bit more robustness to the svg parser.
OrionsGuardian Dec 12, 2023
9daaa92
Updating new MapView to use built in ScrollPane functionality
serpens24 Dec 14, 2023
a843bf6
Merge branch 'feature/map-view-rewrite' of https://github.com/constel…
serpens24 Dec 14, 2023
44e2c9f
Added mapDetails 'type' to support raster images in future.
serpens24 Dec 14, 2023
bb5daec
Sample code to use an svgCanvas
OrionsGuardian Dec 15, 2023
c086f84
Got overview overlay working.
serpens24 Dec 18, 2023
3f8e75a
Added call to create overview overlay
serpens24 Dec 18, 2023
6132f22
Merge branch 'feature/map-view-rewrite' of https://github.com/constel…
serpens24 Dec 18, 2023
273dc9f
cleaning up marker scaling
serpens24 Dec 18, 2023
3e95adb
Update PointMarker.java
serpens24 Dec 18, 2023
5977c15
GeoShapePolygonMarker color management
serpens24 Dec 18, 2023
08df7b5
CircleMarker fixed scaling and set colours to use from mapDetails
serpens24 Dec 18, 2023
c4c5be2
Added initial updates to line and polygon marker
serpens24 Dec 18, 2023
674bfaf
Removed magic numbers in marker constructors
serpens24 Dec 18, 2023
cb6447e
Made scaling of PointMarker use the base scaleValue like other classes
serpens24 Dec 18, 2023
61da905
restore mouseAnchor and translate variables for now
serpens24 Dec 19, 2023
57f3bfb
Remove incorrect )
serpens24 Dec 19, 2023
4178fff
Point/GeoShape MArker attribute color updates POC
serpens24 Dec 19, 2023
ba14670
Further color updates. Got tests running for now.
serpens24 Dec 19, 2023
6f81331
UserPointMarker modified to align with other marker scaling.
serpens24 Dec 19, 2023
ee87f15
Fixed OPACITY spelling mistake.
serpens24 Dec 19, 2023
4d093b7
Cleanup PolygonMarker colors
serpens24 Dec 19, 2023
65a7f09
Correct user drawn line color. Remove need for redundant extra polygo…
serpens24 Dec 19, 2023
fff4200
Fix bug where circles nearedge of maps spills out of the map and chan…
serpens24 Dec 19, 2023
f81b4a1
Refinement of colour management.
serpens24 Dec 20, 2023
c489125
Scaling of Marker Text
serpens24 Dec 20, 2023
deff2ae
Reworked ZoomToAll and ZoomToSelection
serpens24 Dec 22, 2023
239cbfa
Trying third party svg renderer and smaller world map
OrionsGuardian Jan 23, 2024
7052654
Merge branch 'mymapviewmods' into feature/map-view-rewrite
OrionsGuardian Jan 23, 2024
2b643be
WIP - using a third party svg renderer and a new default map
OrionsGuardian Jan 25, 2024
f9b694a
Merge branch 'master' into feature/map-view-rewrite
OrionsGuardian May 8, 2024
41ea67d
Fixed and revised functionality in many areas
OrionsGuardian May 28, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ private void run(final Graph graph) {

private void editGraph(final VisualManager manager, WritableGraph wg) {
initialise(wg);

while (true) {
final List<VisualChange> changes = animate(wg);
if (!changes.isEmpty() && manager != null) {
Expand Down
36 changes: 36 additions & 0 deletions CoreMapView/nbproject/project.xml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,14 @@
<specification-version>1.0</specification-version>
</run-dependency>
</dependency>
<dependency>
<code-name-base>au.gov.asd.tac.constellation.preferences</code-name-base>
<build-prerequisite/>
<compile-dependency/>
<run-dependency>
<specification-version>1.0</specification-version>
</run-dependency>
</dependency>
<dependency>
<code-name-base>au.gov.asd.tac.constellation.utilities</code-name-base>
<build-prerequisite/>
Expand All @@ -94,6 +102,23 @@
<specification-version>1.0.6</specification-version>
</run-dependency>
</dependency>
<dependency>
<code-name-base>org.netbeans.modules.settings</code-name-base>
<build-prerequisite/>
<compile-dependency/>
<run-dependency>
<release-version>1</release-version>
<specification-version>1.49.1</specification-version>
</run-dependency>
</dependency>
<dependency>
<code-name-base>org.openide.actions</code-name-base>
<build-prerequisite/>
<compile-dependency/>
<run-dependency>
<specification-version>6.47</specification-version>
</run-dependency>
</dependency>
<dependency>
<code-name-base>org.openide.awt</code-name-base>
<build-prerequisite/>
Expand All @@ -110,6 +135,14 @@
<specification-version>7.70</specification-version>
</run-dependency>
</dependency>
<dependency>
<code-name-base>org.openide.modules</code-name-base>
<build-prerequisite/>
<compile-dependency/>
<run-dependency>
<specification-version>7.48.1</specification-version>
</run-dependency>
</dependency>
<dependency>
<code-name-base>org.openide.util</code-name-base>
<build-prerequisite/>
Expand Down Expand Up @@ -161,6 +194,9 @@
<package>au.gov.asd.tac.constellation.views.mapview.overlays</package>
<package>au.gov.asd.tac.constellation.views.mapview.providers</package>
<package>au.gov.asd.tac.constellation.views.mapview.utilities</package>
<package>au.gov.asd.tac.constellation.views.mapview2</package>
<package>au.gov.asd.tac.constellation.views.mapview2.plugins</package>
<package>au.gov.asd.tac.constellation.views.mapview2.utilities</package>
</public-packages>
</data>
</configuration>
Expand Down
194 changes: 194 additions & 0 deletions CoreMapView/release/modules/ext/data/AfricaAndMiddleEast1000x1018.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
172 changes: 172 additions & 0 deletions CoreMapView/release/modules/ext/data/Americas1000x1491.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
114 changes: 114 additions & 0 deletions CoreMapView/release/modules/ext/data/EuropeAndUK1000x1443.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
256 changes: 256 additions & 0 deletions CoreMapView/release/modules/ext/data/FullWorld1000x999.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
512 changes: 512 additions & 0 deletions CoreMapView/release/modules/ext/data/MercratorMapView6.txt

Large diffs are not rendered by default.

50 changes: 50 additions & 0 deletions CoreMapView/release/modules/ext/data/SEAsia1000x1090.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
512 changes: 512 additions & 0 deletions CoreMapView/release/modules/ext/data/WorldMap1000x999.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ public void componentResized(ComponentEvent event) {
if (markerState.getColorScheme().getTransactionAttribute() != null) {
addAttributeValueChangeHandler(markerState.getColorScheme().getTransactionAttribute(), updateMarkers);
}

}

private void zoomLocationBasedOnGeoType(final String geoType, final String location) throws AssertionError {
Expand Down Expand Up @@ -598,7 +599,6 @@ public static class SelectOnGraphPlugin extends SimpleEditPlugin {

private final GraphElementType graphElementType;
private final Set<Integer> elementIds;

public SelectOnGraphPlugin(final GraphElementType graphElementType, final Set<Integer> elementIds) {
this.graphElementType = graphElementType;
this.elementIds = elementIds;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import processing.core.PGraphics;
import processing.core.PImage;


/**
*
* @author cygnus_x-1
Expand All @@ -41,6 +42,7 @@ public class DayNightLayer extends MapLayer {
private static final int NIGHT_COLOR = MarkerUtilities.color(127, 0, 0, 0);
private static final int EARTH_RADIUS_M = 6_371_008;


@Override
public String getName() {
return "Day / Night";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ public List<Tuple<GraphElement, GraphElement>> getPathsForElement(final Readable
final SchemaVertexType vertexType = graph.getObjectValue(vertexTypeAttributeId, element.getId());
if (vertexType != null && vertexType.isSubTypeOf(AnalyticConcept.VertexType.LOCATION)) {
final int neighbourCount = graph.getVertexNeighbourCount(element.getId());

for (int neighbourPosition = 0; neighbourPosition < neighbourCount; neighbourPosition++) {
final int neighbourId = graph.getVertexNeighbour(element.getId(), neighbourPosition);
final SchemaVertexType neighbourType = graph.getObjectValue(vertexTypeAttributeId, neighbourId);
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/*
* Copyright 2010-2024 Australian Signals Directorate
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
OpenIDE-Module-Display-Category=Core
OpenIDE-Module-Long-Description=\
The Map View framework.
OpenIDE-Module-Name=Core Map View
OpenIDE-Module-Short-Description=Core Map View


Original file line number Diff line number Diff line change
@@ -0,0 +1,178 @@
/*
* Copyright 2010-2024 Australian Signals Directorate
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package au.gov.asd.tac.constellation.views.mapview2;

import java.io.File;
import javafx.geometry.Insets;
import javafx.scene.paint.Color;
import javafx.scene.paint.CycleMethod;
import javafx.scene.paint.LinearGradient;
import javafx.scene.paint.Paint;
import javafx.scene.paint.Stop;

/**
* Store details of maps available for selection within the MapView.
*
* @author serpens24
*/
public class MapDetails {

private static final Stop[] STOPS = new Stop[] {new Stop(0, Color.LIGHTGREEN), new Stop(1, Color.BLACK)};

// For now define these values as static, but potentially allow diferent maps to adjust
public static final double MARKER_LINE_WIDTH = 0.5;
public static final double MARKER_OPACITY = 0.55;
public static final double MARKER_DRAWING_OPACITY = 0.25;
public static final Paint MARKER_STROKE_PAINT_GRADIENT = new LinearGradient(0, 0, 1, 1, true, CycleMethod.NO_CYCLE, new Stop[] {new Stop(0, Color.LIMEGREEN), new Stop(1, Color.BLACK)});
public static final Paint MARKER_STROKE_PAINT_SELECTED_GRADIENT = new LinearGradient(0, 0, 1, 1, true, CycleMethod.NO_CYCLE, new Stop[] {new Stop(0, Color.GOLD), new Stop(1, Color.ORANGE)});
public static final Paint MARKER_STROKE_PAINT_HIGHLIGHT_GRADIENT = new LinearGradient(0, 0, 1, 1, true, CycleMethod.NO_CYCLE, new Stop[] {new Stop(0, Color.KHAKI), new Stop(1, Color.FIREBRICK)});
public static final Color MARKER_STROKE_COLOUR = Color.web("#000000");
public static final Color MARKER_MULTI_FILL_COLOUR = Color.web("#FFFFFF", MARKER_OPACITY);
public static final Color MARKER_DEFAULT_FILL_COLOUR = Color.web("#3F7FFF", MARKER_OPACITY);
public static final Color MARKER_SELECTED_FILL_COLOUR = Color.web("#FF0000", MARKER_OPACITY);
public static final Color MARKER_HIGHLIGHTED_FILL_COLOUR = Color.web("#FFFF00", MARKER_OPACITY);
public static final Color MARKER_USER_DRAWN_LINE_COLOUR = Color.web("#FF8C00");
public static final Color MARKER_USER_DRAWN_LINE_SELECTED_COLOUR = Color.web("#FF0000");
public static final Color MARKER_USER_DRAWING_FILL_COLOUR = Color.web("#000000", MARKER_DRAWING_OPACITY);
public static final Color MARKER_USER_DRAWN_FILL_COLOUR = Color.web("#FF8C00", MARKER_OPACITY);

private final MapType type; // The type of map layer that is being described
private final double width; // Width in "map units" of the map. Units may vary based on map type.
private final double height; // Height in "map units" of the map. Units may vary based on map type.
private final double topLat; // Latitude of the top edge of the map.
private final double bottomLat; // Latitude of the bottom edge of the map.
private final double leftLon; // Longitude of the left edge of the map.
private final double rightLon; // Longitude of the right edge of the map.
private final Insets borderMilliInsets; // how much space around the outside of the map image is decorative border
private final String name; // Name to identify the map by.
private final File mapFile; // File object containing the map.

/**
* Create a MapDetails object corresponding to the supplied values.
*
* @param type // The type of map layer being described
* @param width // Width in "map units" of the map. Units may vary based on map type.
* @param height // Height in "map units" of the map. Units may vary based on map type.
* @param topLat // Latitude of the top edge of the map.
* @param leftLon // Longitude of the left edge of the map.
* @param bottomLat // Latitude of the bottom edge of the map.
* @param rightLon // Longitude of the right edge of the map.
* @param name // Name to identify the map by.
* @param mapFile // File object containing the map.
*/
public MapDetails(final MapType type, final double width, final double height,
final double topLat, final double bottomLat, final double leftLon, final double rightLon,
final Insets borderInsets, final String name, final File mapFile) {
this.type = type;
this.width = width;
this.height = height;
this.topLat = topLat;
this.leftLon = leftLon;
this.bottomLat = bottomLat;
this.rightLon = rightLon;
this.borderMilliInsets = borderInsets;
this.name = name;
this.mapFile = mapFile;
}

/**
* Get the width in "map units" of the map. Units may vary based on map type.
*
* @return Width in in "map units" of the map. Units may vary based on map type.
*/
public double getWidth() {
return width;
}

/**
* Get the height in "map units" of the map. Units may vary based on map type.
*
* @return Height in in "map units" of the map. Units may vary based on map type.
*/
public double getHeight() {
return height;
}

/**
* Get the latitude of the top edge of the map.
*
* @return Latitude of the top edge of the map.
*/
public double getTopLat() {
return topLat;
}

/**
* Get the latitude of the bottom edge of the map.
*
* @return Latitude of the bottom edge of the map.
*/
public double getBottomLat() {
return bottomLat;
}

/**
* Get the longitude of the left edge of the map.
*
* @return Longitude of the left edge of the map.
*/
public double getLeftLon() {
return leftLon;
}

/**
* Get the longitude of the right edge of the map.
*
* @return Longitude of the right edge of the map.
*/
public double getRightLon() {
return rightLon;
}

/**
* Get any border space around the map edges to exclude from any lat/long calculations
* top, right, bottom, left
* values to be divided by 1000 to get equivalent coordinate offsets.
* @return
*/
public Insets getBorderInsets() {
return borderMilliInsets;
}

/**
* Get the name of the map.
* @return Name of the map.
*/
public String getMapName() {
return name;
}

/**
* Get the File object containing the map.
* @return File object containing the map.
*/
public File getMapFile() {
return mapFile;
}

/**
* Provides future scope to display base map layers of formats other than SVG paths.
*/
public enum MapType {
SVG,
RASTER // ie JPG, PNG etc. THese may provide greater details of a specific area but are unable to scale well
}
}
Loading