java.lang.Object
de.ipk_gatersleben.ag_nw.graffiti.plugins.layouters.pattern_springembedder.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)
    • setXYZ

      public static void setXYZ​(Node a, double x, double y, double z)
    • 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.
    • 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, Selection selection, ArrayList<Graph> patternGraphs)
      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
    • initNodeCache3d

      public static void initNodeCache3d​(ArrayList<NodeCacheEntry3d> nodeArray, HashMap<Node,​NodeCacheEntry3d> nodeSearch, Graph graph, Selection selection)
    • getLabelFromNode

      public static String getLabelFromNode​(Node n)