line compositions


Description

The line is the connection between the nodes of the tree.

Diagram

diagram of <diputree> with <line>


A solid green line

<diputree>
 <hasline>
  <line>
   <hascolor>
    <rgb>
     <i>0x00CC00</i>
    </rgb>
   </hascolor>
   <haslinestyle>
    <solid/>
   </haslinestyle>
  </line>
 </hasline>
 <has>
  <b>
   <lt>a branch</lt>
   <has>
    <l>
     <lt>a leaf</lt>
    </l>
    <l>
     <lt>a leaf</lt>
    </l>
   </has>
  </b>
 </has>
</diputree>

Explanation

<diputree>

the hasline relation between diputree and line

 <hasline>
  <line>

the hascolor relation between the line and rgb

   <hascolor>
    <rgb>
     <i>0x00CC00</i>
    </rgb>
   </hascolor>

the haslinestyle relation between the line and solid

   <haslinestyle>
    <solid/>
   </haslinestyle>
  </line>
 </hasline>
 <has>
  <b>
   <lt>a branch</lt>
   <has>
    <l>
     <lt>a leaf</lt>
    </l>
    <l>
     <lt>a leaf</lt>
    </l>
   </has>
  </b>
 </has>
</diputree>


No line

<diputree>
 <hasline>
  <none/>
 </hasline>
 <has>
  <b>
   <lt>a branch</lt>
   <has>
    <l>
     <lt>a leaf</lt>
    </l>
    <l>
     <lt>a leaf</lt>
    </l>
   </has>
  </b>
 </has>
</diputree>

Explanation

<diputree>

the hasline relation between diputree and none

 <hasline>
  <none/>
 </hasline>
 <has>
  <b>
   <lt>a branch</lt>
   <has>
    <l>
     <lt>a leaf</lt>
    </l>
    <l>
     <lt>a leaf</lt>
    </l>
   </has>
  </b>
 </has>
</diputree> 


diputree documentation © 2000 dipu