public class RangedSelectionDepthCriterion extends AbstractActivationCriterion
| Constructor and Description |
|---|
RangedSelectionDepthCriterion(TreeSelectionModel pSelectionModel,
int pMinDepth,
Integer pMaxDepth) |
| Modifier and Type | Method and Description |
|---|---|
static Set<TreePath> |
getPriorSelection(TreePath[] pSelection,
TreeSelectionEvent pEvt)
Guaranteed non-null.
|
boolean |
test()
TODO: return an Object (null for passed test).
|
String |
toString() |
addChangeListener, equals, fireSatisfactionChange, hashCode, inverse, removeChangeListenerclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetFailureMessagepublic RangedSelectionDepthCriterion(TreeSelectionModel pSelectionModel, int pMinDepth, Integer pMaxDepth)
pSelectionModel - Selection model against which paths are tested.pMinDepth - Minimum acceptable tree path length.pMaxDepth - Maximum acceptable tree path length (null for no max).public boolean test()
ActivationCriterionpublic static Set<TreePath> getPriorSelection(TreePath[] pSelection, TreeSelectionEvent pEvt)
pSelection - Current selection.pEvt - Event that just occurred.Copyright © 2023. All rights reserved.