From d4650d2a2e3df939a40c81274fc24122109af3d6 Mon Sep 17 00:00:00 2001 From: paulby Date: Fri, 26 Jan 2007 19:19:51 +0000 Subject: 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 --- .../com/sun/j3d/utils/universe/SimpleUniverse.java | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) 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 @@ -157,6 +157,32 @@ public class SimpleUniverse extends VirtualUniverse { this(null, numTransforms, canvas, null); } + /** + * 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. -- cgit v1.2.3