Class RangedSelectionDepthCriterion

    • Constructor Detail

      • RangedSelectionDepthCriterion

        public RangedSelectionDepthCriterion​(TreeSelectionModel pSelectionModel,
                                             int pMinDepth,
                                             Integer pMaxDepth)
        Parameters:
        pSelectionModel - Selection model against which paths are tested.
        pMinDepth - Minimum acceptable tree path length.
        pMaxDepth - Maximum acceptable tree path length (null for no max).
    • Method Detail

      • test

        public boolean test()
        Description copied from interface: ActivationCriterion
        TODO: return an Object (null for passed test).
      • getPriorSelection

        public static Set<TreePath> getPriorSelection​(TreePath[] pSelection,
                                                      TreeSelectionEvent pEvt)
        Guaranteed non-null.
        Parameters:
        pSelection - Current selection.
        pEvt - Event that just occurred.
        Returns:
        set tree paths