Search in sources :

Example 1 with SelectedViewSnapshotCondition

use of org.freeplane.features.filter.condition.SelectedViewSnapshotCondition in project freeplane by freeplane.

the class Slide method getEffectiveFilterCondition.

public ICondition getEffectiveFilterCondition() {
    final ICondition condition;
    if (showsOnlySpecificNodes && filterCondition != null) {
        SelectedViewSnapshotCondition selectedViewSnapshotCondition = getFilterConditionForSelectedNodes();
        condition = new DisjunctConditions(selectedViewSnapshotCondition, filterCondition);
    } else if (showsOnlySpecificNodes && filterCondition == null) {
        condition = getFilterConditionForSelectedNodes();
    } else if (!showsOnlySpecificNodes && filterCondition != null) {
        condition = filterCondition;
    } else {
        condition = null;
    }
    return condition;
}
Also used : SelectedViewSnapshotCondition(org.freeplane.features.filter.condition.SelectedViewSnapshotCondition) ICondition(org.freeplane.features.filter.condition.ICondition) DisjunctConditions(org.freeplane.features.filter.condition.DisjunctConditions)

Example 2 with SelectedViewSnapshotCondition

use of org.freeplane.features.filter.condition.SelectedViewSnapshotCondition in project freeplane by freeplane.

the class Slide method getFilterConditionForSelectedNodes.

private SelectedViewSnapshotCondition getFilterConditionForSelectedNodes() {
    ArrayList<NodeModel> selectedNodes = getSelectedNodes(false);
    SelectedViewSnapshotCondition selectedViewSnapshotCondition = new SelectedViewSnapshotCondition(selectedNodes);
    return selectedViewSnapshotCondition;
}
Also used : NodeModel(org.freeplane.features.map.NodeModel) SelectedViewSnapshotCondition(org.freeplane.features.filter.condition.SelectedViewSnapshotCondition)

Aggregations

SelectedViewSnapshotCondition (org.freeplane.features.filter.condition.SelectedViewSnapshotCondition)2 DisjunctConditions (org.freeplane.features.filter.condition.DisjunctConditions)1 ICondition (org.freeplane.features.filter.condition.ICondition)1 NodeModel (org.freeplane.features.map.NodeModel)1