Class MyTools
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 Summary
Constructors Constructor Description MyTools()
-
Method Summary
Modifier and Type Method Description static String
getLabelFromNode(Node n)
static void
getPosition(Node a, Vector2d result)
static double
getX(Node a)
For geting the x position of a node through attribute access,static double
getY(Node a)
For geting the y position of a node through attribute access,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.static void
setXY(Node a, double x, double y)
-
Constructor Details
-
MyTools
public MyTools()
-
-
Method Details
-
setXY
-
getX
For geting the x position of a node through attribute access,- Parameters:
a
- Node to be analysed.- Returns:
- X position of node.
-
getPosition
-
getY
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 VectornodeSearch
- Node - Vectorgraph
- The graph instancelogger
- a logger class
-
getLabelFromNode
-