Line, Node Layout algorithms

Does flex provide any support for layouts. Say I have a
couple of nodes connected by lines. Can flex automatically draw
these using some built-in layouts like orthogonal, hierarchial
etc., or on some criteria that causes a minimal number of line
intersections etc.,
There are third party libraries that do these layouts for
Java swing applications. I am looking for similar support in flex.

hi,
take a look at http://www.yworks.com/ - they have a very good java graph drawing library, which can create automatic layouts (among which are sugiyama styles and related styles)
you may download an evaluation version, or use the free online graph editor yEd (using webstart) which demonstrates a lot of the available layouts. Additionally, they have a nice gallery of graph drawings and automatic layouts on their site... go see it
greetings, sebastian

Similar Messages

  • Removing Blank Space (line) Accompanying Layout Breaks

    I've used a layout break to make a portion of text two-column after a one-column section. Whatever I do, whereever I put it, the layout break takes space. It's a farily tight document, in a 10pt. font, and the line the layout break takes screws up the layout of the whole page. How can I get it to not put a whole blank line between the one-column section and the two-column section?

    I might not fully understand the problem but take the paragraph break off the end of the line on the first section:
    vs

  • Cl_gui_alv_tree node layout not working!

    Hi guys!
    I have the following situation.
    I use a Tree, and an Item layout. All setting in the node_layout don't work,
    With the item layout i set a specific item.
    When I set this icon, i still have the "folder" icon of the node layout in my tree, so i have two displayed items.
    Thats why i tried to set the icon of the node layout to the "dummy_icon"
    however, all settings i try with the node layout didn't work. If I set an icon into the node layout EXP_IMAGE or N_IMAGE it doesn't work as well.
    ls_item_layout-fieldname = gd_tree->c_hierarchy_column_name.
      ls_item_layout-style     = cl_gui_column_tree=>style_default.
      ld_node_text             = ls_equnr.
    ls_node_layout-N_IMAGE = 'ICON_DUMMY' "doesn't work
    ls_node_layout-EXP_IMAGE = 'ICON_DUMMY' "doesn't work
    ls_node_layout-isfolder = ' '   "doesn't work
      APPEND ls_item_layout TO lt_item_layout.
    * Add node
      CALL METHOD gd_tree->add_node
        EXPORTING
          i_relat_node_key = p_relate_key
          i_relationship   = cl_gui_column_tree=>relat_last_child
          i_node_text      = ld_node_text
          is_outtab_line   = ps_equi
          it_item_layout   = lt_item_layout
          is_node_layout   = ls_node_layout
        IMPORTING
          e_new_node_key   = p_node_key.

    Hi,
    Check this demo program BCALV_TREE_06. You can find the soluition.

  • Code of line in layout of script

    Hi
      can anybody tell me the exact code of printing a line in layout of sap script ?

    call function 'WRITE_FORM'
               EXPORTING
                    element = element
               EXCEPTIONS
                    element = 1
                    window  = 2.
    where element is the name of the elemnt in your sap script.
    The element should have the variables in &var&.
    These variables shoudl be decalrd in your calling program

  • Config line item layouts for Clear transaction

    hi all,
    can anyone tell me how I can config these codes
    Current line item layouts for Clear transaction F-32, menu Settings/ line layout:
    A1     Allocation / document number
    K1     Document number
    K2     Reference no.
    K3     Account number
    K4     Account number / company code
    K5     Company code
    K6     Payment order
    K7     Bill of exchange payment request
    SA     Order
    SB     Purchasing document
    SP     Project
    T1     Original document number
    Z01     Account / Allocation
    Z02     A/P - Open invoices
    Z03     WBS Element
    Z04     Network
    ZK2     Ref. / Alloc. / Document / Reason C
    thanks alot!
    Tram Nguyen

    Hi,
    In IMG (transaction SPRO) under
    Financial Accounting -> Accounts Receivable and Accounts Payable -> Business Transactions -> Incoming Payments -> Manual Incoming Payments -> Make Settings for Processing Open Items -> Define Line Layout
    Here you determine which information is to be made available on the screen when processing line items (for example, document type, document number, account number, company code).
    Regards,
    Srilatha.

  • 3D Graph Layout Algorithms?

    Hello there! I'm developing a project for my first computer science thesis at the university of Bari, Italy. This project consists in a OpenGL graph visualization tool but I'm having trouble in implementing a correct layout algorithm.
    The problem is that I have been unable to find any information regarding the actual algorithms.. all I've discovered is that there are many commercial products out there that implement these algorithms.. :) I need to know how to implement them myself!
    I have a set of spheres (and the x-y-z coordinates of their center), and a set of edges which describe the various connection between those spheres. I'm currently using a sort of very simple spring embedder algorithm which works in this way:
    Phase 1:
    get sphere 1 (s1)
    get sphere 2 (s2)
    check s1 against all other spheres
    if their euclidean distance is too small they are moved farther away in this way:
    if (s1.x < s2.x)
    s1.x -= delta
    s2.x += delta
    if (s1.y < s2.y)
    s1.y -= delta
    and so on. This is the only way to avoid collisions between spheres that I thought of, since they are not puntiform in fact they have a certain radious. Then in phase 2 I iterate between all the edges and if two connected spheres are too distant from each other they are moved nearer in a way like the one described above. But it doesn't seem to work as it should in fact this algorithm seems to lock the spheres after a number of iteration but rarely produces pleasing visual configurations.
    So could anyone please point me in the right direction? What kind of algorithm could I use? A description would be very useful.. Thanks in advance!

    Hi, I am coauthor and developer of some of the spring-embedder algorithms used in the Java graph layout library 'yFiles' (we call them 'organic layout algorithms'). Some of the algorithms actually work in 3D and all of them can be adapted very easily to run in 3D. We are using combinations and variants and enhanced versions of some of the following algorithms, as well as some of our own, but for a starter this should be enough information for you:
    google for 'GRIP layout' 'GUIDE layout', Kamada-Kawai, Fruchterman-Reingold, Eigenvalue graph layout, GEM spring embedder,
    Implementing those algorithms well can lead to very nice results: feel free to take a look at our gallery of graph layouts:
    http://www.yworks.com/en/products_yfiles_practicalinfo_gallery.htm
    Regards, and a happy new year, Sebastian

  • Declutter layout algorithm

    Hi all you algorithm gurus - I'm looking for ideas for an algorithm to solve the following problem. It's specifically meant to "spread out" or "declutter" the overlapping vertices in a graph visualization system, but I'll state it in more general terms.
    In a rectangular area of the screen there are n rectangles. Each rectangle has a location (the (x,y) coordinate of upper-left corner) a width and a height. Some of the rectangles may overlap each other. The declutter layout algorithm should translate the vertices from their original locations, such that after translation no vertices overlap. The algorithm should also try to minimize the translation distance of each rectangle, so the user does not lose all context.
    Any ideas? Sounds similar to a spring embedded layout algorithm, or some kind of repellent force algorithm, except we're not concerned about connectedness of vertices. Just need to spread out the overlapping ones.

    Any ideas? Sounds similar to a spring embedded
    layout algorithm, or some kind of repellent force
    algorithm, except we're not concerned about
    connectedness of vertices. Just need to spread out
    the overlapping ones.I think a good way to start thinking of algorithms is to consider how you would do this manually. In this case, I would probably start at the top left-corner rectangle, find elements overlap it, and move those away in along the axis of their greatest linear overlap. Then recurse on those rectangles.
    Now if the relative position of the elements is unimportant, you can use a bin packing algorithm and rerrange all the elements.

  • Root-Node  + Child -Node +Line-Node

    How can I implement with alv-tree the following requirement:
    Root-Node  -> Customer-Nr
    Child -Node -> Range
    Line-Node  -> Datas
    Regards
    Ilhan

    refer Tcode DWDM
    or
    refer link
    http://www.sapdevelopment.co.uk/reporting/alvhome.htm
    reward if useful.

  • Layout algorithms

    hi there,
    are there any examples of layout algorithms being implemented in java?
    such as the one of Sugiyama (Kozo Sugiyama, 1980).
    Can anyone direct me to some sources please?
    I would be grateful to any help I can get.
    Sincerely
    Karlheinz Toni

    hi,
    take a look at http://www.yworks.com/ - they have a very good java graph drawing library, which can create automatic layouts (among which are sugiyama styles and related styles)
    you may download an evaluation version, or use the free online graph editor yEd (using webstart) which demonstrates a lot of the available layouts. Additionally, they have a nice gallery of graph drawings and automatic layouts on their site... go see it
    greetings, sebastian

  • Spring Embedded Layout Algorithm

    Does anyone know where I can find pseudocode for this? I've found code, but I want to come up with my own. I've been told this algorithm is not too difficult, but I'm not having any luck searching for pseudocode.
    Please help!

    Yep the code I gave will, in general pull all the nodes into a bunch in the middle.
    There are a number of ways around this:
    First. Fix the position of some nodes. The can be useful for some applications. Circuit layout for example
    were you may want to specify the positions of some of the components.
    Second. Add a term to the code that tries to seperate nodes. Therefore nodes are pulled together by thier
    common edges but the effect is countered by another term if they get too close together.
    Often a combination of the two is used as the first approach is generally useful but its a pain to require
    users to specify the fixed nodes. The second works in general but it is often useful for the users to be able
    to specify some fixed nodes, if they want to, ala the first approach.
    How you implement this "push" factor depends on your needs. It may be a global value in which each
    node tries to seperate itself from all other nodes (this can be expensive O(n^2)) or more simply that
    each node has a gradually increasing "push" factor applied the closer it gets to nodes it is directly linked to.
    Also the weight of the edges can be incorporated into the calculation if they have such a thing.
    I should also say that if your graph contains many edges per node then it can be more efficient to iterate
    through the nodes (rather then the edges) and compute the combined pull exterted on that node by all of the
    edges that connect to it.

  • How do I remove a line in Layout?

    There is a line in section text layout that I wish to either remove or move around (shown as the selected red line). But I can't seem to delete or move them once I selected it in the layout. Why? Thanks!

    Thanks! It works. But if I apply the change to the section, it will wipe out all the images of all the sections... and I have a lot of images!
    What's the best way to remove that line and not cause too much images? Can I do it page by page?

  • Line Item Layout

    Hi Experts,
    I have found all layouts for display functionality but I don't know how to create Layout for GL (FBL3N), Customer (FBL5N) and vendor (FBL1N) line item.
    Please provide the solution to this.
    Thanks a lot...........

    Execute the report FBL1N or FBL3N or FBL5N
    Settings ==> Special Fields
    Include your special fields from the available tables. (This is cross client)
    Create Transport request number and transport.
    Regards,
    Ravi

  • [Selection-screen] Begin of line, Icons, Layout, ...

    Hi,
    Is WDA lacking some those very familiar features we have in ABAP Selection-screen? (WDR_TEST_SELECT_OPTIONS application certainly does not show the full scope, is it?)
    Is there a replacement for BEGIN OF LINE in WDA selection-screen?
    What about adding comments?
    Is this possible to add icon or images?
    Besides, I was wondering how it is possible to lay the selection-screen in multiple columns. In tried different layout (Grid, Matrix, ...) without success.
    Lastly, is this possible to put labels on top of input fields?
    Do not hesitate to share your most beautiful selection-screens! 
    Thanks in advance.
    Best regards,
    Guillaume

    Some of the designing things are missing in select options -
    IF_WD_SELECT_OPTIONS~ADD_HORIZONTAL_DIVIDER - > to add a line
    IF_WD_SELECT_OPTIONS`ADD_TEXT_LINE - Add a text based line...
    Regarding alignment we need to work on it..there are layout options using ADD_BLOCK..
    Adding Icon/Symbol - I don't see any option...in the interface

  • Blue line for layout (what are they called)

    In pages, when you open a template or pre-made document, there are blue lines on the Y and x-axis that help outline the page. What are those called and how do I add them to my “new” document.

    Welcome to Apple Discussions
    They are called Alignment Guides & you can enable them in Preferences. You can also change the color by clicking in the blue box to bring up the color picker. I think they are on with all of the templates, including the blank one, but may not be with imported documents.

  • Sirius editor with Kieler/KLay layouter resizes nodes

    Hi,
    I have been trying to use the Kieler layout algorithms on diagrams that are created by a Sirius based editor.
    Each time I relayout the diagram, using the Kieler based layout algorithm, diagram nodes are resized; they are enlarged.
    I suspect that this is a problem of the Kieler layout algorithms but I want to know whether anyone has also tried this and if someone has found a solution for this issue already.
    Greetings,
    Wilbert

    OK
    I think I found something.
    For some reasons, the Kieler (layered) layout algorithm considers each node to be a subgraph on its own. If the diagram is layouted, it first starts layouting its subgraphs and then the graph itself. The layout algorithm can be configured using properties. In fact, each item on the graph can have some properties. One of them is the Border Spacing which has a default value is 12.
    So whenever a diagram is layouted, first all nodes are 'layouted'. As they are considered to be sugraphs, the Border Spacing property is applied which increases the size of the subgraphs with 24 pixels (12 on each side). Then the nodes on the diagram themselves are relayouted, taking the new size into account.
    I am not sure whether the Sirius editor does something that leads Kieler to the conclusion that each node is a subgraph on its own or that Kieler interprets the Sirius generated diagram wrongly. So I'm not sure 'who to blame'.
    So I think that I have a (manual) workaround. After displaying the graph for the first time, I need to select all nodes and set their border spacing property to zero. Selecting all nodes can be done with one action so that makes this workable.
    I'm open for any additional suggestions.
    Greetings,
    Wilbert.

Maybe you are looking for

  • Quick view and preview problems

    After upgrading to Mountain Lion, I've experienced consistent problems with quick view and the preview image on column view. I always browse the Finder in column view, so for instance, if I were to browse through a folder of photos, instead of seeing

  • Stop Plugin VI execution

    Hi Experts! I'm wondering about an elegant solution for my problem. I have a top level VI that contains subpanel, in order to call plugin VI interfaces into. The plugin vi itself has own state machine (JKI Queued State Machine) and called by VI Serve

  • New problem rating image in Survey View when multiple selected - help!

    When we are in Survey View, normally we can have multiple images selected and when we use any star rating it rates only one image (the best), but midway through an editing session it just started rating all images selected at once.  I know that this

  • Sudoing a command with a redirection to a place owned by root

    I want to : echo "some text" > /path/owned/by/root With sudo., I would : sudo sh -c 'echo "some text" > /path/owned/by/root' , and it asks me for a password. Now I want to do it from a script with no password, so I put in the following lines in sudoe

  • Media section of the finder is empty

    Hello all, I am trying to upload photos from iphoto to shutterfly. I know in the past (Snow Leopard) when I would press the upload button on a webpage, I would get the "Open" window with the special "Media" section in the sidebar that includes Pictur