]> gerrit.simantics Code Review - simantics/district.git/commit
Usability fixes for district network node hover info showing 50/3650/1
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Fri, 29 Nov 2019 14:04:42 +0000 (16:04 +0200)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Fri, 29 Nov 2019 14:21:21 +0000 (16:21 +0200)
commitf888cdd5d8d8e9b958de302c96cf6b013519eaca
treee9d8dc2b9954b5c0a71005256222b01ef6835f6c
parent932a9b82b349d8e63a36df1cdc5cbb37bdd8ff80
Usability fixes for district network node hover info showing

Previously there was really no logic with what is shown if the cursor
was on top of multiple elements at the same time.

Now the hovering logic always prefers the closest vertex that is picked
from near the mouse cursor and only if there are no nearby vertices,
will edges be selected. Picking also takes the current view zoom into
account properly which it didn't do before.

Also includes some code cleanup.

gitlab #44

Change-Id: I8696ff12853f0de2040db91909a1c4512fe4b2fe
(cherry picked from commit 86d471d96d6bc11bf7629113e57c6d9a9916e608)
org.simantics.district.network.ontology/graph/DistrictNetworkProfiles.pgraph
org.simantics.district.network.ui/adapters.xml
org.simantics.district.network.ui/src/org/simantics/district/network/ui/NetworkDrawingParticipant.java
org.simantics.district.network.ui/src/org/simantics/district/network/ui/nodes/DistrictNetworkHoverInfoNode.java
org.simantics.district.network.ui/src/org/simantics/district/network/ui/nodes/NetworkDrawingNode.java
org.simantics.district.network.ui/src/org/simantics/district/network/ui/participants/DynamicVisualisationContributionsParticipant.java
org.simantics.district.network.ui/src/org/simantics/district/network/ui/styles/DistrictNetworkHoverInfoStyle.java