Examples of Position


Examples of javax.swing.text.Position

    }
   
    void addRecord(String str, int removeLen) {
        // update the scrolling information for the panel
        ManualScrollEditorPane mspe = (ManualScrollEditorPane) logPane;
        Position pos = mspe.preModify();
        boolean atEnd = mspe.atEnd();

        // add the new text to the end of the current document
        try {
            final Document doc = logPane.getDocument();

            // if there is text to remove, remove it first
            if (removeLen > 0) {
                doc.remove(0, removeLen);
            }

            Position end = doc.getEndPosition();
            doc.insertString(end.getOffset() - 1, str, null);
        } catch (BadLocationException ble) {
            // should never happen
            logger.log(Level.WARNING, "Bad location", ble);
            return;
        }
View Full Code Here

Examples of kakuro.table.Position

    _difficulty = skeleton.getDifficulty();
    _blacks.clear();
    _fields.clear();
    for (int i=0; i<_x; i++)
      for (int j=0; j<_y; j++)
        if (skeleton.getType(new Position(i, j))==ISkeletonTable.CELL_BLACK)
          _blacks.put(new Position(i, j), true);
    redraw();
  }
View Full Code Here

Examples of krati.retention.Position

    }
   
    @Override
    public Position syncUp(Position position, Map<byte[], Event<byte[]>> map) {
        Map<K, Event<GenericRecord>> inputMap = new HashMap<K, Event<GenericRecord>>();
        Position nextPosition = _storeBus.get(position, inputMap);
       
        for(Map.Entry<K, Event<GenericRecord>> e : inputMap.entrySet()) {
            byte[] key = _keySerializer.serialize(e.getKey());
           
            GenericRecord record = e.getValue().getValue();
View Full Code Here

Examples of lombok.ast.Position

    id.setPosition(pos);
    return id;
  }
 
  private Position toPosition(int start, int end) {
    return new Position(start, end + 1);
  }
View Full Code Here

Examples of minesweeper.ai.games.BoardConfiguration.Position

      toFlag.retainAll(outFlag.asSet());
      incrementAll(toPickMap,outPick);
      incrementAll(toFlagMap,outFlag);
      return true;
    }
    Position p = positions.remove(0);
    board.setCell(p,Cell.NO_BOMB);
    boolean result = false;
    if(helper.validate(p))
      if(backtrackSolve(board,helper,positions,new Node(p,outPick),outFlag))
        result = true;
View Full Code Here

Examples of mondrian.olap.Position

    tuples = new JRMondrianTuple[positions.size()];
   
    int idx = 0;
    for (Iterator it = positions.iterator(); it.hasNext(); ++idx)
    {
      Position position = (Position) it.next();
      tuples[idx] = new JRMondrianTuple(position, factory);
    }
   
    hierarchies = new JRMondrianHierarchy[axisHierarchies.length];
    for (int i = 0; i < axisHierarchies.length; i++)
View Full Code Here

Examples of nav.position.Position

        distanceMap = initDistanceMap(new ConcurrentHashMap<Double, TableEntry>(3600));
        Thread coverageCalculatorThread = new Thread(new Runnable() {

            public void run() {
                List<Double> tmpList;
                Position pos;
                while (true) {
                    try {
                        coveragePerimeter = new ArrayList<Position>(3600);
                        coveragePerimeter.add(location);
                        calculateCoveragePerimiter();
                        tmpList = new ArrayList<Double>(3600);
                        // Add any non-null positions to the geo-position list so
                        // that they can later form the points for the coverage polygon
                        for (Double key : distanceMap.keySet()) {
                            if (distanceMap.get(key).getPosition() != null) {
                                tmpList.add(key);
                            }
                        }
                        // Sort the positions according to their appearance from 0 to 360 degrees
                        Collections.sort(tmpList);
                        for (Double key : tmpList) {
                            pos = new Position(distanceMap.get(key).getPosition().getLatitude(),
                                    distanceMap.get(key).getPosition().getLongitude());
                            coveragePerimeter.add(pos);
                        }
                        pos = new Position(getLocation().getLatitude(),
                                getLocation().getLongitude());

                        coveragePerimeter.add(pos);
                        // Sleep two seconds
                        pos = null;
View Full Code Here

Examples of net.canarymod.api.world.position.Position

                sendData(caller, "Time Played: ", ToolBox.getTimeUntil(oSubject.getTimePlayed()));
                sendData(caller, "Muted: ", oSubject.isMuted());
                sendData(caller, "Prefix: ", oSubject.getPrefix());
                sendData(caller, "Primary Group: ", oSubject.getGroup().getName());
                sendData(caller, "Other Groups: ", oSubject.getPlayerGroups());
                Position l = oSubject.getPosition();
                sendData(caller, "Position: ", String.format("X: %.2f Y: %.2f Z: %.2f", l.getX(), l.getY(), l.getZ()));
                sendData(caller, "World: ", oSubject.getWorld().getFqName());
                Warp home = Canary.warps().getHome(oSubject.getName());
                if (home != null) {
                    l = home.getLocation();
                    sendData(caller, "Home: ", String.format("X: %.2f Y: %.2f Z: %.2f", l.getX(), l.getY(), l.getZ()));
                }
                else {
                    sendData(caller, "Home: ", "Not set");
                }
            }
View Full Code Here

Examples of net.lightstone.model.Position

  @Override
  public void handle(Session session, Player player, PositionMessage message) {
    if (player == null)
      return;

    player.setPosition(new Position(message.getX(), message.getY(), message.getZ()));
  }
View Full Code Here

Examples of net.minecraft.src.buildcraft.api.Position

        for (int i = meta + 1; i <= meta + 6; ++i) {
         
            Orientations o = Orientations.values() [i % 6];

            Position pos = new Position (xCoord, yCoord, zCoord, o);

            pos.moveForwards(1);

            TileEntity tile = worldObj.getBlockTileEntity((int) pos.x, (int) pos.y,
                              (int) pos.z);

            if (isInput (tile)) {
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.