Examples of Fold


Examples of org.fife.ui.rsyntaxtextarea.folding.Fold

      }
    }

    @Override
    public void mouseMoved(MouseEvent e) {
      Fold newSelectedFold = findOpenFoldClosestTo(e.getPoint());
      if (newSelectedFold!=foldWithOutlineShowing &&
          newSelectedFold!=null && !newSelectedFold.isOnSingleLine()) {
        foldWithOutlineShowing = newSelectedFold;
        repaint();
      }
    }
View Full Code Here

Examples of org.fife.ui.rsyntaxtextarea.folding.Fold

    // TODO: Make cached getOffset() calls for Y_AXIS valid even for
    // folding, to speed this up!
    for (int i=0; i<line; i++) {
      y += getSpan(Y_AXIS, i);
      Fold fold = fm.getFoldForLine(i);
      if (fold!=null && fold.isCollapsed()) {
        i += fold.getCollapsedLineCount();
      }
    }

    childAllocation2(line, y, alloc);
    return alloc;
View Full Code Here

Examples of org.fife.ui.rsyntaxtextarea.folding.Fold

      if (y<curY+span) {
        childAllocation2(line-1, curY, alloc);
        return getView(line-1);
      }
      curY += span;
      Fold fold = fm.getFoldForLine(line-1);
      if (fold!=null && fold.isCollapsed()) {
        line += fold.getCollapsedLineCount();
      }
    }

    // Not found - return last line's view.
    childAllocation2(lineCount - 1, curY, alloc);
View Full Code Here

Examples of org.fife.ui.rsyntaxtextarea.folding.Fold

        }
      }

      tempRect.y += tempRect.height;

      Fold possibleFold = fm.getFoldForLine(i);
      if (possibleFold!=null && possibleFold.isCollapsed()) {
        i += possibleFold.getCollapsedLineCount();
        // Visible indicator of collapsed lines
        Color c = RSyntaxUtilities.getFoldedLineBottomColor(host);
        if (c!=null) {
          g.setColor(c);
          g.drawLine(x,tempRect.y-1, host.getWidth(),tempRect.y-1);
View Full Code Here

Examples of org.wicketstuff.jwicket.ui.effect.Fold

    drop2.setDirection(EffectDirection.UP);
    drop2.setMode(EffectMode.SHOW);
    postEffects.add(drop2);
   

    Fold fold1 = new Fold();
    add(fold1);
    fold1.setSpeed(1000);
    fold1.setMode(EffectMode.HIDE);
    fold1.setSize(400);
    postEffects.add(fold1);

    Fold fold2 = new Fold();
    add(fold2);
    fold2.setHorizFirst(false);
    fold2.setSpeed(1000);
    fold2.setMode(EffectMode.SHOW);
    fold2.setSize(300);
    postEffects.add(fold2);


    Highlight highlight1 = new Highlight();
    add(highlight1);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.