Last active
October 28, 2019 10:23
-
-
Save kenwebb/74eacd82b65ec9eaf46ea6dd4eef0c95 to your computer and use it in GitHub Desktop.
Grid Viewport
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!--Xholon Workbook http://www.primordion.com/Xholon/gwt/ MIT License, Copyright (C) Ken Webb, Mon Oct 28 2019 06:21:54 GMT-0400 (Eastern Daylight Time)--> | |
<XholonWorkbook> | |
<Notes><![CDATA[ | |
Xholon | |
------ | |
Title: Grid Viewport | |
Description: | |
Url: http://www.primordion.com/Xholon/gwt/ | |
InternalName: 74eacd82b65ec9eaf46ea6dd4eef0c95 | |
Keywords: | |
My Notes | |
-------- | |
October 25, 2019 | |
Test the new Viewport.java class. | |
]]></Notes> | |
<_-.XholonClass> | |
<IslandSystem/> | |
<!-- classes required for classic Xholon grid --> | |
<!--<Grid/> | |
<Row/> | |
<GridCell> | |
<HabitatCell/> | |
</GridCell>--> | |
<!-- DO NOT SPECIFY these two Xholon classes; GridGenerator will create them | |
<Space/> | |
<FieldRow/> | |
--> | |
<!-- GridGenerator requires that these NOT have a superclass such as IslandGridCell --> | |
<!--<IslandGridCell>--> | |
<OceanCell/> <!-- OceanCell is the default --> | |
<LandCell/> | |
<CoastCell/> | |
<Block/> | |
<Fish/> | |
</_-.XholonClass> | |
<xholonClassDetails> | |
<!-- classes required for classic Xholon grid --> | |
<!--<Grid xhType="XhtypeGridEntity" implName="org.primordion.xholon.base.GridEntity"/> | |
<Row xhType="XhtypeGridEntity" implName="org.primordion.xholon.base.GridEntity"/> | |
<HabitatCell xhType="XhtypeGridEntityActivePassive" implName="org.primordion.xholon.base.GridEntity"> | |
<config instruction="Gmt"/> | |
</HabitatCell>--> | |
<Avatar><Color>orange</Color><Symbol>SmallCircle</Symbol></Avatar> | |
<Block><Color>rgba(197,41,155,0.8)</Color></Block> | |
</xholonClassDetails> | |
<IslandSystem> | |
<!-- classic Xholon grid; the grid is created, but not the grid viewer --> | |
<!--<Grid> | |
<Row multiplicity="10"> | |
<HabitatCell multiplicity="10"/> | |
</Row> | |
</Grid>--> | |
<GridGenerator rows="20" cols="25" gridType="Gvt" names="Spacex,FieldRow,OceanCell" columnColor="078282" gridViewerParams="IslandSystem/Spacex,7,Island Viewer,true" cellsCanSupplyOwnColor="true" cssStyle="div#xhcanvas>canvas:nth-of-type(1) {padding: 5px 5px 5px 0px; border-top: 1px solid #e0e0e0; border-right: 1px solid #e0e0e0; border-bottom: 1px solid #e0e0e0; margin: 5px 5px 5px 0px;}"/> | |
<GridGenerator rows="30" cols="35" gridType="Gvt" names="Space,FieldRow,LandCell" columnColor="95DBE5" gridViewerParams="IslandSystem/Space,8,Island2 Viewer,true" gridViewportParams="false,4,5,6,7" cellsCanSupplyOwnColor="true" cssStyle="div#xhcanvas>canvas:nth-of-type(n+2) {padding: 5px; border: 1px solid #e0e0e0; margin: 5px;}"/> | |
<!-- generate a second viewer for the Space grid - this works --> | |
<GridGenerator gridViewerParams="IslandSystem/Space,15,Island3 Viewer,true" shouldBuildXhc="false" shouldBuildCsh="false" gridViewportParams="true,4,12,10,15" cellsCanSupplyOwnColor="true"/> | |
<!-- generate a third viewer for the Space grid - this works --> | |
<GridGenerator gridViewerParams="IslandSystem/Space,20,Island4 Viewer,true" shouldBuildXhc="false" shouldBuildCsh="false" gridViewportParams="true,15,24,12,19" cellsCanSupplyOwnColor="true"/> | |
<Block/> | |
</IslandSystem> | |
<Blockbehavior implName="org.primordion.xholon.base.Behavior_gwtjs"><![CDATA[ | |
var a = 123; | |
var b = 456; | |
var c = a * b; | |
if (console) { | |
console.log(c); | |
} | |
//# sourceURL=Blockbehavior.js | |
]]></Blockbehavior> | |
TestAgent<SvgClient><Attribute_String roleName="svgUri"><![CDATA[data:image/svg+xml, | |
<svg width="100" height="50" xmlns="http://www.w3.org/2000/svg"> | |
<g> | |
<title>Drop Zone</title> | |
<rect id="IslandSystem/Space/FieldRow/*" fill="#339E66" height="50" width="50" x="0" y="0"/> | |
</g> | |
</svg> | |
]]></Attribute_String><Attribute_String roleName="setup">${MODELNAME_DEFAULT},${SVGURI_DEFAULT}</Attribute_String></SvgClient> | |
</XholonWorkbook> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment