summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpaulby <[email protected]>2007-01-26 19:19:51 +0000
committerpaulby <[email protected]>2007-01-26 19:19:51 +0000
commitd4650d2a2e3df939a40c81274fc24122109af3d6 (patch)
treecbe70a9a19daf91d772e3614dc9b5264ff92bdf9
parentb061b1590bd702871d09ec60e33831a2af65ec38 (diff)
Implement RFE 438, add constructor that takes LocaleFactory along with Canvas3D
git-svn-id: https://svn.java.net/svn/j3d-core-utils~svn/trunk@148 9497e636-51bd-65ba-982d-a4982e1767a5
-rw-r--r--src/classes/share/com/sun/j3d/utils/universe/SimpleUniverse.java26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/classes/share/com/sun/j3d/utils/universe/SimpleUniverse.java b/src/classes/share/com/sun/j3d/utils/universe/SimpleUniverse.java
index 4e0d625..ab22a3b 100644
--- a/src/classes/share/com/sun/j3d/utils/universe/SimpleUniverse.java
+++ b/src/classes/share/com/sun/j3d/utils/universe/SimpleUniverse.java
@@ -158,6 +158,32 @@ public class SimpleUniverse extends VirtualUniverse {
}
/**
+ * Creates a locale, a single ViewingPlatform, and a Viewer object
+ * The Viewer object uses default values for everything but the canvas.
+ * The ViewingPlatform is created with the specified number of
+ * TransformGroups.
+ *
+ * @param canvas The canvas to associate with the Viewer object. Passing
+ * in null will cause this parameter to be ignored and a canvas to be
+ * created by the utility.
+ * @param numTransforms The number of transforms to be in the
+ * MultiTransformGroup object.
+ * @param localeFactory Factory for creating the locale
+ *
+ * @see Locale
+ * @see Viewer
+ * @see ViewingPlatform
+ * @see MultiTransformGroup
+ *
+ * @since Java 3D 1.5.1
+ */
+ public SimpleUniverse(Canvas3D canvas, int numTransforms, LocaleFactory localeFactory) {
+ // call main constructor with default values except canvas,
+ // numTransforms and localeFactory
+ this(null, numTransforms, canvas, null, localeFactory);
+ }
+
+ /**
* Creates the "view" side of the scene graph. The passed in parameters
* override the default values where appropriate.
*