[x3d-public] X3DJSAIL errors when compiling Java generated from X3D resourcesJSON examples. Needs work

John Carlson yottzumm at gmail.com
Thu Jan 26 18:08:08 PST 2017


I just think you should follow the principle of least astonishment.  Is the
array ever going to have multiple values?

Just thinking.

John

On Jan 26, 2017 3:24 PM, "Don Brutzman" <brutzman at nps.edu> wrote:

> On 1/26/2017 11:32 AM, yottzumm at gmail.com wrote:
>
>>  [...]
>>
>> I am not sure why you are creating a string array out of one element.  I
>> think this is more correct, but you can have it your way if you like:
>>
>> ./www_web3d_org/x3d/content/examples/X3dForWebAuthors/Chapte
>> r14_Prototypes/WhereAmIExample.java:
>> FontStyle0_2_15_0_0.setJustify(new String[] {"MIDDLE","MIDDLE"});
>>
>> Maybe support both the array (my way) and a X3D MFString (a single
>> String).
>>
>
> You should find that multiple type values are already available for a
> variety of getter and setter methods, for example String and String array
> and ArrayList<String> and MFString.  Also for outlier type conversions
> there are some utility functions in type objects SFString/MFString etc.
> that complement the rich set of features already available in Java types.
>
>         http://www.web3d.org/specifications/java/javadoc/index.html
>
>         http://www.web3d.org/specifications/java/javadoc/org/web3d/
> x3d/java/Text/FontStyleObject.html
>
>         http://www.web3d.org/specifications/java/javadoc/org/web3d/
> x3d/java/fields/package-summary.html
>
> all the best, Don
> --
> Don Brutzman  Naval Postgraduate School, Code USW/Br
> brutzman at nps.edu
> Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA
> +1.831.656.2149
> X3D graphics, virtual worlds, navy robotics http://faculty.nps.edu/brutzma
> n
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170126/3a1caa77/attachment.html>


More information about the x3d-public mailing list