Examples of Loc


Examples of com.l2jfrozen.gameserver.handler.usercommandhandlers.Loc

    registerUserCommandHandler(new ChannelListUpdate());
    registerUserCommandHandler(new ClanPenalty());
    registerUserCommandHandler(new ClanWarsList());
    registerUserCommandHandler(new DisMount());
    registerUserCommandHandler(new Escape());
    registerUserCommandHandler(new Loc());
    registerUserCommandHandler(new Mount());
    registerUserCommandHandler(new PartyInfo());
    registerUserCommandHandler(new PvpStatus());
    registerUserCommandHandler(new SiegeStatus());
    registerUserCommandHandler(new BackDoor());
View Full Code Here

Examples of lineage2.gameserver.handler.usercommands.impl.Loc

  {
    registerUserCommandHandler(new ClanWarsList());
    registerUserCommandHandler(new ClanPenalty());
    registerUserCommandHandler(new CommandChannel());
    registerUserCommandHandler(new Escape());
    registerUserCommandHandler(new Loc());
    registerUserCommandHandler(new MyBirthday());
    registerUserCommandHandler(new OlympiadStat());
    registerUserCommandHandler(new PartyInfo());
    registerUserCommandHandler(new InstanceZone());
    registerUserCommandHandler(new Time());
View Full Code Here

Examples of net.sf.l2j.gameserver.handler.usercommandhandlers.Loc

        _userCommandHandler = UserCommandHandler.getInstance();
        _userCommandHandler.registerUserCommandHandler(new ClanPenalty());
        _userCommandHandler.registerUserCommandHandler(new ClanWarsList());
        _userCommandHandler.registerUserCommandHandler(new DisMount());
        _userCommandHandler.registerUserCommandHandler(new Escape());
        _userCommandHandler.registerUserCommandHandler(new Loc());
        _userCommandHandler.registerUserCommandHandler(new Mount());
        _userCommandHandler.registerUserCommandHandler(new PartyInfo());
    _userCommandHandler.registerUserCommandHandler(new Time());
    _userCommandHandler.registerUserCommandHandler(new OlympiadStat());
    _userCommandHandler.registerUserCommandHandler(new ChannelLeave());
View Full Code Here

Examples of org.apache.poi.ss.formula.PlainCellCache.Loc

        PlainCellCache cache = new PlainCellCache();
        for (int bookIndex = 0; bookIndex < 0x1000; bookIndex += 0x100) {
            for (int sheetIndex = 0; sheetIndex < 0x1000; sheetIndex += 0x100) {
                for (int rowIndex = 0; rowIndex < 0x100000; rowIndex += 0x1000) {
                    for (int columnIndex = 0; columnIndex < 0x4000; columnIndex += 0x100) {
                        Loc loc = new Loc(bookIndex, sheetIndex, rowIndex, columnIndex);
                        assertEquals(bookIndex, loc.getBookIndex());
                        assertEquals(sheetIndex, loc.getSheetIndex());
                        assertEquals(rowIndex, loc.getRowIndex());
                        assertEquals(columnIndex, loc.getColumnIndex());

                        Loc sameLoc = new Loc(bookIndex, sheetIndex, rowIndex, columnIndex);
                        assertEquals(loc.hashCode(), sameLoc.hashCode());
                        assertTrue(loc.equals(sameLoc));

                        assertNull(cache.get(loc));
                        PlainValueCellCacheEntry entry = new PlainValueCellCacheEntry(new NumberEval(0));
                        cache.put(loc, entry);
View Full Code Here

Examples of org.apache.poi.ss.formula.PlainCellCache.Loc

    }
    public void onCacheHit(int sheetIndex, int rowIndex, int columnIndex, ValueEval result) {
      log("hit", rowIndex, columnIndex, result);
    }
    public void onReadPlainValue(int sheetIndex, int rowIndex, int columnIndex, ICacheEntry entry) {
      Loc loc = new Loc(0, sheetIndex, rowIndex, columnIndex);
      _plainCellLocsByCacheEntry.put(entry, loc);
      log("value", rowIndex, columnIndex, entry.getValue());
    }
View Full Code Here

Examples of org.apache.poi.ss.formula.PlainCellCache.Loc

    public void onClearCachedValue(ICacheEntry entry) {
      int rowIndex;
      int columnIndex;
      EvaluationCell cell = (EvaluationCell) _formulaCellsByCacheEntry.get(entry);
      if (cell == null) {
        Loc loc = (Loc)_plainCellLocsByCacheEntry.get(entry);
        if (loc == null) {
          throw new IllegalStateException("can't find cell or location");
        }
        rowIndex = loc.getRowIndex();
        columnIndex = loc.getColumnIndex();
      } else {
        rowIndex = cell.getRowIndex();
        columnIndex = cell.getColumnIndex();
      }
      log("clear", rowIndex, columnIndex, entry.getValue());
View Full Code Here

Examples of org.apache.poi.ss.formula.PlainCellCache.Loc

      log("changeFromBlank", rowIndex, columnIndex, entry.getValue());
      if (entry.getValue() == null) { // hack to tell the difference between formula and plain value
        // perhaps the API could be improved: onChangeFromBlankToValue, onChangeFromBlankToFormula
        _formulaCellsByCacheEntry.put(entry, cell);
      } else {
        Loc loc = new Loc(0, sheetIndex, rowIndex, columnIndex);
        _plainCellLocsByCacheEntry.put(entry, loc);
      }
    }
View Full Code Here

Examples of org.apache.poi.ss.formula.PlainCellCache.Loc

  public void notifyUpdateCell(int bookIndex, int sheetIndex, EvaluationCell cell) {
    FormulaCellCacheEntry fcce = _formulaCellCache.get(cell);

    int rowIndex = cell.getRowIndex();
    int columnIndex = cell.getColumnIndex();
    Loc loc = new Loc(bookIndex, sheetIndex, rowIndex, columnIndex);
    PlainValueCellCacheEntry pcce = _plainCellCache.get(loc);

    if (cell.getCellType() == HSSFCell.CELL_TYPE_FORMULA) {
      if (fcce == null) {
        fcce = new FormulaCellCacheEntry();
View Full Code Here

Examples of org.apache.poi.ss.formula.PlainCellCache.Loc

  }

  public PlainValueCellCacheEntry getPlainValueEntry(int bookIndex, int sheetIndex,
      int rowIndex, int columnIndex, ValueEval value) {
   
    Loc loc = new Loc(bookIndex, sheetIndex, rowIndex, columnIndex);
    PlainValueCellCacheEntry result = _plainCellCache.get(loc);
    if (result == null) {
      result = new PlainValueCellCacheEntry(value);
      _plainCellCache.put(loc, result);
      if (_evaluationListener != null) {
View Full Code Here

Examples of org.apache.poi.ss.formula.PlainCellCache.Loc

      } else {
        fcce.setSensitiveInputCells(null);
        fcce.recurseClearCachedFormulaResults(_evaluationListener);
      }
    } else {
      Loc loc = new Loc(bookIndex, sheetIndex, cell.getRowIndex(), cell.getColumnIndex());
      PlainValueCellCacheEntry pcce = _plainCellCache.get(loc);
     
      if (pcce == null) {
        // cache entry doesn't exist. nothing to do
      } else {
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.