Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Small image (some symbol) above the line

Help
anvar1101
2012-04-05
2012-09-11
  • anvar1101
    anvar1101
    2012-04-05

    Hi, blenta!

    It is very great soft, needed for most people! Many thanks...

    Can you help me with one feature?

    if yes: i need place symbol above the line depending on some boolean attribute
    of that line.

    How I can do this.... ?

    best wishes,

    Anvar

     
  • Hi Anvar,

    I am sorry for replying so late.

    Yes, I surely would help you.

    1) First, you need define an edge style in /org/yaoqiang/graph/resources
    /default-style.xml

    <add as="yourEdgeStyle" extend="defaultEdge">
        <add as="showSymbol" value="1"/>
    </add>
    

    2) add your logic in the method :
    com.mxgraph.shape.mxConnectorShape.paintShape.

    3) create the edge using new style.

    mxCell cell = new mxCell();
    cell.setEdge(true);
    cell.setStyle("yourEdgeStyle");
    ...
    

    Hope this helps you.

    Blenta

     
  • anvar1101
    anvar1101
    2012-04-11

    Thank you very much for your help!

    With great respect, Anvar!

     


Anonymous


Cancel   Add attachments