Revision: 2029
Author:
abhishek...@wishtreetech.com
Date: Tue Sep 23 06:47:19 2014 UTC
Log: Features like ImageFrame, NavigateTo and TriggerGesture. Also
some additional features in BestView and Whiteboard.
https://code.google.com/p/openwonderland-modules/source/detail?r=2029
Added:
/trunk/0.5/stable/best-view/src/classes/org/jdesktop/wonderland/modules/bestview/client/BestViewCam.java
/trunk/0.5/stable/best-view/src/classes/org/jdesktop/wonderland/modules/bestview/common/BestViewChangeMessage.java
/trunk/0.5/stable/capability-bridge
/trunk/0.5/stable/capability-bridge/build.xml
/trunk/0.5/stable/capability-bridge/nbproject
/trunk/0.5/stable/capability-bridge/nbproject/nb.properties
/trunk/0.5/stable/capability-bridge/nbproject/private
/trunk/0.5/stable/capability-bridge/nbproject/private/private.xml
/trunk/0.5/stable/capability-bridge/nbproject/project.xml
/trunk/0.5/stable/capability-bridge/src
/trunk/0.5/stable/capability-bridge/src/classes
/trunk/0.5/stable/capability-bridge/src/classes/com
/trunk/0.5/stable/capability-bridge/src/classes/com/wonderbuilders
/trunk/0.5/stable/capability-bridge/src/classes/com/wonderbuilders/modules
/trunk/0.5/stable/capability-bridge/src/classes/com/wonderbuilders/modules/capabilitybridge
/trunk/0.5/stable/capability-bridge/src/classes/com/wonderbuilders/modules/capabilitybridge/client
/trunk/0.5/stable/capability-bridge/src/classes/com/wonderbuilders/modules/capabilitybridge/client/CapabilityBridge.java
/trunk/0.5/stable/whiteboard/src/classes/org/jdesktop/wonderland/modules/whiteboard/client/ColorChooserPanel.form
/trunk/0.5/stable/whiteboard/src/classes/org/jdesktop/wonderland/modules/whiteboard/client/ColorChooserPanel.java
/trunk/0.5/stable/whiteboard/src/classes/org/jdesktop/wonderland/modules/whiteboard/client/FontChooserPanel.form
/trunk/0.5/stable/whiteboard/src/classes/org/jdesktop/wonderland/modules/whiteboard/client/FontChooserPanel.java
/trunk/0.5/stable/whiteboard/src/classes/org/jdesktop/wonderland/modules/whiteboard/client/ImageFilter.java
/trunk/0.5/stable/whiteboard/src/classes/org/jdesktop/wonderland/modules/whiteboard/client/RemoveConfirmationPanel.form
/trunk/0.5/stable/whiteboard/src/classes/org/jdesktop/wonderland/modules/whiteboard/client/RemoveConfirmationPanel.java
/trunk/0.5/stable/whiteboard/src/classes/org/jdesktop/wonderland/modules/whiteboard/client/Utils.java
/trunk/0.5/stable/whiteboard/src/classes/org/jdesktop/wonderland/modules/whiteboard/client/resources/WhiteboardBackgroundImage32x32.png
/trunk/0.5/stable/whiteboard/src/classes/org/jdesktop/wonderland/modules/whiteboard/client/resources/WhiteboardBringToFront32x32.PNG
/trunk/0.5/stable/whiteboard/src/classes/org/jdesktop/wonderland/modules/whiteboard/client/resources/WhiteboardDrawEllipseFilled32x32.png
/trunk/0.5/stable/whiteboard/src/classes/org/jdesktop/wonderland/modules/whiteboard/client/resources/WhiteboardDrawFillRectangle32x32.png
/trunk/0.5/stable/whiteboard/src/classes/org/jdesktop/wonderland/modules/whiteboard/client/resources/WhiteboardFont32x32.png
/trunk/0.5/stable/whiteboard/src/classes/org/jdesktop/wonderland/modules/whiteboard/client/resources/WhiteboardMovableImage32x32.png
/trunk/0.5/stable/whiteboard/src/classes/org/jdesktop/wonderland/modules/whiteboard/client/resources/WhiteboardResize32x32.PNG
/trunk/0.5/stable/whiteboard/src/classes/org/jdesktop/wonderland/modules/whiteboard/client/resources/WhiteboardSendToBack32x32.png
/trunk/0.5/stable/whiteboard/src/classes/org/jdesktop/wonderland/modules/whiteboard/client/resources/white-background.png
/trunk/0.5/unstable/EZScript/src/classes/org/jdesktop/wonderland/modules/ezscript/client/animation/PlayFrameRange.java
/trunk/0.5/unstable/ImageFrame
/trunk/0.5/unstable/ImageFrame/art
/trunk/0.5/unstable/ImageFrame/build.xml
/trunk/0.5/unstable/ImageFrame/my.module.properties
/trunk/0.5/unstable/ImageFrame/nbproject
/trunk/0.5/unstable/ImageFrame/nbproject/nb.properties
/trunk/0.5/unstable/ImageFrame/nbproject/private
/trunk/0.5/unstable/ImageFrame/nbproject/private/private.xml
/trunk/0.5/unstable/ImageFrame/nbproject/project.xml
/trunk/0.5/unstable/ImageFrame/src
/trunk/0.5/unstable/ImageFrame/src/classes
/trunk/0.5/unstable/ImageFrame/src/classes/org
/trunk/0.5/unstable/ImageFrame/src/classes/org/jdesktop
/trunk/0.5/unstable/ImageFrame/src/classes/org/jdesktop/wonderland
/trunk/0.5/unstable/ImageFrame/src/classes/org/jdesktop/wonderland/modules
/trunk/0.5/unstable/ImageFrame/src/classes/org/jdesktop/wonderland/modules/imageframe
/trunk/0.5/unstable/ImageFrame/src/classes/org/jdesktop/wonderland/modules/imageframe/client
/trunk/0.5/unstable/ImageFrame/src/classes/org/jdesktop/wonderland/modules/imageframe/client/ChildChangeListener.java
/trunk/0.5/unstable/ImageFrame/src/classes/org/jdesktop/wonderland/modules/imageframe/client/DropTargetListener.java
/trunk/0.5/unstable/ImageFrame/src/classes/org/jdesktop/wonderland/modules/imageframe/client/ImageFrameCell.java
/trunk/0.5/unstable/ImageFrame/src/classes/org/jdesktop/wonderland/modules/imageframe/client/ImageFrameCellFactory.java
/trunk/0.5/unstable/ImageFrame/src/classes/org/jdesktop/wonderland/modules/imageframe/client/ImageFrameCellRenderer.java
/trunk/0.5/unstable/ImageFrame/src/classes/org/jdesktop/wonderland/modules/imageframe/client/ImageFramePropertySheet.form
/trunk/0.5/unstable/ImageFrame/src/classes/org/jdesktop/wonderland/modules/imageframe/client/ImageFramePropertySheet.java
/trunk/0.5/unstable/ImageFrame/src/classes/org/jdesktop/wonderland/modules/imageframe/client/PropertyMapChangeListener.java
/trunk/0.5/unstable/ImageFrame/src/classes/org/jdesktop/wonderland/modules/imageframe/client/RemoveImageMenuItemListener.java
/trunk/0.5/unstable/ImageFrame/src/classes/org/jdesktop/wonderland/modules/imageframe/client/resources
/trunk/0.5/unstable/ImageFrame/src/classes/org/jdesktop/wonderland/modules/imageframe/client/resources/FrameDropTarget.jpg
/trunk/0.5/unstable/ImageFrame/src/classes/org/jdesktop/wonderland/modules/imageframe/client/resources/ImageFrameIcon.jpg
/trunk/0.5/unstable/ImageFrame/src/classes/org/jdesktop/wonderland/modules/imageframe/client/resources/ImageFrameIcon1.jpg
/trunk/0.5/unstable/ImageFrame/src/classes/org/jdesktop/wonderland/modules/imageframe/common
/trunk/0.5/unstable/ImageFrame/src/classes/org/jdesktop/wonderland/modules/imageframe/common/ImageFrameClientState.java
/trunk/0.5/unstable/ImageFrame/src/classes/org/jdesktop/wonderland/modules/imageframe/common/ImageFrameConstants.java
/trunk/0.5/unstable/ImageFrame/src/classes/org/jdesktop/wonderland/modules/imageframe/common/ImageFrameProperties.java
/trunk/0.5/unstable/ImageFrame/src/classes/org/jdesktop/wonderland/modules/imageframe/common/ImageFrameServerState.java
/trunk/0.5/unstable/ImageFrame/src/classes/org/jdesktop/wonderland/modules/imageframe/server
/trunk/0.5/unstable/ImageFrame/src/classes/org/jdesktop/wonderland/modules/imageframe/server/ImageFrameCellMO.java
/trunk/0.5/unstable/Navigate-to
/trunk/0.5/unstable/Navigate-to/build.xml
/trunk/0.5/unstable/Navigate-to/my.module.properties
/trunk/0.5/unstable/Navigate-to/nbproject
/trunk/0.5/unstable/Navigate-to/nbproject/nb.properties
/trunk/0.5/unstable/Navigate-to/nbproject/private
/trunk/0.5/unstable/Navigate-to/nbproject/private/private.xml
/trunk/0.5/unstable/Navigate-to/nbproject/project.xml
/trunk/0.5/unstable/Navigate-to/src
/trunk/0.5/unstable/Navigate-to/src/classes
/trunk/0.5/unstable/Navigate-to/src/classes/org
/trunk/0.5/unstable/Navigate-to/src/classes/org/jdesktop
/trunk/0.5/unstable/Navigate-to/src/classes/org/jdesktop/wonderland
/trunk/0.5/unstable/Navigate-to/src/classes/org/jdesktop/wonderland/modules
/trunk/0.5/unstable/Navigate-to/src/classes/org/jdesktop/wonderland/modules/navigateto
/trunk/0.5/unstable/Navigate-to/src/classes/org/jdesktop/wonderland/modules/navigateto/client
/trunk/0.5/unstable/Navigate-to/src/classes/org/jdesktop/wonderland/modules/navigateto/client/AltKeyListener.java
/trunk/0.5/unstable/Navigate-to/src/classes/org/jdesktop/wonderland/modules/navigateto/client/BestViewCam.java
/trunk/0.5/unstable/Navigate-to/src/classes/org/jdesktop/wonderland/modules/navigateto/client/BestViewUtils.java
/trunk/0.5/unstable/Navigate-to/src/classes/org/jdesktop/wonderland/modules/navigateto/client/Bundle.properties
/trunk/0.5/unstable/Navigate-to/src/classes/org/jdesktop/wonderland/modules/navigateto/client/NavigateToComponent.java
/trunk/0.5/unstable/Navigate-to/src/classes/org/jdesktop/wonderland/modules/navigateto/client/NavigateToComponentFactory.java
/trunk/0.5/unstable/Navigate-to/src/classes/org/jdesktop/wonderland/modules/navigateto/client/NavigateToComponentProperties.form
/trunk/0.5/unstable/Navigate-to/src/classes/org/jdesktop/wonderland/modules/navigateto/client/NavigateToComponentProperties.java
/trunk/0.5/unstable/Navigate-to/src/classes/org/jdesktop/wonderland/modules/navigateto/client/NewGoTo.java
/trunk/0.5/unstable/Navigate-to/src/classes/org/jdesktop/wonderland/modules/navigateto/client/TurnTo.java
/trunk/0.5/unstable/Navigate-to/src/classes/org/jdesktop/wonderland/modules/navigateto/common
/trunk/0.5/unstable/Navigate-to/src/classes/org/jdesktop/wonderland/modules/navigateto/common/NavigateToClientState.java
/trunk/0.5/unstable/Navigate-to/src/classes/org/jdesktop/wonderland/modules/navigateto/common/NavigateToServerState.java
/trunk/0.5/unstable/Navigate-to/src/classes/org/jdesktop/wonderland/modules/navigateto/common/NavigationChangeMessage.java
/trunk/0.5/unstable/Navigate-to/src/classes/org/jdesktop/wonderland/modules/navigateto/server
/trunk/0.5/unstable/Navigate-to/src/classes/org/jdesktop/wonderland/modules/navigateto/server/NavigateToComponentMO.java
/trunk/0.5/unstable/animation
/trunk/0.5/unstable/animation/build.xml
/trunk/0.5/unstable/animation/my.module.properties
/trunk/0.5/unstable/animation/nbproject
/trunk/0.5/unstable/animation/nbproject/nb.properties
/trunk/0.5/unstable/animation/nbproject/private
/trunk/0.5/unstable/animation/nbproject/private/private.xml
/trunk/0.5/unstable/animation/nbproject/project.xml
/trunk/0.5/unstable/animation/src
/trunk/0.5/unstable/animation/src/classes
/trunk/0.5/unstable/animation/src/classes/com
/trunk/0.5/unstable/animation/src/classes/com/wonderbuilders
/trunk/0.5/unstable/animation/src/classes/com/wonderbuilders/modules
/trunk/0.5/unstable/animation/src/classes/com/wonderbuilders/modules/animation
/trunk/0.5/unstable/animation/src/classes/com/wonderbuilders/modules/animation/client
/trunk/0.5/unstable/animation/src/classes/com/wonderbuilders/modules/animation/client/AdvancedContainerPanel.java
/trunk/0.5/unstable/animation/src/classes/com/wonderbuilders/modules/animation/client/AnimationComponent.java
/trunk/0.5/unstable/animation/src/classes/com/wonderbuilders/modules/animation/client/AnimationComponentFactory.java
/trunk/0.5/unstable/animation/src/classes/com/wonderbuilders/modules/animation/client/AnimationComponentProperties.form
/trunk/0.5/unstable/animation/src/classes/com/wonderbuilders/modules/animation/client/AnimationComponentProperties.java
/trunk/0.5/unstable/animation/src/classes/com/wonderbuilders/modules/animation/client/EZScriptAnimationPanel.form
/trunk/0.5/unstable/animation/src/classes/com/wonderbuilders/modules/animation/client/EZScriptAnimationPanel.java
/trunk/0.5/unstable/animation/src/classes/com/wonderbuilders/modules/animation/client/FrameRangePlayer.java
/trunk/0.5/unstable/animation/src/classes/com/wonderbuilders/modules/animation/client/ManualAnimationPanel.form
/trunk/0.5/unstable/animation/src/classes/com/wonderbuilders/modules/animation/client/ManualAnimationPanel.java
/trunk/0.5/unstable/animation/src/classes/com/wonderbuilders/modules/animation/client/MouseEventListener.java
/trunk/0.5/unstable/animation/src/classes/com/wonderbuilders/modules/animation/client/resources
/trunk/0.5/unstable/animation/src/classes/com/wonderbuilders/modules/animation/client/resources/strings.properties
/trunk/0.5/unstable/animation/src/classes/com/wonderbuilders/modules/animation/common
/trunk/0.5/unstable/animation/src/classes/com/wonderbuilders/modules/animation/common/Animation.java
/trunk/0.5/unstable/animation/src/classes/com/wonderbuilders/modules/animation/common/AnimationComponentClientState.java
/trunk/0.5/unstable/animation/src/classes/com/wonderbuilders/modules/animation/common/AnimationComponentMessage.java
/trunk/0.5/unstable/animation/src/classes/com/wonderbuilders/modules/animation/common/AnimationComponentServerState.java
/trunk/0.5/unstable/animation/src/classes/com/wonderbuilders/modules/animation/common/AnimationConstants.java
/trunk/0.5/unstable/animation/src/classes/com/wonderbuilders/modules/animation/common/EZScriptAnimationControl.java
/trunk/0.5/unstable/animation/src/classes/com/wonderbuilders/modules/animation/common/FrameRange.java
/trunk/0.5/unstable/animation/src/classes/com/wonderbuilders/modules/animation/server
/trunk/0.5/unstable/animation/src/classes/com/wonderbuilders/modules/animation/server/AnimationComponentMO.java
/trunk/0.5/unstable/trigger-gesture
/trunk/0.5/unstable/trigger-gesture/build.xml
/trunk/0.5/unstable/trigger-gesture/my.module.properties
/trunk/0.5/unstable/trigger-gesture/nbproject
/trunk/0.5/unstable/trigger-gesture/nbproject/nb.properties
/trunk/0.5/unstable/trigger-gesture/nbproject/private
/trunk/0.5/unstable/trigger-gesture/nbproject/private/private.xml
/trunk/0.5/unstable/trigger-gesture/nbproject/project.xml
/trunk/0.5/unstable/trigger-gesture/src
/trunk/0.5/unstable/trigger-gesture/src/classes
/trunk/0.5/unstable/trigger-gesture/src/classes/com
/trunk/0.5/unstable/trigger-gesture/src/classes/com/wonderbuilders
/trunk/0.5/unstable/trigger-gesture/src/classes/com/wonderbuilders/modules
/trunk/0.5/unstable/trigger-gesture/src/classes/com/wonderbuilders/modules/triggergesture
/trunk/0.5/unstable/trigger-gesture/src/classes/com/wonderbuilders/modules/triggergesture/client
/trunk/0.5/unstable/trigger-gesture/src/classes/com/wonderbuilders/modules/triggergesture/client/BoundsViewerEntity.java
/trunk/0.5/unstable/trigger-gesture/src/classes/com/wonderbuilders/modules/triggergesture/client/TriggerGestureComponent.java
/trunk/0.5/unstable/trigger-gesture/src/classes/com/wonderbuilders/modules/triggergesture/client/TriggerGestureComponentFactory.java
/trunk/0.5/unstable/trigger-gesture/src/classes/com/wonderbuilders/modules/triggergesture/client/TriggerGestureComponentProperties.form
/trunk/0.5/unstable/trigger-gesture/src/classes/com/wonderbuilders/modules/triggergesture/client/TriggerGestureComponentProperties.java
/trunk/0.5/unstable/trigger-gesture/src/classes/com/wonderbuilders/modules/triggergesture/client/TriggerGestureContextMenuListener.java
/trunk/0.5/unstable/trigger-gesture/src/classes/com/wonderbuilders/modules/triggergesture/client/TriggerGestureMouseListener.java
/trunk/0.5/unstable/trigger-gesture/src/classes/com/wonderbuilders/modules/triggergesture/client/TriggerGestureProximityListener.java
/trunk/0.5/unstable/trigger-gesture/src/classes/com/wonderbuilders/modules/triggergesture/client/resources
/trunk/0.5/unstable/trigger-gesture/src/classes/com/wonderbuilders/modules/triggergesture/client/resources/Bundle.properties
/trunk/0.5/unstable/trigger-gesture/src/classes/com/wonderbuilders/modules/triggergesture/common
/trunk/0.5/unstable/trigger-gesture/src/classes/com/wonderbuilders/modules/triggergesture/common/TriggerGestureComponentClientState.java
/trunk/0.5/unstable/trigger-gesture/src/classes/com/wonderbuilders/modules/triggergesture/common/TriggerGestureComponentServerState.java
/trunk/0.5/unstable/trigger-gesture/src/classes/com/wonderbuilders/modules/triggergesture/common/TriggerGestureMessage.java
/trunk/0.5/unstable/trigger-gesture/src/classes/com/wonderbuilders/modules/triggergesture/server
/trunk/0.5/unstable/trigger-gesture/src/classes/com/wonderbuilders/modules/triggergesture/server/TriggerGestureComponentMO.java
Deleted:
/trunk/0.5/stable/whiteboard/src/classes/org/jdesktop/wonderland/modules/whiteboard/client/resources/WhiteboardSync32x32.png
/trunk/0.5/stable/whiteboard/src/classes/org/jdesktop/wonderland/modules/whiteboard/client/resources/WhiteboardToggleHUD32x32.png
/trunk/0.5/stable/whiteboard/src/classes/org/jdesktop/wonderland/modules/whiteboard/client/resources/WhiteboardUndock32x32.png
/trunk/0.5/stable/whiteboard/src/classes/org/jdesktop/wonderland/modules/whiteboard/client/resources/WhiteboardUnsync32x32.png
/trunk/0.5/stable/whiteboard/src/classes/org/jdesktop/wonderland/modules/whiteboard/client/resources/black.png
/trunk/0.5/stable/whiteboard/src/classes/org/jdesktop/wonderland/modules/whiteboard/client/resources/blue.png
/trunk/0.5/stable/whiteboard/src/classes/org/jdesktop/wonderland/modules/whiteboard/client/resources/green.png
/trunk/0.5/stable/whiteboard/src/classes/org/jdesktop/wonderland/modules/whiteboard/client/resources/red.png
/trunk/0.5/stable/whiteboard/src/classes/org/jdesktop/wonderland/modules/whiteboard/client/resources/white.png
/trunk/0.5/unstable/wonderland-iSocial-EZClick-module/src/classes/org/jdesktop/wonderland/modules/sample
Modified:
/trunk/0.5/stable/best-view/build.xml
/trunk/0.5/stable/best-view/my.module.properties
/trunk/0.5/stable/best-view/nbproject/project.xml
/trunk/0.5/stable/best-view/src/classes/org/jdesktop/wonderland/modules/bestview/client/BestViewComponent.java
/trunk/0.5/stable/best-view/src/classes/org/jdesktop/wonderland/modules/bestview/client/BestViewComponentProperties.form
/trunk/0.5/stable/best-view/src/classes/org/jdesktop/wonderland/modules/bestview/client/BestViewComponentProperties.java
/trunk/0.5/stable/best-view/src/classes/org/jdesktop/wonderland/modules/bestview/client/BestViewUtils.java
/trunk/0.5/stable/best-view/src/classes/org/jdesktop/wonderland/modules/bestview/client/Bundle.properties
/trunk/0.5/stable/best-view/src/classes/org/jdesktop/wonderland/modules/bestview/common/BestViewClientState.java
/trunk/0.5/stable/best-view/src/classes/org/jdesktop/wonderland/modules/bestview/common/BestViewServerState.java
/trunk/0.5/stable/best-view/src/classes/org/jdesktop/wonderland/modules/bestview/server/BestViewComponentMO.java
/trunk/0.5/stable/build.xml
/trunk/0.5/stable/clickablelink/nbproject/nb.properties
/trunk/0.5/stable/microphone/nbproject/nb.properties
/trunk/0.5/stable/movierecorder-module/nbproject/nb.properties
/trunk/0.5/stable/telepointer/nbproject/nb.properties
/trunk/0.5/stable/webcamviewer/nbproject/nb.properties
/trunk/0.5/stable/whiteboard/build.xml
/trunk/0.5/stable/whiteboard/my.module.properties
/trunk/0.5/stable/whiteboard/nbproject/project.xml
/trunk/0.5/stable/whiteboard/src/classes/org/jdesktop/wonderland/modules/whiteboard/client/WhiteboardApp.java
/trunk/0.5/stable/whiteboard/src/classes/org/jdesktop/wonderland/modules/whiteboard/client/WhiteboardCellMenuListener.java
/trunk/0.5/stable/whiteboard/src/classes/org/jdesktop/wonderland/modules/whiteboard/client/WhiteboardControlPanel.form
/trunk/0.5/stable/whiteboard/src/classes/org/jdesktop/wonderland/modules/whiteboard/client/WhiteboardControlPanel.java
/trunk/0.5/stable/whiteboard/src/classes/org/jdesktop/wonderland/modules/whiteboard/client/WhiteboardDocument.java
/trunk/0.5/stable/whiteboard/src/classes/org/jdesktop/wonderland/modules/whiteboard/client/WhiteboardKeyListener.java
/trunk/0.5/stable/whiteboard/src/classes/org/jdesktop/wonderland/modules/whiteboard/client/WhiteboardMouseListener.java
/trunk/0.5/stable/whiteboard/src/classes/org/jdesktop/wonderland/modules/whiteboard/client/WhiteboardSelection.java
/trunk/0.5/stable/whiteboard/src/classes/org/jdesktop/wonderland/modules/whiteboard/client/WhiteboardToolManager.java
/trunk/0.5/stable/whiteboard/src/classes/org/jdesktop/wonderland/modules/whiteboard/client/WhiteboardUpdateManagerListener.java
/trunk/0.5/stable/whiteboard/src/classes/org/jdesktop/wonderland/modules/whiteboard/client/WhiteboardWindow.java
/trunk/0.5/stable/whiteboard/src/classes/org/jdesktop/wonderland/modules/whiteboard/client/cell/WhiteboardCell.java
/trunk/0.5/stable/whiteboard/src/classes/org/jdesktop/wonderland/modules/whiteboard/common/WhiteboardUtils.java
/trunk/0.5/stable/whiteboard/src/classes/org/jdesktop/wonderland/modules/whiteboard/common/cell/WhiteboardCellMessage.java
/trunk/0.5/stable/whiteboard/src/classes/org/jdesktop/wonderland/modules/whiteboard/server/cell/WhiteboardCellMO.java
/trunk/0.5/unstable/EZScript/build.xml
/trunk/0.5/unstable/EZScript/nbproject/nb.properties
/trunk/0.5/unstable/EZScript/nbproject/private/private.xml
/trunk/0.5/unstable/EZScript/nbproject/project.xml
/trunk/0.5/unstable/EZScript/src/classes/org/jdesktop/wonderland/modules/ezscript/client/EZScriptComponent.java
/trunk/0.5/unstable/EZScript/src/classes/org/jdesktop/wonderland/modules/ezscript/client/ScriptedObjectDataSource.java
/trunk/0.5/unstable/EZScript/src/classes/org/jdesktop/wonderland/modules/ezscript/client/loaders/OptimizedLoader.java
/trunk/0.5/unstable/EZScript/src/classes/org/jdesktop/wonderland/modules/ezscript/client/loaders/SerialLoader.java
/trunk/0.5/unstable/EZScript/src/classes/org/jdesktop/wonderland/modules/ezscript/client/methods/AnimateMoveMethod.java
/trunk/0.5/unstable/wonderland-iSocial-EZClick-module/build.xml
/trunk/0.5/unstable/wonderland-iSocial-EZClick-module/my.module.properties
/trunk/0.5/unstable/wonderland-iSocial-EZClick-module/nbproject/nb.properties
/trunk/0.5/unstable/wonderland-iSocial-EZClick-module/nbproject/private/private.xml
/trunk/0.5/unstable/wonderland-iSocial-EZClick-module/nbproject/project.xml
/trunk/0.5/unstable/wonderland-iSocial-EZClick-module/src/classes/org/jdesktop/wonderland/modules/EZClick/client/EZClickComponent.java
/trunk/0.5/unstable/wonderland-iSocial-EZClick-module/src/classes/org/jdesktop/wonderland/modules/EZClick/server/EZClickComponentMO.java
=======================================
--- /dev/null
+++
/trunk/0.5/stable/best-view/src/classes/org/jdesktop/wonderland/modules/bestview/client/BestViewCam.java
Tue Sep 23 06:47:19 2014 UTC
@@ -0,0 +1,179 @@
+/**
+ * Copyright (c) 2014, WonderBuilders, Inc., All Rights Reserved
+ */
+package org.jdesktop.wonderland.modules.bestview.client;
+
+import com.jme.math.Quaternion;
+import com.jme.math.Vector3f;
+import com.jme.renderer.ColorRGBA;
+import com.jme.scene.CameraNode;
+import com.wonderbuilders.modules.capabilitybridge.client.CapabilityBridge;
+import java.awt.event.MouseWheelEvent;
+import java.util.List;
+import java.util.logging.Logger;
+import org.jdesktop.mtgame.WorldManager;
+import org.jdesktop.wonderland.client.cell.Cell;
+import org.jdesktop.wonderland.client.cell.CellComponent;
+import org.jdesktop.wonderland.client.cell.utils.CellPlacementUtils;
+import org.jdesktop.wonderland.client.input.Event;
+import org.jdesktop.wonderland.client.input.EventClassFocusListener;
+import org.jdesktop.wonderland.client.input.EventClassListener;
+import org.jdesktop.wonderland.client.jme.CameraController;
+import org.jdesktop.wonderland.client.jme.ClientContextJME;
+import org.jdesktop.wonderland.client.jme.input.MouseEvent3D;
+import org.jdesktop.wonderland.client.jme.input.MouseWheelEvent3D;
+import org.jdesktop.wonderland.common.cell.CellTransform;
+
+/**
+ * Best view camera
+ *
+ * @author Abhishek Upadhyay
+ */
+public class BestViewCam extends EventClassFocusListener implements
CameraController {
+
+ private final WorldManager wm;
+ private final CellTransform start;
+ public ColorRGBA GLOW_COLOR = new ColorRGBA(ColorRGBA.yellow);
+ private final CellTransform target;
+ private final float distance;
+ private final CameraController prevCam;
+ private long startTime;
+ private final long moveTime;
+ private boolean doneMoving = false;
+ private boolean dirty = false;
+ private CellTransform transform;
+ private CameraNode cameraNode;
+ int i = 0;
+ private float zoom = 0;
+ boolean bestView = false;
+ private Event genEvent;
+ private Cell cell;
+
+ public BestViewCam(CellTransform start, CellTransform target,
+ float distance, long moveTime, CameraController prevCam,
+ Event event, Cell cell) {
+ this.start = start;
+ this.target = target;
+ this.distance = distance;
+ this.moveTime = moveTime;
+ this.prevCam = prevCam;
+ this.wm = WorldManager.getDefaultWorldManager();
+ this.genEvent = event;
+ this.cell = cell;
+ }
+
+ public void setEnabled(boolean enabled, CameraNode cameraNode) {
+ if (enabled) {
+ setCameraNode(cameraNode);
+ setStartTime(System.currentTimeMillis());
+
ClientContextJME.getInputManager().addGlobalEventListener(this);
+ } else {
+ setCameraNode(null);
+
ClientContextJME.getInputManager().removeGlobalEventListener(this);
+ }
+ }
+
+ public void compute() {
+
+ if (doneMoving) {
+ //enable listeners
+ if(genEvent!=null) {
+ for (CellComponent comp : cell.getComponents()) {
+ if (comp instanceof CapabilityBridge && !(comp
instanceof BestViewComponent)) {
+ CapabilityBridge bridge = (CapabilityBridge) comp;
+ EventClassListener listener =
bridge.getMouseEventListener();
+ if(listener!=null) {
+ listener.setEnabled(true);
+ listener.commitEvent(genEvent);
+ }
+ }
+ }
+ if(cell.getParent()!=null) {
+ for (CellComponent comp :
cell.getParent().getComponents()) {
+ if (comp instanceof CapabilityBridge && !(comp
instanceof BestViewComponent)) {
+ CapabilityBridge bridge = (CapabilityBridge)
comp;
+ EventClassListener listener =
bridge.getMouseEventListener();
+ if(listener!=null) {
+ listener.setEnabled(true);
+ listener.commitEvent(genEvent);
+ }
+ }
+ }
+ }
+ }
+ genEvent = null;
+ return;
+ }
+ // get the current time and location
+ long relativeTime = System.currentTimeMillis() - getStartTime();
+ float amt = (float) relativeTime / (float) moveTime;
+ if (amt >= 1.0) {
+ amt = 1.0f;
+ doneMoving = true;
+ }
+ Quaternion t = target.getRotation(null);
+ Vector3f distVec = CellPlacementUtils.getLookDirection(t, null);
+ distVec.multLocal(distance);
+ Vector3f origin = target.getTranslation(null);
+ origin.subtractLocal(distVec);
+ Vector3f st = start.getTranslation(null);
+ st.interpolate(origin, amt);
+ Quaternion sq = start.getRotation(null);
+ sq.slerp(t, amt);
+ transform = new CellTransform(sq, st);
+ dirty = true;
+ }
+
+ @Override
+ public Class[] eventClassesToConsume() {
+ return new Class[]{MouseWheelEvent3D.class};
+ }
+
+ @Override
+ public void commitEvent(Event event) {
+ MouseWheelEvent me = (MouseWheelEvent) ((MouseEvent3D)
event).getAwtEvent();
+ int clicks = me.getWheelRotation();
+ zoom -= clicks * 0.2f;
+ }
+
+ public void commit() {
+
+ if (dirty && transform != null) {
+ CameraNode camera = getCameraNode();
+ // apply zoom
+ Vector3f loc = transform.getTranslation(null);
+ Quaternion look = transform.getRotation(null);
+ Vector3f z = look.mult(new Vector3f(0, 0, zoom));
+ loc.addLocal(z);
+ camera.setLocalRotation(look);
+ camera.setLocalTranslation(loc);
+ wm.addToUpdateList(camera);
+ }
+ }
+
+ public void viewMoved(CellTransform worldTransform) {
+ if (doneMoving) {
+ ClientContextJME.getViewManager().setCameraController(prevCam);
+ }
+ }
+
+ public CameraController getPrevCam() {
+ return prevCam;
+ }
+
+ private synchronized void setCameraNode(CameraNode cameraNode) {
+ this.cameraNode = cameraNode;
+ }
+
+ private synchronized CameraNode getCameraNode() {
+ return cameraNode;
+ }
+
+ private synchronized void setStartTime(long startTime) {
+ this.startTime = startTime;
+ }
+
+ private synchronized long getStartTime() {
+ return startTime;
+ }
+}
=======================================
--- /dev/null
+++
/trunk/0.5/stable/best-view/src/classes/org/jdesktop/wonderland/modules/bestview/common/BestViewChangeMessage.java
Tue Sep 23 06:47:19 2014 UTC
@@ -0,0 +1,19 @@
+/**
+ * Copyright (c) 2014, WonderBuilders, Inc., All Rights Reserved
+ */
+
+package org.jdesktop.wonderland.modules.bestview.common;
+
+import org.jdesktop.wonderland.common.cell.CellID;
+import
org.jdesktop.wonderland.common.cell.messages.CellServerComponentMessage;
+
+/**
+ *
+ * @author Abhishek Upadhyay
+ */
+public class BestViewChangeMessage extends CellServerComponentMessage {
+
+ public BestViewChangeMessage(CellID cellID, BestViewServerState ntsc) {
+ super(cellID, ntsc);
+ }
+}
=======================================
--- /dev/null
+++ /trunk/0.5/stable/capability-bridge/build.xml Tue Sep 23 06:47:19 2014
UTC
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project name="capability-bridge" default="dist" basedir=".">
+ <!-- current directory needed in all scripts -->
+ <dirname property="current.dir" file="${ant.file.capability-bridge}"/>
+ <property name="modules.dir"
location="${current.dir}/../../../wonderland/modules"/>
+
+ <property name="module.src"
value="com/wonderbuilders/modules/capabilitybridge"/>
+ <property name="module.packagename"
value="com.wonderbuilders.modules.capabilitybridge"/>
+ <property name="module.jarname" value="capability-bridge"/>
+
+ <!-- import common build file -->
+ <import
file="${modules.dir}/build-tools/build-scripts/module-build.xml"/>
+
+ <target name="build" depends="-module-init, -module-compile-common,
+ -module-compile-server,
+ -module-compile-client"/>
+
+ <target name="dist" depends="build">
+ <mkdir dir="${module.dist.dir}"/>
+
+ <module name="capability-bridge" majorVersion="1" minorVersion="0"
+ jarfile="${module.dist.dir}/${module.jarname}.jar"
description="Bridge between two components"
+ builddir="${build.dir}">
+
+ <client>
+ <clientjar name="capability-bridge-client"
basedir="${build.classes.dir}">
+ <include name="${module.src}/client/**"/>
+ <include name="${module.src}/common/**"/>
+ </clientjar>
+ </client>
+
+ </module>
+ </target>
+
+ <target name="deploy" depends="dist, -module-deploy"/>
+ <target name="clean" depends="-module-clean"/>
+</project>
=======================================
--- /dev/null
+++ /trunk/0.5/stable/capability-bridge/nbproject/nb.properties Tue Sep 23
06:47:19 2014 UTC
@@ -0,0 +1,5 @@
+
+wonderland.ostype=win64
+wonderland.arch=amd64
+wonderland.system.type=windows-amd64
+
=======================================
--- /dev/null
+++ /trunk/0.5/stable/capability-bridge/nbproject/private/private.xml Tue
Sep 23 06:47:19 2014 UTC
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project-private xmlns="
http://www.netbeans.org/ns/project-private/1">
+ <editor-bookmarks
xmlns="
http://www.netbeans.org/ns/editor-bookmarks/2" lastBookmarkId="0"/>
+ <open-files xmlns="
http://www.netbeans.org/ns/projectui-open-files/2">
+ <group/>
+ </open-files>
+</project-private>
=======================================
--- /dev/null
+++ /trunk/0.5/stable/capability-bridge/nbproject/project.xml Tue Sep 23
06:47:19 2014 UTC
@@ -0,0 +1,70 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="
http://www.netbeans.org/ns/project/1">
+ <type>org.netbeans.modules.ant.freeform</type>
+ <configuration>
+ <general-data
xmlns="
http://www.netbeans.org/ns/freeform-project/1">
+ <name>capability-bridge</name>
+ </general-data>
+ <general-data
xmlns="
http://www.netbeans.org/ns/freeform-project/2">
+ <!-- Do not use Project Properties customizer when editing
this file manually. -->
+ <name>capability-bridge</name>
+ <properties/>
+ <folders>
+ <source-folder>
+ <label>capability-bridge</label>
+ <location>.</location>
+ <encoding>UTF-8</encoding>
+ </source-folder>
+ <source-folder>
+ <label>src/classes</label>
+ <type>java</type>
+ <location>src/classes</location>
+ <encoding>UTF-8</encoding>
+ </source-folder>
+ </folders>
+ <ide-actions>
+ <action name="build">
+ <target>package</target>
+ </action>
+ <action name="clean">
+ <target>clean</target>
+ </action>
+ <action name="rebuild">
+ <target>clean</target>
+ <target>package</target>
+ </action>
+ </ide-actions>
+ <view>
+ <items>
+ <source-folder style="packages">
+ <label>src/classes</label>
+ <location>src/classes</location>
+ </source-folder>
+ <source-file>
+ <location>build.xml</location>
+ </source-file>
+ <source-file>
+ <location>my.module.properties</location>
+ </source-file>
+ </items>
+ <context-menu>
+ <ide-action name="build"/>
+ <ide-action name="rebuild"/>
+ <ide-action name="clean"/>
+ <action>
+ <label>Deploy Module</label>
+ <target>deploy</target>
+ </action>
+ </context-menu>
+ </view>
+ <subprojects/>
+ </general-data>
+ <java-data
xmlns="
http://www.netbeans.org/ns/freeform-project-java/1">
+ <compilation-unit>
+ <package-root>src/classes</package-root>
+ <classpath
mode="compile">../../../wonderland/core/build/lib/wonderland-client.jar;../../../wonderland/core/build/lib/wonderland-common.jar</classpath>
+ <source-level>1.5</source-level>
+ </compilation-unit>
+ </java-data>
+ </configuration>
+</project>
=======================================
--- /dev/null
+++
/trunk/0.5/stable/capability-bridge/src/classes/com/wonderbuilders/modules/capabilitybridge/client/CapabilityBridge.java
Tue Sep 23 06:47:19 2014 UTC
@@ -0,0 +1,28 @@
+/**
+ * Copyright (c) 2014, WonderBuilders, Inc., All Rights Reserved
+ */
+
+package com.wonderbuilders.modules.capabilitybridge.client;
+
+import org.jdesktop.wonderland.client.input.EventClassListener;
+
+/**
+ *
+ * When we need to call a method of a component from different component.
+ * we can use this interface to remove tightly coupled relation between
those
+ * two components
+ *
+ * Here we need to call getMouseEventListener() method from certain
components.
+ * You can also add more methods here.
+ * So we need to implement this interface for the component which
+ * has getMouseEventListener() method.
+ *
+ * This will remove the dependency between modules.
+ *
+ * @author Abhishek Upadhyay
+ */
+public interface CapabilityBridge {
+
+ public EventClassListener getMouseEventListener();
+
+}
=======================================
--- /dev/null
+++
/trunk/0.5/stable/whiteboard/src/classes/org/jdesktop/wonderland/modules/whiteboard/client/ColorChooserPanel.form
Tue Sep 23 06:47:19 2014 UTC
@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<Form version="1.3" maxVersion="1.9"
type="org.netbeans.modules.form.forminfo.JPanelFormInfo">
+ <AuxValues>
+ <AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer"
value="0"/>
+ <AuxValue name="FormSettings_autoSetComponentName"
type="java.lang.Boolean" value="false"/>
+ <AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean"
value="true"/>
+ <AuxValue name="FormSettings_generateMnemonicsCode"
type="java.lang.Boolean" value="false"/>
+ <AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean"
value="false"/>
+ <AuxValue name="FormSettings_layoutCodeTarget"
type="java.lang.Integer" value="1"/>
+ <AuxValue name="FormSettings_listenerGenerationStyle"
type="java.lang.Integer" value="0"/>
+ <AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean"
value="false"/>
+ <AuxValue name="FormSettings_variablesModifier"
type="java.lang.Integer" value="2"/>
+ </AuxValues>
+
+ <Layout>
+ <DimensionLayout dim="0">
+ <Group type="103" groupAlignment="0" attributes="0">
+ <Group type="102" alignment="0" attributes="0">
+ <EmptySpace max="-2" attributes="0"/>
+ <Component id="colorChooser" min="-2" pref="601" max="-2"
attributes="0"/>
+ <EmptySpace max="32767" attributes="0"/>
+ </Group>
+ <Group type="102" alignment="1" attributes="0">
+ <EmptySpace max="32767" attributes="0"/>
+ <Component id="okButton" min="-2" max="-2" attributes="0"/>
+ <EmptySpace max="-2" attributes="0"/>
+ </Group>
+ </Group>
+ </DimensionLayout>
+ <DimensionLayout dim="1">
+ <Group type="103" groupAlignment="0" attributes="0">
+ <Group type="102" alignment="0" attributes="0">
+ <EmptySpace max="-2" attributes="0"/>
+ <Component id="colorChooser" min="-2" pref="316" max="-2"
attributes="0"/>
+ <EmptySpace max="32767" attributes="0"/>
+ <Component id="okButton" min="-2" max="-2" attributes="0"/>
+ <EmptySpace max="-2" attributes="0"/>
+ </Group>
+ </Group>
+ </DimensionLayout>
+ </Layout>
+ <SubComponents>
+ <Component class="javax.swing.JColorChooser" name="colorChooser">
+ </Component>
+ <Component class="javax.swing.JButton" name="okButton">
+ <Properties>
+ <Property name="text" type="java.lang.String" value="Ok"/>
+ </Properties>
+ </Component>
+ </SubComponents>
+</Form>
=======================================
--- /dev/null
+++
/trunk/0.5/stable/whiteboard/src/classes/org/jdesktop/wonderland/modules/whiteboard/client/ColorChooserPanel.java
Tue Sep 23 06:47:19 2014 UTC
@@ -0,0 +1,82 @@
+/**
+ * Copyright (c) 2014, WonderBuilders, Inc., All Rights Reserved
+ */
+
+package org.jdesktop.wonderland.modules.whiteboard.client;
+
+import java.awt.Color;
+import javax.swing.JButton;
+import javax.swing.JColorChooser;
+
+/**
+ * Color chooser panel for the whiteboard
+ *
+ * @author Abhishek Upadhyay
+ */
+public class ColorChooserPanel extends javax.swing.JPanel {
+
+ /**
+ * Creates new form ColorChooserPanel
+ */
+ public ColorChooserPanel(String color) {
+ initComponents();
+ colorChooser.setColor(Color.decode(color));
+ }
+
+ public JColorChooser getColorChooser() {
+ return colorChooser;
+ }
+
+ public JButton getOkButton() {
+ return okButton;
+ }
+
+ public String getSelectedColor() {
+ String colorS = String.format("#%02x%02x%02x",
colorChooser.getColor().getRed(), colorChooser.getColor().getGreen(),
colorChooser.getColor().getBlue());
+ return colorS;
+ }
+
+ /**
+ * This method is called from within the constructor to initialize the
form.
+ * WARNING: Do NOT modify this code. The content of this method is
always
+ * regenerated by the Form Editor.
+ */
+ @SuppressWarnings("unchecked")
+ // <editor-fold defaultstate="collapsed" desc="Generated
Code">//GEN-BEGIN:initComponents
+ private void initComponents() {
+
+ colorChooser = new javax.swing.JColorChooser();
+ okButton = new javax.swing.JButton();
+
+ okButton.setText("Ok");
+
+ javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
+ this.setLayout(layout);
+ layout.setHorizontalGroup(
+
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(layout.createSequentialGroup()
+ .addContainerGap()
+ .addComponent(colorChooser,
javax.swing.GroupLayout.PREFERRED_SIZE, 601,
javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE))
+ .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
layout.createSequentialGroup()
+ .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)
+ .addComponent(okButton)
+ .addContainerGap())
+ );
+ layout.setVerticalGroup(
+
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(layout.createSequentialGroup()
+ .addContainerGap()
+ .addComponent(colorChooser,
javax.swing.GroupLayout.PREFERRED_SIZE, 316,
javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)
+ .addComponent(okButton)
+ .addContainerGap())
+ );
+ }// </editor-fold>//GEN-END:initComponents
+
+
+ // Variables declaration - do not modify//GEN-BEGIN:variables
+ private javax.swing.JColorChooser colorChooser;
+ private javax.swing.JButton okButton;
+ // End of variables declaration//GEN-END:variables
+}
=======================================
--- /dev/null
+++
/trunk/0.5/stable/whiteboard/src/classes/org/jdesktop/wonderland/modules/whiteboard/client/FontChooserPanel.form
Tue Sep 23 06:47:19 2014 UTC
@@ -0,0 +1,198 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<Form version="1.3" maxVersion="1.8"
type="org.netbeans.modules.form.forminfo.JPanelFormInfo">
+ <AuxValues>
+ <AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer"
value="0"/>
+ <AuxValue name="FormSettings_autoSetComponentName"
type="java.lang.Boolean" value="false"/>
+ <AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean"
value="true"/>
+ <AuxValue name="FormSettings_generateMnemonicsCode"
type="java.lang.Boolean" value="false"/>
+ <AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean"
value="false"/>
+ <AuxValue name="FormSettings_layoutCodeTarget"
type="java.lang.Integer" value="1"/>
+ <AuxValue name="FormSettings_listenerGenerationStyle"
type="java.lang.Integer" value="0"/>
+ <AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean"
value="false"/>
+ <AuxValue name="FormSettings_variablesModifier"
type="java.lang.Integer" value="2"/>
+ </AuxValues>
+
+ <Layout>
+ <DimensionLayout dim="0">
+ <Group type="103" groupAlignment="0" attributes="0">
+ <Group type="102" attributes="0">
+ <EmptySpace max="32767" attributes="0"/>
+ <Component id="okButton" min="-2" max="-2" attributes="0"/>
+ <EmptySpace min="-2" max="-2" attributes="0"/>
+ <Component id="cancelButton" min="-2" max="-2"
attributes="0"/>
+ <EmptySpace max="-2" attributes="0"/>
+ </Group>
+ <Component id="mainPanel" alignment="0" max="32767"
attributes="0"/>
+ </Group>
+ </DimensionLayout>
+ <DimensionLayout dim="1">
+ <Group type="103" groupAlignment="0" attributes="0">
+ <Group type="102" alignment="0" attributes="0">
+ <EmptySpace min="0" pref="0" max="-2" attributes="0"/>
+ <Component id="mainPanel" max="32767" attributes="0"/>
+ <EmptySpace max="-2" attributes="0"/>
+ <Group type="103" groupAlignment="3" attributes="0">
+ <Component id="okButton" alignment="3" min="-2" max="-2"
attributes="0"/>
+ <Component id="cancelButton" alignment="3" min="-2"
max="-2" attributes="0"/>
+ </Group>
+ <EmptySpace max="32767" attributes="0"/>
+ </Group>
+ </Group>
+ </DimensionLayout>
+ </Layout>
+ <SubComponents>
+ <Container class="javax.swing.JPanel" name="mainPanel">
+
+ <Layout>
+ <DimensionLayout dim="0">
+ <Group type="103" groupAlignment="0" attributes="0">
+ <Group type="102" alignment="1" attributes="0">
+ <EmptySpace max="-2" attributes="0"/>
+ <Group type="103" groupAlignment="1" attributes="0">
+ <Component id="jPanel1" max="32767" attributes="0"/>
+ <Component id="previewPanel" max="32767"
attributes="0"/>
+ </Group>
+ </Group>
+ </Group>
+ </DimensionLayout>
+ <DimensionLayout dim="1">
+ <Group type="103" groupAlignment="0" attributes="0">
+ <Group type="102" alignment="0" attributes="0">
+ <EmptySpace max="-2" attributes="0"/>
+ <Component id="previewPanel" min="-2" pref="54" max="-2"
attributes="0"/>
+ <EmptySpace max="-2" attributes="0"/>
+ <Component id="jPanel1" max="32767" attributes="0"/>
+ <EmptySpace max="-2" attributes="0"/>
+ </Group>
+ </Group>
+ </DimensionLayout>
+ </Layout>
+ <SubComponents>
+ <Container class="javax.swing.JPanel" name="previewPanel">
+
+ <Layout
class="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout"/>
+ </Container>
+ <Container class="javax.swing.JPanel" name="jPanel1">
+
+ <Layout>
+ <DimensionLayout dim="0">
+ <Group type="103" groupAlignment="0" attributes="0">
+ <Group type="102" attributes="0">
+ <EmptySpace max="-2" attributes="0"/>
+ <Group type="103" groupAlignment="0" attributes="0">
+ <Component id="jLabel1" alignment="0" min="-2"
max="-2" attributes="0"/>
+ <Component id="jLabel2" alignment="0" min="-2"
max="-2" attributes="0"/>
+ <Component id="jLabel3" alignment="0" min="-2"
max="-2" attributes="0"/>
+ </Group>
+ <EmptySpace min="-2" pref="32" max="-2"
attributes="0"/>
+ <Group type="103" groupAlignment="0" attributes="0">
+ <Component id="styleComboBox" alignment="0"
max="32767" attributes="0"/>
+ <Group type="102" attributes="0">
+ <Component id="sizeText" min="-2" pref="71"
max="-2" attributes="0"/>
+ <EmptySpace min="0" pref="0" max="32767"
attributes="0"/>
+ </Group>
+ <Component id="fontFamilyComboBox" alignment="0"
max="32767" attributes="0"/>
+ <Component id="sizeSlider" alignment="0"
pref="365" max="32767" attributes="0"/>
+ </Group>
+ <EmptySpace min="-2" pref="10" max="-2"
attributes="0"/>
+ </Group>
+ </Group>
+ </DimensionLayout>
+ <DimensionLayout dim="1">
+ <Group type="103" groupAlignment="0" attributes="0">
+ <Group type="102" alignment="0" attributes="0">
+ <EmptySpace min="-2" max="-2" attributes="0"/>
+ <Group type="103" groupAlignment="3" attributes="0">
+ <Component id="jLabel1" alignment="3" min="-2"
max="-2" attributes="0"/>
+ <Component id="fontFamilyComboBox" alignment="3"
min="-2" max="-2" attributes="0"/>
+ </Group>
+ <EmptySpace max="-2" attributes="0"/>
+ <Group type="103" groupAlignment="3" attributes="0">
+ <Component id="jLabel2" alignment="3" min="-2"
max="-2" attributes="0"/>
+ <Component id="styleComboBox" alignment="3"
min="-2" max="-2" attributes="0"/>
+ </Group>
+ <EmptySpace max="-2" attributes="0"/>
+ <Group type="103" groupAlignment="3" attributes="0">
+ <Component id="jLabel3" alignment="3" min="-2"
max="-2" attributes="0"/>
+ <Component id="sizeText" alignment="3" min="-2"
max="-2" attributes="0"/>
+ </Group>
+ <EmptySpace max="-2" attributes="0"/>
+ <Component id="sizeSlider" min="-2" max="-2"
attributes="0"/>
+ <EmptySpace max="32767" attributes="0"/>
+ </Group>
+ </Group>
+ </DimensionLayout>
+ </Layout>
+ <SubComponents>
+ <Component class="javax.swing.JLabel" name="jLabel1">
+ <Properties>
+ <Property name="text" type="java.lang.String" value="Font
family : "/>
+ </Properties>
+ </Component>
+ <Component class="javax.swing.JLabel" name="jLabel2">
+ <Properties>
+ <Property name="text" type="java.lang.String"
value="Style : "/>
+ </Properties>
+ </Component>
+ <Component class="javax.swing.JLabel" name="jLabel3">
+ <Properties>
+ <Property name="text" type="java.lang.String"
value="Size : "/>
+ </Properties>
+ </Component>
+ <Component class="javax.swing.JComboBox"
name="fontFamilyComboBox">
+ <Properties>
+ <Property name="model" type="javax.swing.ComboBoxModel"
editor="org.netbeans.modules.form.editors2.ComboBoxModelEditor">
+ <StringArray count="4">
+ <StringItem index="0" value="Item 1"/>
+ <StringItem index="1" value="Item 2"/>
+ <StringItem index="2" value="Item 3"/>
+ <StringItem index="3" value="Item 4"/>
+ </StringArray>
+ </Property>
+ </Properties>
+ <Events>
+ <EventHandler event="actionPerformed"
listener="java.awt.event.ActionListener"
parameters="java.awt.event.ActionEvent"
handler="fontFamilyComboBoxActionPerformed"/>
+ </Events>
+ </Component>
+ <Component class="javax.swing.JComboBox" name="styleComboBox">
+ <Properties>
+ <Property name="model" type="javax.swing.ComboBoxModel"
editor="org.netbeans.modules.form.editors2.ComboBoxModelEditor">
+ <StringArray count="4">
+ <StringItem index="0" value="Item 1"/>
+ <StringItem index="1" value="Item 2"/>
+ <StringItem index="2" value="Item 3"/>
+ <StringItem index="3" value="Item 4"/>
+ </StringArray>
+ </Property>
+ </Properties>
+ <Events>
+ <EventHandler event="actionPerformed"
listener="java.awt.event.ActionListener"
parameters="java.awt.event.ActionEvent"
handler="styleComboBoxActionPerformed"/>
+ </Events>
+ </Component>
+ <Component class="javax.swing.JTextField" name="sizeText">
+ <Events>
+ <EventHandler event="actionPerformed"
listener="java.awt.event.ActionListener"
parameters="java.awt.event.ActionEvent" handler="sizeTextActionPerformed"/>
+ </Events>
+ </Component>
+ <Component class="javax.swing.JSlider" name="sizeSlider">
+ <Events>
+ <EventHandler event="stateChanged"
listener="javax.swing.event.ChangeListener"
parameters="javax.swing.event.ChangeEvent"
handler="sizeSliderStateChanged"/>
+ </Events>
+ </Component>
+ </SubComponents>
+ </Container>
+ </SubComponents>
+ </Container>
+ <Component class="javax.swing.JButton" name="okButton">
+ <Properties>
+ <Property name="text" type="java.lang.String" value="Ok"/>
+ </Properties>
+ </Component>
+ <Component class="javax.swing.JButton" name="cancelButton">
+ <Properties>
+ <Property name="text" type="java.lang.String" value="Cancel"/>
+ </Properties>
+ </Component>
+ </SubComponents>
+</Form>
=======================================
--- /dev/null
+++
/trunk/0.5/stable/whiteboard/src/classes/org/jdesktop/wonderland/modules/whiteboard/client/FontChooserPanel.java
Tue Sep 23 06:47:19 2014 UTC
@@ -0,0 +1,455 @@
+/**
+ * Copyright (c) 2014, WonderBuilders, Inc., All Rights Reserved
+ */
+
+package org.jdesktop.wonderland.modules.whiteboard.client;
+
+import java.awt.Color;
+import java.awt.Dimension;
+import java.awt.Font;
+import java.awt.FontMetrics;
+import java.awt.Graphics;
+import java.awt.GraphicsEnvironment;
+import java.awt.MouseInfo;
+import java.awt.geom.Rectangle2D;
+import java.util.Vector;
+import javax.swing.DefaultComboBoxModel;
+import javax.swing.JButton;
+import javax.swing.JPanel;
+import javax.swing.SwingUtilities;
+import javax.swing.event.DocumentEvent;
+import javax.swing.event.DocumentListener;
+import javax.swing.event.PopupMenuEvent;
+import javax.swing.event.PopupMenuListener;
+import javax.swing.plaf.basic.BasicComboPopup;
+
+/**
+ * font chooser with font family,style,size and color
+ *
+ * @author Abhishek Upadhyay
+ */
+public class FontChooserPanel extends javax.swing.JPanel {
+
+ static final String[] fontStyleString = new
String[]{"Font.PLAIN", "Font.ITALIC", "Font.BOLD", "Font.ITALIC+Font.BOLD"};
+ static final int[] fontStyleInt = new int[]{Font.PLAIN, Font.ITALIC,
Font.BOLD, Font.ITALIC + Font.BOLD};
+
+ private int currentSize = 24;
+ private int currentStyle = Font.PLAIN;
+ private String currentStyleString = "Font.PLAIN";
+ private String currentFontName = "Monospaced";
+ private Color currentColor = Color.black;
+
+ private int initialSize = 24;
+ private String initialStyleString = "Font.PLAIN";
+ private String initialFontName = "Monospaced";
+ private Color initialColor = Color.black;
+ private GraphicsPanel gp;
+
+ private boolean forTextChange = false;
+
+ /**
+ * Creates new form FontChooserPanel
+ */
+ public FontChooserPanel() {
+ initComponents();
+ initials();
+ }
+
+ public FontChooserPanel(String fontName, String fontSize, String
color, String style, String weight) {
+ this.initialFontName = fontName;
+ this.initialSize = Integer.parseInt(fontSize);
+ this.initialColor = Color.decode(color);
+ if (style.equals("normal") && weight.equals("normal")) {
+ this.initialStyleString = "Font.PLAIN";
+ } else if (style.equals("normal") && weight.equals("bold")) {
+ this.initialStyleString = "Font.BOLD";
+ } else if (style.equals("italic") && weight.equals("normal")) {
+ this.initialStyleString = "Font.ITALIC";
+ } else if (style.equals("italic") && weight.equals("bold")) {
+ this.initialStyleString = "Font.ITALIC+Font.BOLD";
+ }
+ initComponents();
+ initials();
+
+ if (!System.getProperty("
os.name").contains("Windows")) {
+ final BasicComboPopup fontFamilyPopup = (BasicComboPopup)
fontFamilyComboBox.getUI()
+ .getAccessibleChild(fontFamilyComboBox, 0);
+ final BasicComboPopup stylePopup = (BasicComboPopup)
styleComboBox.getUI()
+ .getAccessibleChild(styleComboBox, 0);
+ fontFamilyPopup.addPopupMenuListener(new
MyPopupListener(fontFamilyPopup));
+ stylePopup.addPopupMenuListener(new
MyPopupListener(stylePopup));
+ }
+ }
+
+ private class MyPopupListener implements PopupMenuListener {
+
+ private BasicComboPopup popup;
+
+ public MyPopupListener(BasicComboPopup popup) {
+ this.popup = popup;
+ }
+
+ @Override
+ public void popupMenuWillBecomeVisible(PopupMenuEvent e) {
+ popup.setLocation(MouseInfo.getPointerInfo().getLocation());
+ }
+
+ public void popupMenuWillBecomeInvisible(PopupMenuEvent e) {
+ }
+
+ public void popupMenuCanceled(PopupMenuEvent e) {
+ }
+ }
+
+ private void initials() {
+ attachPreviewPanel();
+ populateFontFamily();
+ populateStyles();
+ populateSlider();
+
+ sizeText.getDocument().addDocumentListener(new DocumentListener() {
+
+ public void insertUpdate(DocumentEvent e) {
+ changeSlider();
+ }
+
+ public void removeUpdate(DocumentEvent e) {
+ changeSlider();
+ }
+
+ public void changedUpdate(DocumentEvent e) {
+ changeSlider();
+ }
+
+ private void changeSlider() {
+ try {
+ forTextChange = true;
+ if (!sizeText.getText().equals("")) {
+ currentSize = Integer.parseInt(sizeText.getText());
+ sizeSlider.setValue(currentSize); // set the slider
+ }
+ } catch (NumberFormatException ne) {
+ SwingUtilities.invokeLater(new Runnable() {
+
+ public void run() {
+ sizeText.setText("" + currentSize);
+ }
+ });
+ }
+ }
+
+ });
+
+ }
+
+ private void attachPreviewPanel() {
+ gp = new GraphicsPanel();
+ previewPanel.add(gp);
+ previewPanel.validate();
+ validate();
+ }
+
+ private void populateSlider() {
+ sizeSlider.setMinimum(5);
+ sizeSlider.setMaximum(240);
+ sizeSlider.setMajorTickSpacing(20); // sets numbers for big tick
marks
+ sizeSlider.setMinorTickSpacing(1); // smaller tick marks
+ sizeSlider.setPaintTicks(true); // display the ticks
+ sizeSlider.setPaintLabels(true); // show the numbers
+ sizeSlider.setValue(initialSize);
+ sizeText.setText("" + initialSize);
+ }
+
+ private void populateStyles() {
+ styleComboBox.setModel(new DefaultComboBoxModel(fontStyleString));
+ styleComboBox.setSelectedItem(initialStyleString);
+ }
+
+ private void populateFontFamily() {
+ String[] fontNames = GraphicsEnvironment
+ .getLocalGraphicsEnvironment()
+ .getAvailableFontFamilyNames();
+ Vector visFonts = new Vector(fontNames.length);
+
+ for (int i = 0; i < fontNames.length; i++) {
+ Font f = new Font(fontNames[i], Font.PLAIN, 12);
+ if (f.canDisplay('a')) {
+ // Display only fonts that have the alphabetic characters.
+ // On my machine there are almost 20 fonts (eg, Wingdings)
+ // that don't display text.
+ visFonts.add(fontNames[i]);
+ } else {
+
+ }
+ }
+ fontFamilyComboBox.setModel(new DefaultComboBoxModel(visFonts));
+ fontFamilyComboBox.setSelectedItem(initialFontName);
+ }
+
+ // A component to draw sample string with given font family, style,
and size.
+ class GraphicsPanel extends JPanel {
+
+ public GraphicsPanel() {
+ this.setPreferredSize(new Dimension(600, 100));
+ this.setBackground(Color.white);
+ this.setForeground(Color.black);
+ }
+
+ public void paintComponent(Graphics g) {
+ super.paintComponent(g); // paint background
+ String text = "Font(\""
+ + currentFontName + "\", "
+ + currentStyleString + ", "
+ + currentSize + ");";
+ Font f = new Font(currentFontName, currentStyle, currentSize);
+ g.setColor(currentColor);
+ g.setFont(f);
+
+ // Find the size of this text so we can center it
+ FontMetrics fm = g.getFontMetrics(f); // metrics for this
object
+ Rectangle2D rect = fm.getStringBounds(text, g); // size of
string
+ int textHeight = (int) (rect.getHeight());
+ int textWidth = (int) (rect.getWidth());
+ int panelHeight = this.getHeight();
+ int panelWidth = this.getWidth();
+ // Center text horizontally and vertically
+ int x = (panelWidth - textWidth) / 2;
+ int y = (panelHeight - textHeight) / 2 + fm.getAscent();
+ g.drawString(text, x, y);
+ }
+ }
+
+ public String getFontName() {
+ return currentFontName;
+ }
+
+ public String getFontSize() {
+ return "" + currentSize;
+ }
+
+ public JButton getOkButton() {
+ return okButton;
+ }
+
+ public JButton getCancelButton() {
+ return cancelButton;
+ }
+
+ public String getFontWeight() {
+ if (currentStyle == Font.PLAIN) {
+ return "normal";
+ } else if (currentStyle == Font.BOLD) {
+ return "bold";
+ } else if (currentStyle == Font.ITALIC) {
+ return "normal";
+ } else if (currentStyle == (Font.BOLD + Font.ITALIC)) {
+ return "bold";
+ }
+ return "normal";
+ }
+
+ public String getFontStyle() {
+ if (currentStyle == Font.PLAIN) {
+ return "normal";
+ } else if (currentStyle == Font.BOLD) {
+ return "normal";
+ } else if (currentStyle == Font.ITALIC) {
+ return "italic";
+ } else if (currentStyle == (Font.BOLD + Font.ITALIC)) {
+ return "italic";
+ }
+ return "normal";
+ }
+
+ /**
+ * This method is called from within the constructor to initialize the
form.
+ * WARNING: Do NOT modify this code. The content of this method is
always
+ * regenerated by the Form Editor.
+ */
+ @SuppressWarnings("unchecked")
+ // <editor-fold defaultstate="collapsed" desc="Generated
Code">//GEN-BEGIN:initComponents
+ private void initComponents() {
+
+ mainPanel = new javax.swing.JPanel();
+ previewPanel = new javax.swing.JPanel();
+ jPanel1 = new javax.swing.JPanel();
+ jLabel1 = new javax.swing.JLabel();
+ jLabel2 = new javax.swing.JLabel();
+ jLabel3 = new javax.swing.JLabel();
+ fontFamilyComboBox = new javax.swing.JComboBox();
+ styleComboBox = new javax.swing.JComboBox();
+ sizeText = new javax.swing.JTextField();
+ sizeSlider = new javax.swing.JSlider();
+ okButton = new javax.swing.JButton();
+ cancelButton = new javax.swing.JButton();
+
+ previewPanel.setLayout(new java.awt.BorderLayout());
+
+ jLabel1.setText("Font family : ");
+
+ jLabel2.setText("Style : ");
+
+ jLabel3.setText("Size : ");
+
+ fontFamilyComboBox.setModel(new
javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item
3", "Item 4" }));
+ fontFamilyComboBox.addActionListener(new
java.awt.event.ActionListener() {
+ public void actionPerformed(java.awt.event.ActionEvent evt) {
+ fontFamilyComboBoxActionPerformed(evt);
+ }
+ });
+
+ styleComboBox.setModel(new javax.swing.DefaultComboBoxModel(new
String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
+ styleComboBox.addActionListener(new
java.awt.event.ActionListener() {
+ public void actionPerformed(java.awt.event.ActionEvent evt) {
+ styleComboBoxActionPerformed(evt);
+ }
+ });
+
+ sizeText.addActionListener(new java.awt.event.ActionListener() {
+ public void actionPerformed(java.awt.event.ActionEvent evt) {
+ sizeTextActionPerformed(evt);
+ }
+ });
+
+ sizeSlider.addChangeListener(new
javax.swing.event.ChangeListener() {
+ public void stateChanged(javax.swing.event.ChangeEvent evt) {
+ sizeSliderStateChanged(evt);
+ }
+ });
+
+ javax.swing.GroupLayout jPanel1Layout = new
javax.swing.GroupLayout(jPanel1);
+ jPanel1.setLayout(jPanel1Layout);
+ jPanel1Layout.setHorizontalGroup(
+
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(jPanel1Layout.createSequentialGroup()
+ .addContainerGap()
+ .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addComponent(jLabel1)
+ .addComponent(jLabel2)
+ .addComponent(jLabel3))
+ .addGap(32, 32, 32)
+ .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addComponent(styleComboBox, 0,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
+ .addGroup(jPanel1Layout.createSequentialGroup()
+ .addComponent(sizeText,
javax.swing.GroupLayout.PREFERRED_SIZE, 71,
javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addGap(0, 0, Short.MAX_VALUE))
+ .addComponent(fontFamilyComboBox, 0,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
+ .addComponent(sizeSlider,
javax.swing.GroupLayout.DEFAULT_SIZE, 365, Short.MAX_VALUE))
+ .addGap(10, 10, 10))
+ );
+ jPanel1Layout.setVerticalGroup(
+
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(jPanel1Layout.createSequentialGroup()
+ .addContainerGap()
+ .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
+ .addComponent(jLabel1)
+ .addComponent(fontFamilyComboBox,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
+ .addComponent(jLabel2)
+ .addComponent(styleComboBox,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
+ .addComponent(jLabel3)
+ .addComponent(sizeText,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addComponent(sizeSlider,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE))
+ );
+
+ javax.swing.GroupLayout mainPanelLayout = new
javax.swing.GroupLayout(mainPanel);
+ mainPanel.setLayout(mainPanelLayout);
+ mainPanelLayout.setHorizontalGroup(
+
mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
mainPanelLayout.createSequentialGroup()
+ .addContainerGap()
+ .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
+ .addComponent(jPanel1,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)
+ .addComponent(previewPanel,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)))
+ );
+ mainPanelLayout.setVerticalGroup(
+
mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(mainPanelLayout.createSequentialGroup()
+ .addContainerGap()
+ .addComponent(previewPanel,
javax.swing.GroupLayout.PREFERRED_SIZE, 54,
javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addComponent(jPanel1,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)
+ .addContainerGap())
+ );
+
+ okButton.setText("Ok");
+
+ cancelButton.setText("Cancel");
+
+ javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
+ this.setLayout(layout);
+ layout.setHorizontalGroup(
+
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(layout.createSequentialGroup()
+ .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)
+ .addComponent(okButton)
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addComponent(cancelButton)
+ .addContainerGap())
+ .addComponent(mainPanel, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
+ );
+ layout.setVerticalGroup(
+
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(layout.createSequentialGroup()
+ .addGap(0, 0, 0)
+ .addComponent(mainPanel,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
+ .addComponent(okButton)
+ .addComponent(cancelButton))
+ .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE))
+ );
+ }// </editor-fold>//GEN-END:initComponents
+
+ private void
fontFamilyComboBoxActionPerformed(java.awt.event.ActionEvent evt)
{//GEN-FIRST:event_fontFamilyComboBoxActionPerformed
+ // TODO add your handling code here:
+ currentFontName = fontFamilyComboBox.getSelectedItem().toString();
+ gp.repaint();
+
+ }//GEN-LAST:event_fontFamilyComboBoxActionPerformed
+
+ private void styleComboBoxActionPerformed(java.awt.event.ActionEvent
evt) {//GEN-FIRST:event_styleComboBoxActionPerformed
+ // TODO add your handling code here:
+ currentStyle = fontStyleInt[styleComboBox.getSelectedIndex()];
+ gp.repaint();
+ }//GEN-LAST:event_styleComboBoxActionPerformed
+
+ private void sizeSliderStateChanged(javax.swing.event.ChangeEvent evt)
{//GEN-FIRST:event_sizeSliderStateChanged
+ // TODO add your handling code here:
+ SwingUtilities.invokeLater(new Runnable() {
+ public void run() {
+ if (!forTextChange) {
+ currentSize = sizeSlider.getValue();
+ sizeText.setText("" + currentSize);
+ gp.repaint();
+ } else {
+ forTextChange = false;
+ }
+ }
+ });
+ }//GEN-LAST:event_sizeSliderStateChanged
+
+ private void sizeTextActionPerformed(java.awt.event.ActionEvent evt)
{//GEN-FIRST:event_sizeTextActionPerformed
+ // TODO add your handling code here:
+
+ }//GEN-LAST:event_sizeTextActionPerformed
+ // Variables declaration - do not modify//GEN-BEGIN:variables
+ private javax.swing.JButton cancelButton;
+ private javax.swing.JComboBox fontFamilyComboBox;
+ private javax.swing.JLabel jLabel1;
+ private javax.swing.JLabel jLabel2;
+ private javax.swing.JLabel jLabel3;
+ private javax.swing.JPanel jPanel1;
+ private javax.swing.JPanel mainPanel;
+ private javax.swing.JButton okButton;
+ private javax.swing.JPanel previewPanel;
+ private javax.swing.JSlider sizeSlider;
+ private javax.swing.JTextField sizeText;
+ private javax.swing.JComboBox styleComboBox;
+ // End of variables declaration//GEN-END:variables
+}
=======================================
--- /dev/null
+++
/trunk/0.5/stable/whiteboard/src/classes/org/jdesktop/wonderland/modules/whiteboard/client/ImageFilter.java
Tue Sep 23 06:47:19 2014 UTC
@@ -0,0 +1,44 @@
+/**
+ * Copyright (c) 2014, WonderBuilders, Inc., All Rights Reserved
+ */
+
+package org.jdesktop.wonderland.modules.whiteboard.client;
+
+import java.io.File;
+import javax.swing.filechooser.*;
+
+/**
+ * filter which accept tiff,gif,jpg,png files
+ *
+ * @author Abhishek Upadhyay
+ */
+public class ImageFilter extends FileFilter {
+
+ //Accept all directories and all gif, jpg, tiff, or png files.
+ public boolean accept(File f) {
+ if (f.isDirectory()) {
+ return true;
+ }
+
+ String extension = Utils.getExtension(f);
+ if (extension != null) {
+ if (extension.equals(Utils.tiff)
+ || extension.equals(Utils.tif)
+ || extension.equals(Utils.gif)
+ || extension.equals(Utils.jpeg)
+ || extension.equals(Utils.jpg)
+ || extension.equals(Utils.png)) {
+ return true;
+ } else {
+ return false;
+ }
+ }
+
+ return false;
+ }
+
+ //The description of this filter
+ public String getDescription() {
+ return "Just Images";
+ }
+}
=======================================
--- /dev/null
+++
/trunk/0.5/stable/whiteboard/src/classes/org/jdesktop/wonderland/modules/whiteboard/client/RemoveConfirmationPanel.form
Tue Sep 23 06:47:19 2014 UTC
@@ -0,0 +1,135 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+
+<Form version="1.3" maxVersion="1.9"
type="org.netbeans.modules.form.forminfo.JPanelFormInfo">
+ <NonVisualComponents>
+ <Component class="javax.swing.ButtonGroup" name="buttonGroup1">
+ </Component>
+ </NonVisualComponents>
+ <AuxValues>
+ <AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer"
value="0"/>
+ <AuxValue name="FormSettings_autoSetComponentName"
type="java.lang.Boolean" value="false"/>
+ <AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean"
value="true"/>
+ <AuxValue name="FormSettings_generateMnemonicsCode"
type="java.lang.Boolean" value="false"/>
+ <AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean"
value="false"/>
+ <AuxValue name="FormSettings_layoutCodeTarget"
type="java.lang.Integer" value="1"/>
+ <AuxValue name="FormSettings_listenerGenerationStyle"
type="java.lang.Integer" value="0"/>
+ <AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean"
value="false"/>
+ <AuxValue name="FormSettings_variablesModifier"
type="java.lang.Integer" value="2"/>
+ </AuxValues>
+
+ <Layout>
+ <DimensionLayout dim="0">
+ <Group type="103" groupAlignment="0" attributes="0">
+ <Group type="102" attributes="0">
+ <EmptySpace max="-2" attributes="0"/>
+ <Group type="103" groupAlignment="0" attributes="0">
+ <Group type="102" alignment="1" attributes="0">
+ <EmptySpace min="0" pref="0" max="32767"
attributes="0"/>
+ <Component id="cancelButton" min="-2" max="-2"
attributes="0"/>
+ <EmptySpace max="-2" attributes="0"/>
+ <Component id="clearButton" min="-2" max="-2"
attributes="0"/>
+ </Group>
+ <Component id="jPanel1" alignment="0" max="32767"
attributes="0"/>
+ </Group>
+ <EmptySpace max="-2" attributes="0"/>
+ </Group>
+ </Group>
+ </DimensionLayout>
+ <DimensionLayout dim="1">
+ <Group type="103" groupAlignment="0" attributes="0">
+ <Group type="102" alignment="0" attributes="0">
+ <EmptySpace max="-2" attributes="0"/>
+ <Component id="jPanel1" min="-2" max="-2" attributes="0"/>
+ <EmptySpace max="-2" attributes="0"/>
+ <Group type="103" groupAlignment="3" attributes="0">
+ <Component id="clearButton" alignment="3" min="-2"
max="-2" attributes="0"/>
+ <Component id="cancelButton" alignment="3" min="-2"
max="-2" attributes="0"/>
+ </Group>
+ <EmptySpace max="32767" attributes="0"/>
+ </Group>
+ </Group>
+ </DimensionLayout>
+ </Layout>
+ <SubComponents>
+ <Container class="javax.swing.JPanel" name="jPanel1">
+
+ <Layout>
+ <DimensionLayout dim="0">
+ <Group type="103" groupAlignment="0" attributes="0">
+ <Group type="102" alignment="0" attributes="0">
+ <EmptySpace max="-2" attributes="0"/>
+ <Component id="jLabel1" min="-2" max="-2"
attributes="0"/>
+ <EmptySpace min="-2" pref="8" max="-2" attributes="0"/>
+ <Group type="103" groupAlignment="1" max="-2"
attributes="0">
+ <Component id="jRadioButton2" alignment="0"
max="32767" attributes="0"/>
+ <Component id="jRadioButton3" alignment="0"
max="32767" attributes="0"/>
+ <Component id="jRadioButton1" max="32767"
attributes="0"/>
+ </Group>
+ <EmptySpace pref="59" max="32767" attributes="0"/>
+ </Group>
+ </Group>
+ </DimensionLayout>
+ <DimensionLayout dim="1">
+ <Group type="103" groupAlignment="0" attributes="0">
+ <Group type="102" alignment="0" attributes="0">
+ <EmptySpace max="-2" attributes="0"/>
+ <Group type="103" groupAlignment="3" attributes="0">
+ <Component id="jLabel1" alignment="3" min="-2"
max="-2" attributes="0"/>
+ <Component id="jRadioButton1" alignment="3" min="-2"
max="-2" attributes="0"/>
+ </Group>
+ <EmptySpace type="unrelated" max="-2" attributes="0"/>
+ <Component id="jRadioButton2" min="-2" max="-2"
attributes="0"/>
+ <EmptySpace type="unrelated" max="-2" attributes="0"/>
+ <Component id="jRadioButton3" min="-2" max="-2"
attributes="0"/>
+ <EmptySpace max="32767" attributes="0"/>
+ </Group>
+ </Group>
+ </DimensionLayout>
+ </Layout>
+ <SubComponents>
+ <Component class="javax.swing.JLabel" name="jLabel1">
+ <Properties>
+ <Property name="font" type="java.awt.Font"
editor="org.netbeans.beaninfo.editors.FontEditor">
+ <Font name="Tahoma" size="12" style="1"/>
+ </Property>
+ <Property name="text" type="java.lang.String"
value="Clear : "/>
+ </Properties>
+ </Component>
+ <Component class="javax.swing.JRadioButton" name="jRadioButton1">
+ <Properties>
+ <Property name="buttonGroup" type="javax.swing.ButtonGroup"
editor="org.netbeans.modules.form.RADComponent$ButtonGroupPropertyEditor">
+ <ComponentRef name="buttonGroup1"/>
+ </Property>
+ <Property name="text" type="java.lang.String" value="Drawing"/>
+ </Properties>
+ </Component>
+ <Component class="javax.swing.JRadioButton" name="jRadioButton2">
+ <Properties>
+ <Property name="buttonGroup" type="javax.swing.ButtonGroup"
editor="org.netbeans.modules.form.RADComponent$ButtonGroupPropertyEditor">
+ <ComponentRef name="buttonGroup1"/>
+ </Property>
+ <Property name="text" type="java.lang.String"
value="Background"/>
+ </Properties>
+ </Component>
+ <Component class="javax.swing.JRadioButton" name="jRadioButton3">
+ <Properties>
+ <Property name="buttonGroup" type="javax.swing.ButtonGroup"
editor="org.netbeans.modules.form.RADComponent$ButtonGroupPropertyEditor">
+ <ComponentRef name="buttonGroup1"/>
+ </Property>
+ <Property name="text" type="java.lang.String" value="Drawing
and Background"/>
+ </Properties>
+ </Component>
+ </SubComponents>
+ </Container>
+ <Component class="javax.swing.JButton" name="clearButton">
+ <Properties>
+ <Property name="text" type="java.lang.String" value="Clear"/>
+ </Properties>
+ </Component>
+ <Component class="javax.swing.JButton" name="cancelButton">
+ <Properties>
+ <Property name="text" type="java.lang.String" value="Cancel"/>
+ </Properties>
+ </Component>
+ </SubComponents>
+</Form>
=======================================
--- /dev/null
+++
/trunk/0.5/stable/whiteboard/src/classes/org/jdesktop/wonderland/modules/whiteboard/client/RemoveConfirmationPanel.java
Tue Sep 23 06:47:19 2014 UTC
@@ -0,0 +1,137 @@
+/**
+ * Copyright (c) 2014, WonderBuilders, Inc., All Rights Reserved
+ */
+
+package org.jdesktop.wonderland.modules.whiteboard.client;
+
+import javax.swing.ButtonGroup;
+import javax.swing.JButton;
+
+/**
+ *
+ * @author Abhishek Upadhyay
+ */
+public class RemoveConfirmationPanel extends javax.swing.JPanel {
+
+ /**
+ * Creates new form RemoveConfirmationPanel
+ */
+ public RemoveConfirmationPanel() {
+ initComponents();
+ jRadioButton1.setSelected(true);
+ }
+
+ public ButtonGroup getButtonGroup1() {
+ return buttonGroup1;
+ }
+
+ public JButton getCancelButton() {
+ return cancelButton;
+ }
+
+ public JButton getClearButton() {
+ return clearButton;
+ }
+
+ /**
+ * This method is called from within the constructor to initialize the
form.
+ * WARNING: Do NOT modify this code. The content of this method is
always
+ * regenerated by the Form Editor.
+ */
+ @SuppressWarnings("unchecked")
+ // <editor-fold defaultstate="collapsed" desc="Generated
Code">//GEN-BEGIN:initComponents
+ private void initComponents() {
+
+ buttonGroup1 = new javax.swing.ButtonGroup();
+ jPanel1 = new javax.swing.JPanel();
+ jLabel1 = new javax.swing.JLabel();
+ jRadioButton1 = new javax.swing.JRadioButton();
+ jRadioButton2 = new javax.swing.JRadioButton();
+ jRadioButton3 = new javax.swing.JRadioButton();
+ clearButton = new javax.swing.JButton();
+ cancelButton = new javax.swing.JButton();
+
+ jLabel1.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
+ jLabel1.setText("Clear : ");
+
+ buttonGroup1.add(jRadioButton1);
+ jRadioButton1.setText("Drawing");
+
+ buttonGroup1.add(jRadioButton2);
+ jRadioButton2.setText("Background");
+
+ buttonGroup1.add(jRadioButton3);
+ jRadioButton3.setText("Drawing and Background");
+
+ javax.swing.GroupLayout jPanel1Layout = new
javax.swing.GroupLayout(jPanel1);
+ jPanel1.setLayout(jPanel1Layout);
+ jPanel1Layout.setHorizontalGroup(
+
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(jPanel1Layout.createSequentialGroup()
+ .addContainerGap()
+ .addComponent(jLabel1)
+ .addGap(8, 8, 8)
+ .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING,
false)
+ .addComponent(jRadioButton2,
javax.swing.GroupLayout.Alignment.LEADING,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)
+ .addComponent(jRadioButton3,
javax.swing.GroupLayout.Alignment.LEADING,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)
+ .addComponent(jRadioButton1,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE))
+ .addContainerGap(59, Short.MAX_VALUE))
+ );
+ jPanel1Layout.setVerticalGroup(
+
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(jPanel1Layout.createSequentialGroup()
+ .addContainerGap()
+ .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
+ .addComponent(jLabel1)
+ .addComponent(jRadioButton1))
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
+ .addComponent(jRadioButton2)
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
+ .addComponent(jRadioButton3)
+ .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE))
+ );
+
+ clearButton.setText("Clear");
+
+ cancelButton.setText("Cancel");
+
+ javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
+ this.setLayout(layout);
+ layout.setHorizontalGroup(
+
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(layout.createSequentialGroup()
+ .addContainerGap()
+ .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
layout.createSequentialGroup()
+ .addGap(0, 0, Short.MAX_VALUE)
+ .addComponent(cancelButton)
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addComponent(clearButton))
+ .addComponent(jPanel1,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE))
+ .addContainerGap())
+ );
+ layout.setVerticalGroup(
+
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addGroup(layout.createSequentialGroup()
+ .addContainerGap()
+ .addComponent(jPanel1,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
+ .addComponent(clearButton)
+ .addComponent(cancelButton))
+ .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE))
+ );
+ }// </editor-fold>//GEN-END:initComponents
+
+
+ // Variables declaration - do not modify//GEN-BEGIN:variables
+ private javax.swing.ButtonGroup buttonGroup1;
+ private javax.swing.JButton cancelButton;
+ private javax.swing.JButton clearButton;
+ private javax.swing.JLabel jLabel1;
+ private javax.swing.JPanel jPanel1;
+ private javax.swing.JRadioButton jRadioButton1;
+ private javax.swing.JRadioButton jRadioButton2;
+ private javax.swing.JRadioButton jRadioButton3;
+ // End of variables declaration//GEN-END:variables
+}
=======================================
--- /dev/null
+++
/trunk/0.5/stable/whiteboard/src/classes/org/jdesktop/wonderland/modules/whiteboard/client/Utils.java
Tue Sep 23 06:47:19 2014 UTC
@@ -0,0 +1,50 @@
+/**
+ * Copyright (c) 2014, WonderBuilders, Inc., All Rights Reserved
+ */
+
+package org.jdesktop.wonderland.modules.whiteboard.client;
+
+import java.io.File;
+import javax.swing.ImageIcon;
+
+/**
+ * Utils.java is used by ImageFilter class
+ *
+ * @author Abhishek Upadhyay
+ */
+public class Utils {
+
+ public final static String jpeg = "jpeg";
+ public final static String jpg = "jpg";
+ public final static String gif = "gif";
+ public final static String tiff = "tiff";
+ public final static String tif = "tif";
+ public final static String png = "png";
+
+ /*
+ * Get the extension of a file.
+ */
+ public static String getExtension(File f) {
+ String ext = null;
+ String s = f.getName();
+ int i = s.lastIndexOf('.');
+
+ if (i > 0 && i < s.length() - 1) {
+ ext = s.substring(i + 1).toLowerCase();
+ }
+ return ext;
+ }
+
+ /**
+ * Returns an ImageIcon, or null if the path was invalid.
+ */
+ protected static ImageIcon createImageIcon(String path) {
+ java.net.URL imgURL = Utils.class.getResource(path);
+ if (imgURL != null) {
+ return new ImageIcon(imgURL);
+ } else {
+ System.err.println("Couldn't find file: " + path);
+ return null;
+ }
+ }
+}
=======================================
--- /dev/null
+++
/trunk/0.5/stable/whiteboard/src/classes/org/jdesktop/wonderland/modules/whiteboard/client/resources/WhiteboardBackgroundImage32x32.png
Tue Sep 23 06:47:19 2014 UTC
Binary file, no diff available.
=======================================
--- /dev/null
+++
/trunk/0.5/stable/whiteboard/src/classes/org/jdesktop/wonderland/modules/whiteboard/client/resources/WhiteboardBringToFront32x32.PNG
Tue Sep 23 06:47:19 2014 UTC
Binary file, no diff available.
=======================================
--- /dev/null
+++
/trunk/0.5/stable/whiteboard/src/classes/org/jdesktop/wonderland/modules/whiteboard/client/resources/WhiteboardDrawEllipseFilled32x32.png
Tue Sep 23 06:47:19 2014 UTC
Binary file, no diff available.
=======================================
--- /dev/null
+++
/trunk/0.5/stable/whiteboard/src/classes/org/jdesktop/wonderland/modules/whiteboard/client/resources/WhiteboardDrawFillRectangle32x32.png
Tue Sep 23 06:47:19 2014 UTC
Binary file, no diff available.
=======================================
--- /dev/null
+++
/trunk/0.5/stable/whiteboard/src/classes/org/jdesktop/wonderland/modules/whiteboard/client/resources/WhiteboardFont32x32.png
Tue Sep 23 06:47:19 2014 UTC
Binary file, no diff available.
=======================================
--- /dev/null
+++
/trunk/0.5/stable/whiteboard/src/classes/org/jdesktop/wonderland/modules/whiteboard/client/resources/WhiteboardMovableImage32x32.png
Tue Sep 23 06:47:19 2014 UTC
Binary file, no diff available.
=======================================
--- /dev/null
+++
/trunk/0.5/stable/whiteboard/src/classes/org/jdesktop/wonderland/modules/whiteboard/client/resources/WhiteboardResize32x32.PNG
Tue Sep 23 06:47:19 2014 UTC
Binary file, no diff available.
=======================================
--- /dev/null
+++
/trunk/0.5/stable/whiteboard/src/classes/org/jdesktop/wonderland/modules/whiteboard/client/resources/WhiteboardSendToBack32x32.png
Tue Sep 23 06:47:19 2014 UTC
Binary file, no diff available.
=======================================
--- /dev/null
+++
/trunk/0.5/stable/whiteboard/src/classes/org/jdesktop/wonderland/modules/whiteboard/client/resources/white-background.png
Tue Sep 23 06:47:19 2014 UTC
@@ -0,0 +1,10 @@
+‰PNG
+
+
+IHDR
+
+ ¹·7Ù sRGB ®Î
+é gAMA ±
+üa pHYs Ä Ä •+ bKGD ÿ ÿ ÿ ½§“ tIME Ù &.µÐCó
+IDAT(Scü
+$ & Õƒ• j‚†Úh@@ üí ™æL IEND®B`‚
=======================================
--- /dev/null
+++
/trunk/0.5/unstable/EZScript/src/classes/org/jdesktop/wonderland/modules/ezscript/client/animation/PlayFrameRange.java
Tue Sep 23 06:47:19 2014 UTC
@@ -0,0 +1,77 @@
+/**
+ * Copyright (c) 2013, WonderBuilders, Inc., All Rights Reserved
+ */
+
+package org.jdesktop.wonderland.modules.ezscript.client.animation;
+
+//import com.wonderbuilders.modules.animation.client.AnimationComponent;
+import org.jdesktop.wonderland.client.cell.Cell;
+import org.jdesktop.wonderland.modules.ezscript.client.SPI.ScriptMethodSPI;
+import
org.jdesktop.wonderland.modules.ezscript.client.annotation.ScriptMethod;
+
+/**
+ * This method will play frame range of Collada animation in model. Frame
range is identified
+ * by name assigned to it in Animation capability.
+ *
+ * @author Vladimir Djurovic
+ */
+@ScriptMethod
+public class PlayFrameRange implements ScriptMethodSPI {
+
+ /**
+ * Function name as used in EZScript.
+ */
+ private static final String FUNCTION_NAME = "playFrameRange";
+
+ /**
+ * Object cell.
+ */
+ private Cell cell;
+
+ /**
+ * Name of the frame range to play.
+ */
+ private String frameRangeName;
+
+ /**
+ * Returns function name as used in EZScript.
+ *
+ * @return function name
+ */
+ public String getFunctionName() {
+ return FUNCTION_NAME;
+ }
+
+ /**
+ * Set arguments for function. Two arguments are required: cell and
name
+ * of the frame range.
+ *
+ * @param args function arguments
+ */
+ public void setArguments(Object[] args) {
+ cell = (Cell)args[0];
+ frameRangeName = (String)args[1];
+ }
+
+ public String getDescription() {
+ StringBuilder sb = new StringBuilder("Usage:
playFrameRange(cell,ranegName)\n");
+ sb.append("- plays frame range defined with Animation capability");
+ return sb.toString();
+ }
+
+ public String getCategory() {
+ return "Object Movement";
+ }
+
+ /**
+ * Execute function within script context.
+ */
+ public void run() {
+// AnimationComponent animationComp =
cell.getComponent(AnimationComponent.class);
+// if(animationComp == null){
+// throw new IllegalStateException("Animation capability not
present. Please add Animation capability to cell.");
+// }
+// animationComp.executeAnimationCommand(frameRangeName);
+ }
+
+}
=======================================
--- /dev/null
+++ /trunk/0.5/unstable/ImageFrame/build.xml Tue Sep 23 06:47:19 2014 UTC
@@ -0,0 +1,76 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project name="ImageFrame" default="dist" basedir=".">
+ <!-- import properties for this module -->
+ <property file="${current.dir}/my.module.properties"/>
+ <dirname property="current.dir" file="${ant.file.ImageFrame}"/>
+
+ <!-- import properties from the common modules properties. These values
+ may overwrite some values in my.module.properties, such as the
+ location of the Wonderland directory in the case of the entire
modules
+ directory being checked out instead of an individual file -->
+ <property file="${current.dir}/../modules-stable.properties"/>
+
+ <!-- import properties for this module -->
+ <property file="${current.dir}/my.module.properties"/>
+
+ <property name="modules.dir" location="${wonderland.dir}/modules"/>
+ <property name="module.src" value="${module.plugin.src}"/>
+ <property name="module.jarname" value="${
module.name}"/>
+ <property name="module.stable.dir"
value="${current.dir}/../../stable"/>
+ <property name="module.unstable.dir" value="${current.dir}/../"/>
+
+ <pathconvert property="module-common.classpath">
+ <path
location="${modules.dir}/foundation/sharedstate/build/client/sharedstate-client.jar"/>
+ </pathconvert>
+
+ <pathconvert property="module-client.classpath">
+ <path
location="${modules.dir}/foundation/appbase/build/client/appbase-client.jar"/>
+ <path
location="${modules.dir}/foundation/appbase/build/client/appbase-client-cell.jar"/>
+ <path
location="${modules.dir}/foundation/sharedstate/build/client/sharedstate-client.jar"/>
+ <path
location="${modules.dir}/foundation/content-repository/build/client/contentrepo-client.jar"/>
+ <path
location="${module.stable.dir}/image-viewer/build/client/imageviewer-client.jar"/>
+ </pathconvert>
+
+ <pathconvert property="module-server.classpath">
+ <path
location="${modules.dir}/foundation/sharedstate/build/server/sharedstate-server.jar"/>
+ </pathconvert>
+ <!-- import common build file -->
+ <import
file="${modules.dir}/build-tools/build-scripts/module-build.xml"/>
+
+ <target name="build" depends="-module-init, -module-compile-common,
+ -module-compile-server,
+ -module-compile-client"/>
+
+ <target name="dist" depends="build">
+ <mkdir dir="${module.dist.dir}"/>
+
+ <module name="${
module.name}"
majorVersion="${module.version.major}"
+ minorVersion="${module.version.minor}"
+ miniVersion="${module.version.mini}"
+ jarfile="${module.dist.dir}/${module.jarname}.jar"
+ moduleDescription="${module.description}"
builddir="${build.dir}">
+
+ <client>
+ <clientjar name="${
module.name}-client"
basedir="${build.classes.dir}">
+ <include name="${module.src}/client/**"/>
+ <fileset dir="${current.dir}/src/classes">
+ <include name="${module.src}/client/resources/**"/>
+ </fileset>
+ <include name="${module.src}/common/**"/>
+
+ </clientjar>
+ </client>
+
+ <server>
+ <serverjar name="${
module.name}-server"
basedir="${build.classes.dir}">
+ <include name="${module.src}/server/**"/>
+ <include name="${module.src}/common/**"/>
+ </serverjar>
+ </server>
+ <art dir="${current.dir}/art"/>
+ </module>
+ </target>
+
+ <target name="deploy" depends="dist, -module-deploy"/>
+ <target name="clean" depends="-module-clean"/>
+</project>
=======================================
--- /dev/null
+++ /trunk/0.5/unstable/ImageFrame/my.module.properties Tue Sep 23 06:47:19
2014 UTC
@@ -0,0 +1,48 @@
+#################################################################################################
+# my.module.properties - Property files for Wonderland module projects #
+# #
+# Customize the properties in this file for your module project. A
Wonderland module contains #
+# a collection art, code, WFSs, etc.. #
+#################################################################################################
+
+#
+# Property:
module.name (required)
+# The unique name of the module
+#
+
module.name=ImageFrame
+
+#
+# Property: module.version.major (required)
+# The major version number of the module
+#
+module.version.major=1
+
+#
+# Property: module.version.minor (optional)
+# The minor version number of the module, defaults to 0
+#
+module.version.minor=0
+
+#
+# Property: module.version.mini (optional)
+# The mini version number of the module, defaults to 0
+#
+module.version.mini=0
+
+#
+# Property: module.description (optional)
+# A textual description of the module
+#
+module.description=Simple frame on which we can drop images of defferent
size.
+
+#
+# Property: wonderland.dir (required)
+# The location of the Wonderland source
+#
+wonderland.dir=${current.dir}/../../../wonderland
+
+#
+# Property: module.plugin.src (optional)
+# Beneath src/classes/, where is the module code located (common/,
client/, server/)
+#
+module.plugin.src=org/jdesktop/wonderland/modules/imageframe
=======================================
--- /dev/null
+++ /trunk/0.5/unstable/ImageFrame/nbproject/nb.properties Tue Sep 23
06:47:19 2014 UTC
@@ -0,0 +1,5 @@
+
+wonderland.ostype=win64
+wonderland.arch=amd64
+wonderland.system.type=windows-amd64
+
=======================================
--- /dev/null
+++ /trunk/0.5/unstable/ImageFrame/nbproject/private/private.xml Tue Sep 23
06:47:19 2014 UTC
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project-private xmlns="
http://www.netbeans.org/ns/project-private/1">
+ <editor-bookmarks
xmlns="
http://www.netbeans.org/ns/editor-bookmarks/1"/>
+ <editor-bookmarks
xmlns="
http://www.netbeans.org/ns/editor-bookmarks/2" lastBookmarkId="0"/>
+ <open-files xmlns="
http://www.netbeans.org/ns/projectui-open-files/2">
+ <group/>
+ </open-files>
+</project-private>
=======================================
--- /dev/null
+++ /trunk/0.5/unstable/ImageFrame/nbproject/project.xml Tue Sep 23
06:47:19 2014 UTC
@@ -0,0 +1,70 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="
http://www.netbeans.org/ns/project/1">
+ <type>org.netbeans.modules.ant.freeform</type>
+ <configuration>
+ <general-data
xmlns="
http://www.netbeans.org/ns/freeform-project/1">
+ <name>ImageFrame</name>
+ </general-data>
+ <general-data
xmlns="
http://www.netbeans.org/ns/freeform-project/2">
+ <!-- Do not use Project Properties customizer when editing
this file manually. -->
+ <name>ImageFrame</name>
+ <properties/>
+ <folders>
+ <source-folder>
+ <label>wonderland-sample-module</label>
+ <location>.</location>
+ <encoding>UTF-8</encoding>
+ </source-folder>
+ <source-folder>
+ <label>src/classes</label>
+ <type>java</type>
+ <location>src/classes</location>
+ <encoding>UTF-8</encoding>
+ </source-folder>
+ </folders>
+ <ide-actions>
+ <action name="build">
+ <target>package</target>
+ </action>
+ <action name="clean">
+ <target>clean</target>
+ </action>
+ <action name="rebuild">
+ <target>clean</target>
+ <target>package</target>
+ </action>
+ </ide-actions>
+ <view>
+ <items>
+ <source-folder style="packages">
+ <label>src/classes</label>
+ <location>src/classes</location>
+ </source-folder>
+ <source-file>
+ <location>build.xml</location>
+ </source-file>
+ <source-file>
+ <location>my.module.properties</location>
+ </source-file>
+ </items>
+ <context-menu>
+ <ide-action name="build"/>
+ <ide-action name="rebuild"/>
+ <ide-action name="clean"/>
+ <action>
+ <label>Deploy Module to Server</label>
+ <target>deploy</target>
+ </action>
+ </context-menu>
+ </view>
+ <subprojects/>
+ </general-data>
+ <java-data
xmlns="
http://www.netbeans.org/ns/freeform-project-java/1">
+ <compilation-unit>
+ <package-root>src/classes</package-root>
+ <classpath
mode="compile">../../../wonderland\core\ext\common\mtgame.jar;../../../wonderland\core\ext\jme20\target\jme.jar;../../../wonderland\core\ext\sgs\sgs-server-dist-0.9.10\lib\sgs-server-api-0.9.10.jar;../../../wonderland\core\ext\sgs\sgs-server-dist-0.9.10\lib\sgs-shared-1.7.jar;../../../wonderland\core\build\lib\wonderland-client.jar;../../../wonderland\core\build\lib\wonderland-common.jar;../../../wonderland\core\build\lib\wonderland-server.jar;../../../wonderland\core\ext\common\swing-layout-1.0.jar;../../../wonderland\core\ext\common\swing-worker-1.2.jar;../../../wonderland\modules\foundation\sharedstate\build\client\sharedstate-client.jar;../../../wonderland\modules\foundation\sharedstate\build\server\sharedstate-server.jar;../../../wonderland-modules\stable\image-viewer\build\client\imageviewer-client.jar</classpath>
+ <source-level>1.5</source-level>
+ </compilation-unit>
+ </java-data>
+ </configuration>
+</project>
=======================================
***Additional files exist in this changeset.***