DecimalFormatSymbols decimalFormatSymbols = format.getDecimalFormatSymbols();
decimalFormatSymbols.setDecimalSeparator('.');
decimalFormatSymbols.setExponentSeparator("e");
+ decimalFormatSymbols.setGroupingSeparator('\u00A0');
format.setDecimalFormatSymbols(decimalFormatSymbols);
}
texture.setDrawer(new TextureDrawer() {
- @Override
- public void draw(TextureDrawingTools drawingTools) {
- drawingTools.draw(mantissaTextEntity, 0, exponentSize.height);
- drawingTools.draw(exponentTextEntity, mantissaSize.width, 0);
- }
-
- @Override
- public Dimension getTextureSize() {
- return new Dimension(
- exponentSize.width + mantissaSize.width,
- exponentSize.height + mantissaSize.height
- );
- }
-
- @Override
- public TextureDrawer.OriginPosition getOriginPosition() {
- return TextureDrawer.OriginPosition.UPPER_LEFT;
- }
- });
+ @Override
+ public void draw(TextureDrawingTools drawingTools) {
+ drawingTools.draw(mantissaTextEntity, 0, exponentSize.height);
+ drawingTools.draw(exponentTextEntity, mantissaSize.width, 0);
+ }
+
+ @Override
+ public Dimension getTextureSize() {
+ return new Dimension(
+ exponentSize.width + mantissaSize.width,
+ exponentSize.height + mantissaSize.height
+ );
+ }
+
+ @Override
+ public TextureDrawer.OriginPosition getOriginPosition() {
+ return TextureDrawer.OriginPosition.UPPER_LEFT;
+ }
+ });
return texture;
}
Texture texture = textureManager.createTexture();
texture.setDrawer(new TextureDrawer() {
- @Override
- public void draw(TextureDrawingTools drawingTools) {
- drawingTools.draw(textEntity, 0, 0);
- }
-
- @Override
- public Dimension getTextureSize() {
- return textEntity.getSize();
- }
-
- @Override
- public TextureDrawer.OriginPosition getOriginPosition() {
- return TextureDrawer.OriginPosition.UPPER_LEFT;
- }
- });
+ @Override
+ public void draw(TextureDrawingTools drawingTools) {
+ drawingTools.draw(textEntity, 0, 0);
+ }
+
+ @Override
+ public Dimension getTextureSize() {
+ return textEntity.getSize();
+ }
+
+ @Override
+ public TextureDrawer.OriginPosition getOriginPosition() {
+ return TextureDrawer.OriginPosition.UPPER_LEFT;
+ }
+ });
return texture;
}