Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class CharBean
- {
- double textAdjXPos; //Text adjusted X-position of character
- double textAdjYPos; //Text adjusted Y-position
- double fontSize; //Font size
- double xScale; //x-scale
- double textHeight; //Maximum height of all characters in the string
- double textSpace; //Width of the whitespace character
- double textWidth; //Text direction adjusted string width
- String character; //The character itself
- public CharBean(String container)
- {
- String[] values = container.split(",");
- int i = 0;
- this.textAdjXPos = Double.parseDouble(values[i++]);
- this.textAdjYPos = Double.parseDouble(values[i++]);
- this.fontSize = Double.parseDouble(values[i++]);
- this.xScale = Double.parseDouble(values[i++]);
- this.textHeight = Double.parseDouble(values[i++]);
- this.textSpace = Double.parseDouble(values[i++]);
- this.textWidth = Double.parseDouble(values[i++]);
- this.character = values[i];
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement