Class AbstractTreeMatrix<T>

    • Constructor Detail

      • AbstractTreeMatrix

        public AbstractTreeMatrix()
    • Method Detail

      • containsCoordinates

        public boolean containsCoordinates​(long... coordinates)
        Description copied from interface: CoordinateFunctions
        Determines if the given Coordinates are part of the Matrix. If the Matrix is dense, true is returned for all Coordinates smaller than the Matrix's size. For sparse Matrices, this function checks if the coordinates are actually stored in the matrix or not.
        Specified by:
        containsCoordinates in interface CoordinateFunctions
        Parameters:
        coordinates - The coordinates to check
        Returns:
        a boolean stating if the coordinates are part of the Matrix
      • isChild

        public final boolean isChild​(java.lang.Object parent,
                                     java.lang.Object child)
        Specified by:
        isChild in interface Tree<T>
      • isChild

        public final boolean isChild​(int parentId,
                                     int childId)
        Specified by:
        isChild in interface Tree<T>
      • getObject

        public final T getObject​(int index)
        Specified by:
        getObject in interface Tree<T>
      • getChildCountRecursive

        public final long getChildCountRecursive​(java.lang.Object parent)
        Specified by:
        getChildCountRecursive in interface Tree<T>
      • getParent

        public T getParent​(java.lang.Object o)
        Specified by:
        getParent in interface Tree<T>
      • addChildren

        public void addChildren​(T parent,
                                java.util.Collection<? extends T> children)
        Specified by:
        addChildren in interface Tree<T>
      • getDouble

        public final double getDouble​(int row,
                                      int column)
        Specified by:
        getDouble in interface DoubleMatrix2D
      • getDouble

        public final double getDouble​(long row,
                                      long column)
        Specified by:
        getDouble in interface DoubleMatrix2D
      • addChild

        public final void addChild​(T parent,
                                   T child)
        Specified by:
        addChild in interface Tree<T>
      • removeChild

        public final void removeChild​(T parent,
                                      T child)
        Specified by:
        removeChild in interface Tree<T>
      • setDouble

        public final void setDouble​(double value,
                                    long row,
                                    long column)
        Specified by:
        setDouble in interface DoubleMatrix2D
      • setDouble

        public void setDouble​(double value,
                              int row,
                              int column)
        Specified by:
        setDouble in interface DoubleMatrix2D
      • addTreeModelListener

        public void addTreeModelListener​(javax.swing.event.TreeModelListener l)
        Specified by:
        addTreeModelListener in interface javax.swing.tree.TreeModel
      • getChild

        public final T getChild​(java.lang.Object parent,
                                int index)
        Specified by:
        getChild in interface javax.swing.tree.TreeModel
      • getChildCount

        public final int getChildCount​(java.lang.Object parent)
        Specified by:
        getChildCount in interface javax.swing.tree.TreeModel
      • getIndexOfChild

        public final int getIndexOfChild​(java.lang.Object parent,
                                         java.lang.Object child)
        Specified by:
        getIndexOfChild in interface javax.swing.tree.TreeModel
      • isLeaf

        public final boolean isLeaf​(java.lang.Object node)
        Specified by:
        isLeaf in interface javax.swing.tree.TreeModel
      • removeTreeModelListener

        public final void removeTreeModelListener​(javax.swing.event.TreeModelListener l)
        Specified by:
        removeTreeModelListener in interface javax.swing.tree.TreeModel
      • valueForPathChanged

        public final void valueForPathChanged​(javax.swing.tree.TreePath path,
                                              java.lang.Object newValue)
        Specified by:
        valueForPathChanged in interface javax.swing.tree.TreeModel
      • getNumberOfObjects

        public final int getNumberOfObjects()
        Specified by:
        getNumberOfObjects in interface Tree<T>
      • addObject

        public void addObject​(T o)
        Specified by:
        addObject in interface Tree<T>