java.lang.Object
de.ipk_gatersleben.ag_nw.graffiti.plugins.layouters.pattern_springembedder_no_cache.MyTools

public class MyTools
extends Object
DOCUMENT ME!
Version:
$Revision$
Author:
$author$
  • Constructor Details

    • MyTools

      public MyTools()
  • Method Details

    • setXY

      public static void setXY​(Node a, double x, double y)
    • getX

      public static double getX​(Node a)
      For geting the x position of a node through attribute access,
      Parameters:
      a - Node to be analysed.
      Returns:
      X position of node.
    • getPosition

      public static void getPosition​(Node a, Vector2d result)
    • getY

      public static double getY​(Node a)
      For geting the y position of a node through attribute access,
      Parameters:
      a - Node to be analysed.
      Returns:
      Y position of node.
    • initNodeCache

      public static void initNodeCache​(ArrayList<NodeCacheEntry> nodeArray, HashMap<Node,​NodeCacheEntry> nodeSearch, Graph graph)
      As the attribute access is very slow, this method initializes the NodeCacheEntry structures. And saved all information that needs to be accessed many times.
      Parameters:
      nodeArray - NodeCacheEntry Vector
      nodeSearch - Node - Vector
      graph - The graph instance
      logger - a logger class
    • getLabelFromNode

      public static String getLabelFromNode​(Node n)