Class MyTools
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 Summary
Constructors Constructor Description MyTools()
-
Method Summary
Modifier and Type Method Description static String
getLabelFromNode(Node n)
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, Selection selection, ArrayList<Graph> patternGraphs)
As the attribute access is very slow, this method initializes the NodeCacheEntry structures.static void
initNodeCache3d(ArrayList<NodeCacheEntry3d> nodeArray, HashMap<Node,NodeCacheEntry3d> nodeSearch, Graph graph, Selection selection)
static void
setXY(Node a, double x, double y)
static void
setXYZ(Node a, double x, double y, double z)
-
Constructor Details
-
MyTools
public MyTools()
-
-
Method Details
-
setXY
-
setXYZ
-
getX
For geting the x position of a node through attribute access,- Parameters:
a
- Node to be analysed.- Returns:
- X position of node.
-
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, 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 VectornodeSearch
- Node - Vectorgraph
- The graph instance
-
initNodeCache3d
public static void initNodeCache3d(ArrayList<NodeCacheEntry3d> nodeArray, HashMap<Node,NodeCacheEntry3d> nodeSearch, Graph graph, Selection selection) -
getLabelFromNode
-