Click here to Skip to main content
15,895,799 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, I have written a grammar rule, but i can't able to change the shape color of each node, if i change the color, it remains default as White. wt's the problem......

<pre lang="XML">

XML
<?xml version="1.0" encoding="utf-8"?>
<grammarRule xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <name>ThreeSetofVertices</name>
  <spanning>false</spanning>
  <induced>false</induced>
  <containsAllGlobalLabels>false</containsAllGlobalLabels>
  <embeddingRules />
  <recognizeFunctions />
  <applyFunctions />
  <L>
    <globalLabels />
    <globalVariables />
    <nodes />
    <arcs />
  </L>
  <R>
    <globalLabels />
    <globalVariables />
    <nodes>
      <node xsi:type="ruleNode">
        <shapekey>6E92FCD0-75DF-4f8f-A5B2-2927E22F4F0F</shapekey>
        <screenX>23</screenX>
        <screenY>117</screenY>
        <name>L</name>
        <localLabels>
          <string>plane</string>
        </localLabels>
        <localVariables />
        <containsAllLocalLabels>false</containsAllLocalLabels>
        <strictDegreeMatch>false</strictDegreeMatch>
      </node>
      <node xsi:type="ruleNode">
        <shapekey>6E92FCD0-75DF-4f8f-A5B2-2927E22F4F0F</shapekey>
        <screenX>117</screenX>
        <screenY>40</screenY>
        <name>T</name>
        <localLabels>
          <string>plane</string>
        </localLabels>
        <localVariables />
        <containsAllLocalLabels>false</containsAllLocalLabels>
        <strictDegreeMatch>false</strictDegreeMatch>
      </node>
      <node xsi:type="ruleNode">
        <shapekey>6E92FCD0-75DF-4f8f-A5B2-2927E22F4F0F</shapekey>
        <screenX>249</screenX>
        <screenY>136</screenY>
        <name>R</name>
        <localLabels>
          <string>plane</string>
        </localLabels>
        <localVariables />
        <containsAllLocalLabels>false</containsAllLocalLabels>
        <strictDegreeMatch>false</strictDegreeMatch>
      </node>
      <node xsi:type="ruleNode">
        <shapekey>6E92FCD0-75DF-4f8f-A5B2-2927E22F4F0F</shapekey>
        <screenX>72</screenX>
        <screenY>192</screenY>
        <name>Bm</name>
        <localLabels>
          <string>plane</string>
        </localLabels>
        <localVariables />
        <containsAllLocalLabels>false</containsAllLocalLabels>
        <strictDegreeMatch>false</strictDegreeMatch>
      </node>
      <node xsi:type="ruleNode">
        <shapekey>6E92FCD0-75DF-4f8f-A5B2-2927E22F4F0F</shapekey>
        <screenX>188</screenX>
        <screenY>200</screenY>
        <name>Bc</name>
        <localLabels>
          <string>plane</string>
        </localLabels>
        <localVariables />
        <containsAllLocalLabels>false</containsAllLocalLabels>
        <strictDegreeMatch>false</strictDegreeMatch>
      </node>
      <node xsi:type="ruleNode">
        <shapekey>6E92FCD0-75DF-4f8f-A5B2-2927E22F4F0F</shapekey>
        <screenX>217</screenX>
        <screenY>64</screenY>
        <name>I</name>
        <localLabels />
        <localVariables />
        <containsAllLocalLabels>false</containsAllLocalLabels>
        <strictDegreeMatch>false</strictDegreeMatch>
      </node>
    </nodes>
    <arcs />
  </R>
</grammarRule>
Posted

1 solution

I don’t see any element or attribute in your xml definition which defines the color of the shape.

And even if you do, xml is just a declarative language and does nothing on its own. It’s up to you how to read and process the information available in xml data.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900