handle compositions


Description

The handle is the graphical utility to open and close branches.

Diagram

diagram of <handle>


A red handle

<diputree>
 <has>
  <b>
   <lt>red handle!</lt>
   <hashandle>
    <handle>
     <when>
      <closed/>
     </when>
     <hascolor>
      <rgb>
       <i>0xFFFF00</i>
      </rgb>
     </hascolor>
    </handle>
   </hashandle>
  </b>
 </has>
</diputree>

Explanation

<diputree>
 <has>
  <b>
   <lt>red handle!</lt>

the hashandle relation between the branch and the handle

   <hashandle>
    <handle>

the when relation between the handle and closed

     <when>
      <closed/>
     </when>

the hascolor relation between the handle and rgb

     <hascolor>
      <rgb>
       <i>0xFFFF00</i>
      </rgb>
     </hascolor>
    </handle>
   </hashandle>
  </b>
 </has>
</diputree>


Handle icons

<diputree>
 <has>
  <b>
   <lt>a branch</lt>
   <hashandle>
    <handle>
     <when>
      <closed/>
     </when>
     <hasimage>
      <uri>
       <s>../../images/handleclosed.gif</s>
      </uri>
     </hasimage>
    </handle>
    <handle>
     <when>
      <opened/>
     </when>
     <hasimage>
      <uri>
       <s>../../images/handleopened.gif</s>
      </uri>
     </hasimage>
    </handle>
   </hashandle>
   <has>
    <l>
     <lt>a leaf</lt>
    </l>
   </has>
  </b>
 </has>
</diputree>

Explanation

<diputree>
 <has>
  <b>
   <lt>a branch</lt>
   <hashandle>
    <handle>
     <when>
      <closed/>
     </when>

the hasimage relation between the (closed) handle and the uri

     <hasimage>
      <uri>
       <s>../../images/handleclosed.gif</s>
      </uri>
     </hasimage>
    </handle>
    <handle>
     <when>
      <opened/>
     </when>

the hasimage relation between the (opened) handle and the uri

     <hasimage>
      <uri>
       <s>../../images/handleopened.gif</s>
      </uri>
     </hasimage>
    </handle>
   </hashandle>
   <has>
    <l>
     <lt>a leaf</lt>
    </l>
   </has>
  </b>
 </has>
</diputree>


No handles

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

Explanation

<diputree>
 <has>
  <b>
   <lt>a branch</lt>
   <hashandle>

the hashandle relation between the branch and none

    <none/>
   </hashandle>
   <has>
    <l>
     <lt>a leaf</lt>
    </l>
   </has>
  </b>
 </has>
</diputree>


diputree documentation © 2000 dipu