Child pages
  • KIML

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Warning
titleWork in Progress

This tutorial is still being worked on. Don't start working on it just yet.

Welcome to the second tutorial! We will work our way through installing a proper Eclipse setup and developing a first very basic layout algorithm. The layout algorithm will integrate with KIML (KIELER Infrastructure for Meta-Layout), our very own framework that connects graphical editors with layout algorithms. Once you're finished, you should be able to create new Eclipse plug-ins and know how to write layout algorithms for KIML. And you should have a running Eclipse-based application that should look something like this:

Image Added

 

Warning
titleToDo

Insert screen shot of final application.

Warning
titleToDo

Insert link to presentation slides.

...

  1. Add a new method that will implement the edge routing using the following skeleton code:

    Code Block
    languagejava
    /**
     * Routes the edges connecting the nodes in the given graph.
     * 
     * @param parentNode the graph whose edges to route.
     * @param yStart y coordinate of the start of the edge routing area.
     * @param objectSpacing the object spacing.
     * @return height used for edge routing.
     */
    private float routeEdges(final KNode parentNode, final float yStart, final float objectSpacing) {
        // TODO: Implement edge routing
    
        return 0;
    }
  2. Add a call to routeEdges(...) in your doLayout(...) method and implement the latter.

...