info.aduna.linkmap.layout
Interface LayoutConverter

All Known Implementing Classes:
GemLayoutManager.GemLayoutConverter

public interface LayoutConverter

A LayoutConverter can be used the rendering mechanisms to retrieve and adapt the layout of a Graph, as stored in its layout attributes, while abstracting from the specific GraphLayoutManager used (which determines what kind of layout attributes are used).


Method Summary
 void getLocation(Vertex vertex, Point location)
          Copies the layout position of the specified Vertex into the specified Point.
 void setLocation(Vertex vertex, int x, int y)
          Sets the layout position of the specified Vertex to the coordinates of the specified Point.
 void translate(Vertex vertex, int dx, int dy)
          Translates the layout position of the specified Vertex over the specified distance.
 

Method Detail

getLocation

void getLocation(Vertex vertex,
                 Point location)
Copies the layout position of the specified Vertex into the specified Point.


setLocation

void setLocation(Vertex vertex,
                 int x,
                 int y)
Sets the layout position of the specified Vertex to the coordinates of the specified Point.


translate

void translate(Vertex vertex,
               int dx,
               int dy)
Translates the layout position of the specified Vertex over the specified distance.



Copyright © 1997-2008 Aduna. All Rights Reserved.