Graphics: fix datatip rendering after 5f1861ec 25/19025/3
Clément DAVID [Wed, 1 Feb 2017 15:16:21 +0000 (16:16 +0100)]
Change-Id: I4b07102f92165d65c39d04ee94efcd8b0e3e8dfe

scilab/modules/graphic_objects/src/java/org/scilab/modules/graphic_objects/datatip/Datatip.java
scilab/modules/graphics/help/en_US/datatips/datatipGetStruct.xml
scilab/modules/graphics/help/ja_JP/datatips/datatipGetStruct.xml

index 7b30c75..d826cf6 100755 (executable)
@@ -112,7 +112,7 @@ public class Datatip extends Text {
         displayComponents = "xy";
         autoOrientation = true;
         setOrientationAsEnum(TipOrientation.TOP_RIGHT);
-        tipTextFormat = new DecimalFormat("%g", DecimalFormatSymbols.getInstance(Locale.US));
+        tipTextFormat = new DecimalFormat("#,###.###", DecimalFormatSymbols.getInstance(Locale.US));
 
         detachedMode = false;
         detachedPosition = new Double[] {0.0, 0.0, 0.0};
index 68196fc..924f1ef 100644 (file)
@@ -67,7 +67,7 @@
     datatipCreate(p,50);
     datatipCreate(p,20);
     datatips_struct=datatipGetStruct(p)
-    datatips_struct.formatfunction
+    datatips_struct.display_function
     ]]></programlisting>
         <scilab:image>
             x=linspace(0,1,100)';
index d00554e..aa3debf 100644 (file)
 
     datatips_struct=datatipGetStruct(p)
 
-    datatips_struct.formatfunction
+    datatips_struct.display_function
 
     ]]></programlisting>