java.lang.Object
de.ipk_gatersleben.ag_nw.graffiti.plugins.layouters.pattern_springembedder.NodeCacheEntry3d

public class NodeCacheEntry3d
extends Object
Saves the information about pattern type and number for all nodes of a graph
Author:
klukas
  • Field Details

    • position

      public Vector3d position
      Cache for Node Positions
    • lastTouch

      public int lastTouch
      Used for storing the information about the last run-number of the last movement. The springembedder algorithm runs a number of times, each time a counter is increased by 1. As soon as a node has been updated, it lastTouch value is set to the current counter number. Patterns are calculated as one group. Because of the lastTouch value it can be checked, if a node has been already moved in the current springembedder run. This way the patterns are threated more equalily to the normal nodes, as they are not updated more frequently. This number has to be initialized to -1.
    • size

      public Vector2d size
      Vector contains the size of the node (width, height)
    • patternType

      public String patternType
      Name of pattern, "" if no pattern assigned
    • patternNodes

      public ArrayList patternNodes
      Vector with patterNodes Objects, which store the information about all connected patterns.
    • connectedNodes

      public ArrayList connectedNodes
      Contains the connected nodes (NodeCacheEntrys)
    • patternIndex

      public int patternIndex
      1..x Number of pattern. Similar patterns in the graph are numbered. One node might have the patternType 1 and patternIndex 1, the next node, that is not connected to this pattern might have the number patternType 1 and patternIndex 2. patternIndex == -1 if no pattern is assigned
    • nodeIndex

      public int nodeIndex
      Saves the index of the node in the graph-array.
    • patternNode

      public Node patternNode
      Reference to a node in the pattern graph.
    • node

      public Node node
      Reference to the node in the graph.
    • selected

      public boolean selected
      This field should be set to true, if the user has selected this node in the GUI.
  • Constructor Details

    • NodeCacheEntry3d

      public NodeCacheEntry3d()