[x3d-public] X3DJSAIL. Still unresolved. Using string constants for MFStrings.

yottzumm at gmail.com yottzumm at gmail.com
Thu Feb 2 06:19:23 PST 2017


I am using String constants for MFStrings now, in X3DJSAIL.  I get the following error:

CoordinateAxes
Exception in thread "main" org.web3d.x3d.sai.InvalidFieldValueException: FontStyle justify newValue="["MIDDLE" "MIDDLE"]" has illegal value, must use a valid enumeration string.^M
        at org.web3d.x3d.java.Text.FontStyleObject.setJustify(FontStyleObject.java:604)^M
        at CoordinateAxes.main(CoordinateAxes.java:135)^

For:

                 FontStyleObject FontStyle0_0_0_4_3_0_0_2_0 = new FontStyleObje ct();
                  Text0_0_0_4_3_0_0_2.setFontStyle(FontStyle0_0_0_4_3_0_0_2_0);
                  FontStyle0_0_0_4_3_0_0_2_0.setDEF("LABEL_FONT");
                  FontStyle0_0_0_4_3_0_0_2_0.setFamily(new String[] {"\"SANS\""}  );
                  FontStyle0_0_0_4_3_0_0_2_0.setJustify(new String[] {"\"MIDDLE\” \"MIDDLE\""});
                  FontStyle0_0_0_4_3_0_0_2_0.setSize(0.2f);

Full source attached.  There is still an issue with passing in a string array.

John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170202/0ba91bc2/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CoordinateAxes.java
Type: application/octet-stream
Size: 13833 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170202/0ba91bc2/attachment.obj>


More information about the x3d-public mailing list