private void processViewPlatforms(Collection c, int numTransforms) { Iterator i = c.iterator() ; while (i.hasNext()) { ConfigViewPlatform cvp = (ConfigViewPlatform)i.next() ; cvp.targetObject = cvp.createViewingPlatform(numTransforms) ; } }
syntaxError("Incorrect number of arguments to " + command.commandName) ; if (!isName(argv[2])) { syntaxError("The second argument to " + command.commandName + " must be a property name"); syntaxError("NominalViewingTransform must be a boolean") ; syntaxError("InitialViewingTransform must be a Matrix4d") ; syntaxError("ViewAttachPolicy must be a string") ; viewAttachPolicy = View.NOMINAL_FEET ; else syntaxError("Illegal value " + svalue + " for ViewAttachPolicy") ; syntaxError("ViewPlatformBehavior must be a name") ; syntaxError("value for AllowPolicyRead " + "must be a boolean") ; syntaxError("value for AllowLocalToVworldRead " + "must be a boolean") ; syntaxError("Unknown " + command.commandName + " \"" + attribute + "\"") ;
private void processViewPlatformBehaviors(Collection behaviors, Collection viewPlatforms, boolean attach) { Iterator i = behaviors.iterator() ; while (i.hasNext()) { ConfigViewPlatformBehavior b = (ConfigViewPlatformBehavior)i.next() ; b.targetObject = b.createViewPlatformBehavior() ; } // Process properties only after all behaviors are instantiated. i = behaviors.iterator() ; while (i.hasNext()) ((ConfigViewPlatformBehavior)i.next()).processProperties() ; // Attach behaviors to platforms after properties processed. if (attach && viewPlatforms != null) { i = viewPlatforms.iterator() ; while (i.hasNext()) ((ConfigViewPlatform)i.next()).processBehavior() ; } }
("ViewPlatform", (String)val) ; configViewPlatform.addConfigView(this) ;