Class GraphVizTokens

  • All Implemented Interfaces:
    GraphVizTokensIterator

    public class GraphVizTokens
    extends java.lang.Object
    implements GraphVizTokensIterator
    Keeps a collection of tokens. If performance lacks, the implementation could be replaced by an interval tree.
    Author:
    sleemans
    • Constructor Detail

      • GraphVizTokens

        public GraphVizTokens()
    • Method Detail

      • add

        public void add​(double startTime,
                        double endTime,
                        java.lang.String path,
                        boolean fadeIn,
                        boolean fadeOut,
                        java.awt.geom.AffineTransform transform,
                        int traceIndex)
      • cleanUp

        public void cleanUp()
      • getTokensAtTime

        public IteratorWithPosition<java.lang.Integer> getTokensAtTime​(double time)
        Parameters:
        time -
        Returns:
        Walks over the tokens that span the time
      • getStartTime

        public double getStartTime​(int tokenIndex)
      • getEndTime

        public double getEndTime​(int tokenIndex)
      • getTraceIndex

        public int getTraceIndex​(int tokenIndex)
      • getBezierIndex

        public int getBezierIndex​(int tokenIndex)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • processPath

        public static org.processmining.plugins.InductiveMiner.Pair<java.util.List<com.kitfox.svg.animation.Bezier>,​java.lang.Double> processPath​(java.lang.String path,
                                                                                                                                                        java.awt.geom.AffineTransform transform)
        Parameters:
        path -
        transform -
        Returns:
        a list of bezier segments and the total length of the curve. Each point of every bezier will be transformed using transform.
      • size

        public int size()
      • itGetOpacity

        public double itGetOpacity()
        Specified by:
        itGetOpacity in interface GraphVizTokensIterator
        Returns:
        the opacity of the last bezier itEval() was called on.
      • itGetX

        public double itGetX()
        Specified by:
        itGetX in interface GraphVizTokensIterator
        Returns:
        the x of the last bezier itEval() was called on.
      • itGetY

        public double itGetY()
        Specified by:
        itGetY in interface GraphVizTokensIterator
        Returns:
        the y of the last bezier itEval() was called on.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object