Package org.jdesktop.wonderland.client.scenemanager.event

Examples of org.jdesktop.wonderland.client.scenemanager.event.SceneEvent


        }
       
        @Override
        public void commitEvent(Event event) {
            Logger logger = Logger.getLogger(MySelectionListener.class.getName());
            SceneEvent se = (SceneEvent)event;
            if (event instanceof ActivatedEvent) {
                logger.warning("SELECTION: ACTIVATED EVENT " +
                        se.getEntityList().get(0));
            }
            else if (event instanceof SelectionEvent) {
                List<Entity> selected = SceneManager.getSceneManager().getSelectedEntities();
                ListIterator<Entity> it = selected.listIterator();
                logger.warning("SELECTION: SELECTION EVENT " + selected.size());
                while (it.hasNext() == true) {
                    Entity entity = it.next();
                    logger.warning("SELECTION: SELETION EVENT " +
                            entity.getName());
                }
            }
            else if (event instanceof ContextEvent) {
                logger.warning("SELECTION: CONTEXT EVENT " +
                        se.getEntityList().size());
            }
            else if (event instanceof HoverEvent) {
                logger.warning("SELECTION: HOVER EVENT " +
                        se.getEntityList().get(0) + " " +
                        ((HoverEvent)event).isStart() + " @ " +
                        ((HoverEvent)event).getMouseEvent().getX() + " " +
                        ((HoverEvent)event).getMouseEvent().getY());
            }
            else if (event instanceof EnterExitEvent) {
                logger.warning("SELECTION: ENTER EXIT EVENT " +
                        se.getEntityList().get(0) + " " +
                        ((EnterExitEvent)event).isEnter());
            }
        }
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.client.scenemanager.event.SceneEvent

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.