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, removeChangeListener
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getFailureMessage
public 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()
ActivationCriterion
public static Set<TreePath> getPriorSelection(TreePath[] pSelection, TreeSelectionEvent pEvt)
pSelection
- Current selection.pEvt
- Event that just occurred.Copyright © 2023. All rights reserved.