Package org.freeplane.features.filter

Examples of org.freeplane.features.filter.FilterController


        setBackgroundColor(ColorUtils.stringToColor(rgbString));
    }

  // Map: R/W
  public void setFilter(final Closure<Boolean> closure) {
    final FilterController filterController = FilterController.getCurrentFilterController();
    if (closure == null) {
      filterController.applyNoFiltering();
    }
    else {
      final Filter filter = new Filter(ProxyUtils.createCondition(closure, getScriptContext()), false, false,
          true);
      filterController.applyFilter(filter, getDelegate(), true);
    }
  }
View Full Code Here


    setFilter(closure);
  }

  // Map: R/W
  public void setFilter(final boolean showAncestors, final boolean showDescendants, final Closure<Boolean> closure) {
    final FilterController filterController = FilterController.getCurrentFilterController();
    if (closure == null) {
      filterController.applyNoFiltering();
    }
    else {
      final Filter filter = new Filter(ProxyUtils.createCondition(closure, getScriptContext()), showAncestors,
          showDescendants, true);
      filterController.applyFilter(filter, getDelegate(), true);
    }
  }
View Full Code Here

  public MapModel() {
    extensionContainer = new ExtensionContainer(new HashMap<Class<? extends IExtension>, IExtension>());
    this.root = null;
    listeners = new LinkedList<IMapChangeListener>();
    nodes = new HashMap<String, NodeModel>();
    final FilterController filterController = FilterController.getCurrentFilterController();
    if (filterController != null) {
      filter = filterController.createTransparentFilter();
    }
    final ModeController modeController = Controller.getCurrentModeController();
    iconRegistry = new IconRegistry(modeController.getMapController(), this);
  }
View Full Code Here

    final Point origin = new Point();
    UITools.convertPointToAncestor(mainView, origin, this);
    g.translate(origin.x, origin.y);
    mainView.paintDecoration(this, g);
    g.translate(-origin.x, -origin.y);
    final FilterController filterController = FilterController.getController(getMap().getModeController().getController());
    if(filterController.isNodeHighlighted(getModel())){
      final Color oldColor = g.getColor();
      final Stroke oldStroke = g.getStroke();
      g.setColor(Color.MAGENTA);
      g.setStroke(getMap().getStandardSelectionStroke());
      final JComponent content = getContent();
View Full Code Here

TOP

Related Classes of org.freeplane.features.filter.FilterController

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.