Examples of Position


Examples of net.sf.myway.base.db.Position

  /**
   * @see org.eclipse.gef.commands.Command#execute()
   */
  @Override
  public void execute() {
    final Position position = _coordSys.toPosition(_location);
    MapNode n = EditPlugin.getBL().findNode(position);
    if (n == null) {
      n = _node;
      n.setPosition(position);
    }
View Full Code Here

Examples of net.sf.myway.gps.datatypes.Position

    NoSuchMethodException, IllegalArgumentException, IllegalAccessException,
    InvocationTargetException, InstantiationException, ClassNotFoundException {
    final byte[] buffer = new byte[4096];
    final Waypoint wp = new Waypoint();
    wp.setIdent("TestWP");
    wp.setPosition(new Position(54.12343, -123.2334));
    wp.setComment("that's it");
    final int len = Mapper.toMessage(buffer, 6, wp, "D100");
    final StringBuilder b = new StringBuilder();
    for (int i = 0; i < len; i++) {
      final byte element = buffer[i];
View Full Code Here

Examples of net.sf.swtbot.utils.Position

        getControl().setFocus();
        int offset = getControl().getSelectionRange().x;
        int lineNumber = getControl().getContent().getLineAtOffset(offset);
        int offsetAtLine = getControl().getContent().getOffsetAtLine(lineNumber);
        int columnNumber = offset - offsetAtLine;
        return new Position(lineNumber, columnNumber);
      }
    });
  }
View Full Code Here

Examples of org.allspice.util.Position

  public ParserStackEntry<StackObject> translate(ParserState state,final Rule rule) throws SyntaxError {
    ParserStackEntry<StackObject> r = state.reductions ;
    for(int i = 0; i < rule.rhs.size(); i++) {
      r = r.tail ;
    }
    Position end = currTokenPositionRange.end ;
    Position start = rule.rhs.isEmpty() ? end : state.reductions.head.range.start ;
    PositionRange range = new PositionRange(start,end);
    Object obj = parseTable.reduce(rule,this,state,range) ;
    r = new ParserStackEntry<StackObject>(new StackObject(obj,range),r) ;
    return r ;
  }
View Full Code Here

Examples of org.apache.aurora.scheduler.log.Log.Position

  @Test
  public void testTransactionEmpty() throws CodingException {
    control.replay();

    Position position = createNoMessagesStreamManager().startTransaction().commit();
    assertNull(position);
  }
View Full Code Here

Examples of org.apache.directory.api.util.Position

        if ( Strings.isEmpty( filter ) )
        {
            throw new ParseException( I18n.err( I18n.ERR_04158 ), 0 );
        }

        Position pos = new Position();
        pos.start = 0;
        pos.end = 0;
        pos.length = filter.length;

        try
View Full Code Here

Examples of org.apache.directory.shared.util.Position

        if ( Strings.isEmpty( filter ) )
        {
            throw new ParseException( I18n.err( I18n.ERR_04158 ), 0 );
        }

        Position pos = new Position();
        pos.start = 0;
        pos.end = 0;
        pos.length = filter.length;

        try
View Full Code Here

Examples of org.apache.fop.layoutmgr.Position

       
        for (int p = 0; p < knuthParagraphs.size(); p++) {
            // null penalty between paragraphs
            if (p > 0 && !((BlockLevelLayoutManager) parentLM).mustKeepTogether()) {
                returnList.add(new BreakElement(
                        new Position(this), 0, context));
                //returnList.add(new KnuthPenalty(0, 0, false, new Position(this), false));
            }
       
            LineLayoutPossibilities llPoss;
            llPoss = (LineLayoutPossibilities) lineLayoutsList.get(p);
            KnuthSequence seq = (KnuthSequence) knuthParagraphs.get(p);

            if (!seq.isInlineSequence()) {
                LinkedList targetList = new LinkedList();
                ListIterator listIter = seq.listIterator();
                while (listIter.hasNext()) {
                    ListElement tempElement;
                    tempElement = (ListElement) listIter.next();
                    if (tempElement.getLayoutManager() != this) {
                        tempElement.setPosition(notifyPos(new NonLeafPosition(this,
                                tempElement.getPosition())));
                    }
                    targetList.add(tempElement);
                }
                returnList.addAll(targetList);
            } else if (seq.isInlineSequence() && alignment == EN_JUSTIFY) {
                /* justified vertical alignment (not in the XSL FO recommendation):
                   create a multi-layout sequence whose elements will contain
                   a conventional Position */
                Position returnPosition = new LeafPosition(this, p);
                createElements(returnList, llPoss, returnPosition);
            } else {
                /* "normal" vertical alignment: create a sequence whose boxes
                   represent effective lines, and contain LineBreakPositions */
                Position returnPosition = new LeafPosition(this, p);
                int startIndex = 0;
                for (int i = 0;
                        i < llPoss.getChosenLineCount();
                        i++) {
                    if (!((BlockLevelLayoutManager) parentLM).mustKeepTogether()
View Full Code Here

Examples of org.apache.jackrabbit.webdav.ordering.Position

        Node n = (Node)item;
        try {
            for (OrderPatch.Member instruction : orderPatch.getOrderInstructions()) {
                String srcRelPath = Text.unescape(instruction.getMemberHandle());
                Position pos = instruction.getPosition();
                String destRelPath = getRelDestinationPath(pos, n.getNodes());
                // preform the reordering
                n.orderBefore(srcRelPath, destRelPath);
            }
            complete();
View Full Code Here

Examples of org.apache.lucene.analysis.ja.JapaneseTokenizer.Position

    bestPathMap.clear();

    int pos = endPosData.pos;
    int bestIDX = fromIDX;
    while (pos > startPos) {
      final Position posData = positions.get(pos);

      final int backPos = posData.backPos[bestIDX];
      final int backIDX = posData.backIndex[bestIDX];

      final String toNodeID = getNodeID(pos, bestIDX);
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.