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/21 14:11:31 UTC

[isis] 03/04: Use Layout.svg as sample data for SvgMap

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 a1147b1ca38636baf24d4270f847fe257d10f294
Author: Jörg Rade <jo...@kuehne-nagel.com>
AuthorDate: Thu May 13 19:54:45 2021 +0200

    Use Layout.svg as sample data for SvgMap
---
 .../apache/isis/client/kroviz/ui/panel/SvgMap.kt   | 454 ++++++++++++++++++---
 1 file changed, 389 insertions(+), 65 deletions(-)

diff --git a/incubator/clients/kroviz/src/main/kotlin/org/apache/isis/client/kroviz/ui/panel/SvgMap.kt b/incubator/clients/kroviz/src/main/kotlin/org/apache/isis/client/kroviz/ui/panel/SvgMap.kt
index 29a6f12..e264638 100644
--- a/incubator/clients/kroviz/src/main/kotlin/org/apache/isis/client/kroviz/ui/panel/SvgMap.kt
+++ b/incubator/clients/kroviz/src/main/kotlin/org/apache/isis/client/kroviz/ui/panel/SvgMap.kt
@@ -26,71 +26,395 @@ import io.kvision.utils.pc
 class SvgMap : SimplePanel() {
 
     @Deprecated("pass in as arg")
-    val str = """<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<svg xmlns="http://www.w3.org/2000/svg" contentScriptType="application/ecmascript" contentStyleType="text/css"
-     height="203px" preserveAspectRatio="none" style="width:309px;height:203px;" version="1.1" viewBox="0 0 309 203"
-     width="309px" zoomAndPan="magnify">
-    <defs>
-        <filter height="300%" id="f1xj00ih3jrk7f" width="300%" x="-1" y="-1">
-            <feGaussianBlur result="blurOut" stdDeviation="2.0"/>
-            <feColorMatrix in="blurOut" result="blurOut2" type="matrix"
-                           values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .4 0"/>
-            <feOffset dx="4.0" dy="4.0" in="blurOut2" result="blurOut3"/>
-            <feBlend in="SourceGraphic" in2="blurOut3" mode="normal"/>
-        </filter>
-    </defs>
-    <g><!--MD5=[f621a9b5735c62a9e50fa7c1e42ea0f4]↵cluster domainapp.modules.simple.dom.impl-->
-        <polygon fill="#FFFFFF" filter="url(#f1xj00ih3jrk7f)"
-                 points="14,16,277,16,284,38.7999,287,38.7999,287,191,14,191,14,16"
-                 style="stroke: #000000; stroke-width: 1.5;"/>
-        <line style="stroke: #000000; stroke-width: 1.5;" x1="14" x2="284" y1="38.7999" y2="38.7999"/>
-        <text fill="#000000" font-family="sans-serif" font-size="14" font-weight="bold" lengthAdjust="spacingAndGlyphs"
-              textLength="257" x="18" y="31.9999">domainapp.modules.simple.dom.impl
-        </text><!--MD5=[e6e8857f289496579330543e748c2106]↵class SimpleObject-->
-        <rect fill="#FEFECE" filter="url(#f1xj00ih3jrk7f)" height="140.3993" id="SimpleObject"
-              style="stroke: #A80036; stroke-width: 1.5;" width="129" x="85.5" y="43"/>
-        <ellipse cx="112.2" cy="59" fill="#ADD1B2" rx="11" ry="11" style="stroke: #A80036; stroke-width: 1.0;"/>
-        <path d="M111.5594,62.7813 Q112.3563,62.7813 112.9266,62.5859 Q113.4969,62.3906 113.7391,62.1641 Q113.9813,61.9375 114.2234,61.7422 Q114.4656,61.5469 114.6844,61.5469 Q115.0281,61.5469 115.2859,61.8047 Q115.5438,62.0625 115.5438,62.3906 Q115.5438,63.125 114.3797,63.8047 Q113.2156,64.4844 111.5125,64.4844 Q109.3563,64.4844 107.9344,63.2188 Q106.5125,61.9531 106.5125,60.0156 L106.5125,58.8906 Q106.5125,56.8594 107.8406,55.4766 Q109.1688,54.0938 111.1375,54.0938 Q112.325,54.0938 113 [...]
-        <text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacingAndGlyphs" textLength="71"
-              x="128.8" y="63.8">SimpleObject
-        </text>
-        <line style="stroke: #A80036; stroke-width: 1.5;" x1="86.5" x2="213.5" y1="75" y2="75"/>
-        <line style="stroke: #A80036; stroke-width: 1.5;" x1="86.5" x2="213.5" y1="83" y2="83"/>
-        <text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="93"
-              x="91.5" y="97.9999">rebuildMetamodel()
-        </text>
-        <text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="117"
-              x="91.5" y="111.1998">downloadJdoMetadata()
-        </text>
-        <text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="69"
-              x="91.5" y="124.3997">openRestApi()
-        </text>
-        <text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="104"
-              x="91.5" y="137.5996">downloadLayoutXml()
-        </text>
-        <text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="37"
-              x="91.5" y="150.7995">delete()
-        </text>
-        <text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="70"
-              x="91.5" y="163.9994">updateName()
-        </text>
-        <text fill="#000000" font-family="sans-serif" font-size="11" lengthAdjust="spacingAndGlyphs" textLength="56"
-              x="91.5" y="177.1993">clearHints()
-        </text><!--MD5=[903507c5920b0ecb2f83cd94e1c42ae5]↵@startuml
-↵package domainapp.modules.simple.dom.impl {
-↵class SimpleObject
-↵SimpleObject : rebuildMetamodel()
-↵SimpleObject : downloadJdoMetadata()
-↵SimpleObject : openRestApi()
-↵SimpleObject : downloadLayoutXml()
-↵SimpleObject : delete()
-↵SimpleObject : updateName()
-↵SimpleObject : clearHints()
-↵}
-↵@enduml
-↵↵PlantUML version 1.2020.04(Thu Mar 19 10:16:49 GMT 2020)↵(GPL source distribution)↵Java Runtime: OpenJDK Runtime Environment↵JVM: OpenJDK 64-Bit Server VM↵Java Version: 1.8.0_191-b12↵Operating System: Linux↵Default Encoding: UTF-8↵Language: en↵Country: US↵-->
-    </g>
-</svg>
+    val str = """<?xml version="1.0" encoding="UTF-8" standalone="no"?><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" contentScriptType="application/ecmascript" contentStyleType="text/css" height="4881.25px" preserveAspectRatio="none" style="width:6395px;height:4881px;" version="1.1" viewBox="0 0 6395 4881" width="6395.8333px" zoomAndPan="magnify"><defs><filter height="300%" id="f1o3ddckp2b3gs" width="300%" x="-1" y="-1"><feGaussianBlur result="blurOut [...]
+@startuml
+skinparam dpi 200
+
+class "root" as root {
+.. Properties ..
+cssClass: null
+.. Objects ..
+row: [Array]
+}
+class "row" as root.row {
+.. Properties ..
+.. Objects ..
+0: [object Object]
+1: [object Object]
+}
+class "0" as root.row.0 {
+.. Properties ..
+metadataError: null
+cssClass: null
+id: null
+.. Objects ..
+cols: [Array]
+}
+class "cols" as root.row.0.cols {
+.. Properties ..
+.. Objects ..
+0: [object Object]
+}
+class "0" as root.row.0.cols.0 {
+.. Properties ..
+.. Objects ..
+col: [object Object]
+}
+class "col" as root.row.0.cols.0.col {
+.. Properties ..
+metadataError: null
+cssClass: null
+size: null
+id: null
+span: 12
+unreferencedActions: true
+unreferencedCollections: null
+.. Objects ..
+domainObject: [object Object]
+action: [Array]
+}
+class "domainObject" as root.row.0.cols.0.col.domainObject {
+.. Properties ..
+named: null
+describedAs: null
+plural: null
+metadataError: null
+bookmarking: null
+cssClass: null
+cssClassFa: null
+cssClassFaPosition: null
+namedEscaped: null
+.. Objects ..
+link: [object Object]
+}
+class "link" as root.row.0.cols.0.col.domainObject.link {
+.. Properties ..
+rel: urn:org.restfulobjects:rels/element
+method: GET
+href: http://localhost:8080/restful/objects/isisApplib.FixtureResult/;
+type: application/jsonprofile&#x3D;&quot;urn:org.restfulobjects:repr-types/object&quot;
+}
+class "action" as root.row.0.cols.0.col.action {
+.. Properties ..
+.. Objects ..
+0: [object Object]
+1: [object Object]
+2: [object Object]
+3: [object Object]
+}
+class "0" as root.row.0.cols.0.col.action.0 {
+.. Properties ..
+named: null
+describedAs: null
+metadataError: null
+id: clearHints
+bookmarking: null
+cssClass: null
+cssClassFa: null
+cssClassFaPosition: null
+hidden: null
+namedEscaped: null
+position: null
+promptStyle: null
+.. Objects ..
+link: [object Object]
+}
+class "link" as root.row.0.cols.0.col.action.0.link {
+.. Properties ..
+rel: urn:org.restfulobjects:rels/action
+method: GET
+href: http://localhost:8080/restful/objects/isisApplib.FixtureResult/;/actions/clearHints
+type: application/jsonprofile&#x3D;&quot;urn:org.restfulobjects:repr-types/object-action&quot;
+}
+class "1" as root.row.0.cols.0.col.action.1 {
+.. Properties ..
+named: null
+describedAs: null
+metadataError: null
+id: downloadLayoutXml
+bookmarking: null
+cssClass: null
+cssClassFa: null
+cssClassFaPosition: null
+hidden: null
+namedEscaped: null
+position: null
+promptStyle: null
+.. Objects ..
+link: [object Object]
+}
+class "link" as root.row.0.cols.0.col.action.1.link {
+.. Properties ..
+rel: urn:org.restfulobjects:rels/action
+method: GET
+href: http://localhost:8080/restful/objects/isisApplib.FixtureResult/;/actions/downloadLayoutXml
+type: application/jsonprofile&#x3D;&quot;urn:org.restfulobjects:repr-types/object-action&quot;
+}
+class "2" as root.row.0.cols.0.col.action.2 {
+.. Properties ..
+named: null
+describedAs: null
+metadataError: null
+id: rebuildMetamodel
+bookmarking: null
+cssClass: null
+cssClassFa: null
+cssClassFaPosition: null
+hidden: null
+namedEscaped: null
+position: null
+promptStyle: null
+.. Objects ..
+link: [object Object]
+}
+class "link" as root.row.0.cols.0.col.action.2.link {
+.. Properties ..
+rel: urn:org.restfulobjects:rels/action
+method: GET
+href: http://localhost:8080/restful/objects/isisApplib.FixtureResult/;/actions/rebuildMetamodel
+type: application/jsonprofile&#x3D;&quot;urn:org.restfulobjects:repr-types/object-action&quot;
+}
+class "3" as root.row.0.cols.0.col.action.3 {
+.. Properties ..
+named: null
+describedAs: null
+metadataError: null
+id: openRestApi
+bookmarking: null
+cssClass: null
+cssClassFa: null
+cssClassFaPosition: null
+hidden: null
+namedEscaped: null
+position: null
+promptStyle: null
+.. Objects ..
+link: [object Object]
+}
+class "link" as root.row.0.cols.0.col.action.3.link {
+.. Properties ..
+rel: urn:org.restfulobjects:rels/action
+method: GET
+href: http://localhost:8080/restful/objects/isisApplib.FixtureResult/;/actions/openRestApi
+type: application/jsonprofile&#x3D;&quot;urn:org.restfulobjects:repr-types/object-action&quot;
+}
+class "1" as root.row.1 {
+.. Properties ..
+metadataError: null
+cssClass: null
+id: null
+.. Objects ..
+cols: [Array]
+}
+class "cols" as root.row.1.cols {
+.. Properties ..
+.. Objects ..
+0: [object Object]
+1: [object Object]
+}
+class "0" as root.row.1.cols.0 {
+.. Properties ..
+.. Objects ..
+col: [object Object]
+}
+class "col" as root.row.1.cols.0.col {
+.. Properties ..
+domainObject: null
+metadataError: null
+cssClass: null
+size: null
+id: null
+span: 4
+unreferencedActions: null
+unreferencedCollections: null
+.. Objects ..
+fieldSet: [Array]
+}
+class "fieldSet" as root.row.1.cols.0.col.fieldSet {
+.. Properties ..
+.. Objects ..
+0: [object Object]
+}
+class "0" as root.row.1.cols.0.col.fieldSet.0 {
+.. Properties ..
+name: General
+metadataError: null
+id: general
+unreferencedActions: null
+unreferencedProperties: true
+.. Objects ..
+property: [Array]
+}
+class "property" as root.row.1.cols.0.col.fieldSet.0.property {
+.. Properties ..
+.. Objects ..
+0: [object Object]
+1: [object Object]
+2: [object Object]
+3: [object Object]
+}
+class "0" as root.row.1.cols.0.col.fieldSet.0.property.0 {
+.. Properties ..
+named: null
+describedAs: null
+metadataError: null
+id: className
+cssClass: null
+hidden: null
+labelPosition: null
+multiLine: null
+namedEscaped: null
+promptStyle: null
+renderedAsDayBefore: null
+typicalLength: null
+unchanging: null
+.. Objects ..
+link: [object Object]
+}
+class "link" as root.row.1.cols.0.col.fieldSet.0.property.0.link {
+.. Properties ..
+rel: urn:org.restfulobjects:rels/property
+method: GET
+href: http://localhost:8080/restful/objects/isisApplib.FixtureResult/;/properties/className
+type: application/jsonprofile&#x3D;&quot;urn:org.restfulobjects:repr-types/object-property&quot;
+}
+class "1" as root.row.1.cols.0.col.fieldSet.0.property.1 {
+.. Properties ..
+named: null
+describedAs: null
+metadataError: null
+id: fixtureScriptClassName
+cssClass: null
+hidden: null
+labelPosition: null
+multiLine: null
+namedEscaped: null
+promptStyle: null
+renderedAsDayBefore: null
+typicalLength: null
+unchanging: null
+.. Objects ..
+link: [object Object]
+}
+class "link" as root.row.1.cols.0.col.fieldSet.0.property.1.link {
+.. Properties ..
+rel: urn:org.restfulobjects:rels/property
+method: GET
+href: http://localhost:8080/restful/objects/isisApplib.FixtureResult/;/properties/fixtureScriptClassName
+type: application/jsonprofile&#x3D;&quot;urn:org.restfulobjects:repr-types/object-property&quot;
+}
+class "2" as root.row.1.cols.0.col.fieldSet.0.property.2 {
+.. Properties ..
+named: null
+describedAs: null
+metadataError: null
+id: key
+cssClass: null
+hidden: null
+labelPosition: null
+multiLine: null
+namedEscaped: null
+promptStyle: null
+renderedAsDayBefore: null
+typicalLength: null
+unchanging: null
+.. Objects ..
+link: [object Object]
+}
+class "link" as root.row.1.cols.0.col.fieldSet.0.property.2.link {
+.. Properties ..
+rel: urn:org.restfulobjects:rels/property
+method: GET
+href: http://localhost:8080/restful/objects/isisApplib.FixtureResult/;/properties/key
+type: application/jsonprofile&#x3D;&quot;urn:org.restfulobjects:repr-types/object-property&quot;
+}
+class "3" as root.row.1.cols.0.col.fieldSet.0.property.3 {
+.. Properties ..
+named: null
+describedAs: null
+metadataError: null
+id: object
+cssClass: null
+hidden: null
+labelPosition: null
+multiLine: null
+namedEscaped: null
+promptStyle: null
+renderedAsDayBefore: null
+typicalLength: null
+unchanging: null
+.. Objects ..
+link: [object Object]
+}
+class "link" as root.row.1.cols.0.col.fieldSet.0.property.3.link {
+.. Properties ..
+rel: urn:org.restfulobjects:rels/property
+method: GET
+href: http://localhost:8080/restful/objects/isisApplib.FixtureResult/;/properties/object
+type: application/jsonprofile&#x3D;&quot;urn:org.restfulobjects:repr-types/object-property&quot;
+}
+class "1" as root.row.1.cols.1 {
+.. Properties ..
+.. Objects ..
+col: [object Object]
+}
+class "col" as root.row.1.cols.1.col {
+.. Properties ..
+domainObject: null
+metadataError: null
+cssClass: null
+size: null
+id: null
+span: 8
+unreferencedActions: null
+unreferencedCollections: true
+}
+root.row.0.cols.0.col.domainObject - - root.row.0.cols.0.col.domainObject.link
+root.row.0.cols.0.col.action.0 - - root.row.0.cols.0.col.action.0.link
+root.row.0.cols.0.col.action.1 - - root.row.0.cols.0.col.action.1.link
+root.row.0.cols.0.col.action.2 - - root.row.0.cols.0.col.action.2.link
+root.row.0.cols.0.col.action.3 - - root.row.0.cols.0.col.action.3.link
+root.row.0.cols.0.col.action - - root.row.0.cols.0.col.action.0
+root.row.0.cols.0.col.action - - root.row.0.cols.0.col.action.1
+root.row.0.cols.0.col.action - - root.row.0.cols.0.col.action.2
+root.row.0.cols.0.col.action - - root.row.0.cols.0.col.action.3
+root.row.0.cols.0.col - - root.row.0.cols.0.col.domainObject
+root.row.0.cols.0.col - - root.row.0.cols.0.col.action
+root.row.0.cols.0 - - root.row.0.cols.0.col
+root.row.0.cols - - root.row.0.cols.0
+root.row.0 - - root.row.0.cols
+root.row.1.cols.0.col.fieldSet.0.property.0 - - root.row.1.cols.0.col.fieldSet.0.property.0.link
+root.row.1.cols.0.col.fieldSet.0.property.1 - - root.row.1.cols.0.col.fieldSet.0.property.1.link
+root.row.1.cols.0.col.fieldSet.0.property.2 - - root.row.1.cols.0.col.fieldSet.0.property.2.link
+root.row.1.cols.0.col.fieldSet.0.property.3 - - root.row.1.cols.0.col.fieldSet.0.property.3.link
+root.row.1.cols.0.col.fieldSet.0.property - - root.row.1.cols.0.col.fieldSet.0.property.0
+root.row.1.cols.0.col.fieldSet.0.property - - root.row.1.cols.0.col.fieldSet.0.property.1
+root.row.1.cols.0.col.fieldSet.0.property - - root.row.1.cols.0.col.fieldSet.0.property.2
+root.row.1.cols.0.col.fieldSet.0.property - - root.row.1.cols.0.col.fieldSet.0.property.3
+root.row.1.cols.0.col.fieldSet.0 - - root.row.1.cols.0.col.fieldSet.0.property
+root.row.1.cols.0.col.fieldSet - - root.row.1.cols.0.col.fieldSet.0
+root.row.1.cols.0.col - - root.row.1.cols.0.col.fieldSet
+root.row.1.cols.0 - - root.row.1.cols.0.col
+root.row.1.cols.1 - - root.row.1.cols.1.col
+root.row.1.cols - - root.row.1.cols.0
+root.row.1.cols - - root.row.1.cols.1
+root.row.1 - - root.row.1.cols
+root.row - - root.row.0
+root.row - - root.row.1
+root - - root.row
+@enduml
+
+PlantUML version 1.2019.07(Mon Jun 24 21:59:20 CEST 2019)
+(GPL source distribution)
+Java Runtime: OpenJDK Runtime Environment
+JVM: OpenJDK 64-Bit Server VM
+Java Version: 12.0.1+12
+Operating System: Windows 10
+OS Version: 10.0
+Default Encoding: UTF-8
+Language: en
+Country: US
+--></g></svg>
 """
 
     init {