Package org.jdesktop.wonderland.modules.presencemanager.common

Examples of org.jdesktop.wonderland.modules.presencemanager.common.PresenceInfo


   
    private void handlePhoneButtonPressed(ActionEvent e) {
        AudioManagerClient client = AudioManagerClientPlugin.getClient();
        WonderlandSession session = model.getSession();
       
        PresenceInfo mine = (PresenceInfo)model.getLocalPresenceInfo().clone();
        PresenceInfo caller = (PresenceInfo)model.getLocalPresenceInfo().clone();
       
        AddHUDPanel addHUDPanel = new AddHUDPanel(client,
                                                  session,
                                                  mine,
                                                  caller,
View Full Code Here


        if (selectedValues.length == 1) {
            String username =
                    NameTagNode.getUsername((String) selectedValues[0]);

            // map the user to a presence info
            PresenceInfo info = model.getAliasInfo(username);
            if (info == null) {
                LOGGER.warning("no PresenceInfo for " + username);
                return;
            }

            CellTransform desiredTransform = generateGoToPosition(info.getCellID());

           
            // attach cover screen
            String prop = System.getProperty("UserList.CoverScreen");
            if(prop == null) {
View Full Code Here

        if (selectedValues.length > 0) {
            for (int i = 0; i < selectedValues.length; i++) {
                String username =
                        NameTagNode.getUsername((String) selectedValues[i]);

                PresenceInfo info = model.getAliasInfo(username);

                if (info == null) {
                    LOGGER.warning("no PresenceInfo for " + username);
                    continue;
                }
View Full Code Here

        //remove all entries
        view.removeAllEntries();
       
        //add my name to the top
        String myName = model.getMyDisplayName();
        PresenceInfo me = model.getLocalPresenceInfo();
//       
//        logger.warning(""
//                + "\nNAME: "+myName+""
//                + "\nIs-Speaking: "+me.isSpeaking()+""
//                + "\nIs-Muted: "+me.isMuted());
        String userName = NameTagNode.getDisplayName(myName, me.isSpeaking(), me.isMuted());
        view.addEntryToView(userName, 0);
       
       
        synchronized (model.getUsersInRange()) {
//            Set<PresenceInfo> infos = model.getUsersInRange();
View Full Code Here

    }
   
    private void setMyNameTag(EventType eventType) {
        Cell cell = model.getMyCell();
        NameTagComponent ntc = cell.getComponent(NameTagComponent.class);
        PresenceInfo pi = model.getLocalPresenceInfo();
       
       
        ntc.setNameTag(eventType,
                       pi.getUserID().getUsername(),
                       pi.getUsernameAlias());
       
    }
View Full Code Here

  clearUserList();

        PresenceInfo[] presenceInfoList = pm.getAllUsers();

  for (int i = 0; i < presenceInfoList.length; i++) {
      PresenceInfo info = presenceInfoList[i];

      if (info.getCallID() == null) {
                // It's a virtual player, skip it.
    continue;
            }

      synchronized (members) {
View Full Code Here

  addToUserList(myPresenceInfo);

        PresenceInfo[] presenceInfoList = pm.getAllUsers();

  for (int i = 0; i < presenceInfoList.length; i++) {
      PresenceInfo info = presenceInfoList[i];

      if (info.getCallID() == null) {
                // It's a virtual player, skip it.
                continue;
            }

      synchronized (members) {
          synchronized (invitedMembers) {
              if (members.contains(info)) {
                if (info.equals(myPresenceInfo) == false) {
                            addToUserList(info);
            }
        } else if (invitedMembers.contains(info)) {
                if (info.equals(myPresenceInfo) == false) {
                            addToUserList(info);
            }
        }
    }
      }
View Full Code Here

    }

    public void viewEnterExit(boolean entered, Cell cell, CellID viewCellID,
      BoundingVolume proximityVolume, int proximityIndex) {

  PresenceInfo cellInfo = pm.getPresenceInfo(cell.getCellID());
  PresenceInfo viewCellInfo = pm.getPresenceInfo(viewCellID);

  logger.info("Entered " + entered + " cellInfo " + cellInfo
      + " viewCellInfo " + viewCellInfo);
    }
View Full Code Here

        SoftphoneControl sc = SoftphoneControlImpl.getInstance();

        String callID = sc.getCallID();

        PresenceInfo presenceInfo = new PresenceInfo(null, null,
      new WonderlandIdentity(name, name, null), callID);

        pm.addLocalPresenceInfo(presenceInfo);

  updateUserList();
View Full Code Here

        }

  for (int i = 0; i < selectedValues.length; i++) {
            String username = NameTagNode.getUsername((String) selectedValues[i]);

            PresenceInfo info = pm.getAliasPresenceInfo(username);

            if (info == null) {
                logger.warning("no PresenceInfo for " + username);
                continue;
            }
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.modules.presencemanager.common.PresenceInfo

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.