You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by jo...@apache.org on 2021/05/10 07:11:43 UTC
[isis] 06/12: rename MapPanel to SvgPanel
This is an automated email from the ASF dual-hosted git repository.
joergrade pushed a commit to branch ISIS-2505_Catch_Up_With_Demo_Examples
in repository https://gitbox.apache.org/repos/asf/isis.git
commit a64d8924ba41789d0ecde2d969fd1ce58c18d051
Author: Jörg Rade <jo...@kuehne-nagel.com>
AuthorDate: Wed Apr 28 12:38:58 2021 +0200
rename MapPanel to SvgPanel
---
.../org/apache/isis/client/kroviz/core/aggregator/SvgDispatcher.kt | 4 ++--
.../kotlin/org/apache/isis/client/kroviz/ui/kv/FormPanelFactory.kt | 4 ++--
.../org/apache/isis/client/kroviz/ui/kv/{MapPanel.kt => SvgPanel.kt} | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/incubator/clients/kroviz/src/main/kotlin/org/apache/isis/client/kroviz/core/aggregator/SvgDispatcher.kt b/incubator/clients/kroviz/src/main/kotlin/org/apache/isis/client/kroviz/core/aggregator/SvgDispatcher.kt
index 13bb28f..9c57c79 100644
--- a/incubator/clients/kroviz/src/main/kotlin/org/apache/isis/client/kroviz/core/aggregator/SvgDispatcher.kt
+++ b/incubator/clients/kroviz/src/main/kotlin/org/apache/isis/client/kroviz/core/aggregator/SvgDispatcher.kt
@@ -19,7 +19,7 @@
package org.apache.isis.client.kroviz.core.aggregator
import org.apache.isis.client.kroviz.core.event.LogEntry
-import org.apache.isis.client.kroviz.ui.kv.MapPanel
+import org.apache.isis.client.kroviz.ui.kv.SvgPanel
import org.apache.isis.client.kroviz.utils.DomUtil
import org.apache.isis.client.kroviz.utils.UUID
@@ -29,7 +29,7 @@ class SvgDispatcher(val callBack: Any) : BaseAggregator() {
val response = logEntry.response
when (callBack) {
is UUID -> DomUtil.appendTo(callBack, response)
- is MapPanel -> callBack.renderSvg(response)
+ is SvgPanel -> callBack.renderSvg(response)
else -> {
}
}
diff --git a/incubator/clients/kroviz/src/main/kotlin/org/apache/isis/client/kroviz/ui/kv/FormPanelFactory.kt b/incubator/clients/kroviz/src/main/kotlin/org/apache/isis/client/kroviz/ui/kv/FormPanelFactory.kt
index d3adff9..4c5ef32 100644
--- a/incubator/clients/kroviz/src/main/kotlin/org/apache/isis/client/kroviz/ui/kv/FormPanelFactory.kt
+++ b/incubator/clients/kroviz/src/main/kotlin/org/apache/isis/client/kroviz/ui/kv/FormPanelFactory.kt
@@ -193,8 +193,8 @@ class FormPanelFactory(items: List<FormItem>) : VPanel() {
return panel
}
- private fun createSvgMap(fi: FormItem): MapPanel {
- val panel = MapPanel()
+ private fun createSvgMap(fi: FormItem): SvgPanel {
+ val panel = SvgPanel()
panel.height = 100.perc
panel.width = 100.perc
fi.callBack = panel
diff --git a/incubator/clients/kroviz/src/main/kotlin/org/apache/isis/client/kroviz/ui/kv/MapPanel.kt b/incubator/clients/kroviz/src/main/kotlin/org/apache/isis/client/kroviz/ui/kv/SvgPanel.kt
similarity index 98%
rename from incubator/clients/kroviz/src/main/kotlin/org/apache/isis/client/kroviz/ui/kv/MapPanel.kt
rename to incubator/clients/kroviz/src/main/kotlin/org/apache/isis/client/kroviz/ui/kv/SvgPanel.kt
index d6ac302..a0612be 100644
--- a/incubator/clients/kroviz/src/main/kotlin/org/apache/isis/client/kroviz/ui/kv/MapPanel.kt
+++ b/incubator/clients/kroviz/src/main/kotlin/org/apache/isis/client/kroviz/ui/kv/SvgPanel.kt
@@ -24,7 +24,7 @@ import io.kvision.maps.*
import io.kvision.panel.HPanel
import io.kvision.utils.pc
-class MapPanel : HPanel() {
+class SvgPanel : HPanel() {
val map: Maps = maps(0, 0, 11, baseLayerProvider = BaseLayerProvider.EMPTY, crs = CRS.Simple) {
width = 100.pc