59 |
|
|
60 |
protected Object key; |
protected Object key; |
61 |
|
|
|
/** Same as another constructor but in GL side you can give the color |
|
|
* with string like "Color 1 0.5 0.5" |
|
|
* @param color OpenGL Color used to draw the text. |
|
|
*/ |
|
|
public TextVob(TextStyle style, String text, boolean baselined, String color) { |
|
|
this(style, text, baselined); |
|
|
this.textColor = color; |
|
|
} |
|
62 |
|
|
63 |
/** Create a new TextVob. |
/** Create a new TextVob. |
64 |
* @param style The textstyle to use. |
* @param style The textstyle to use. |
68 |
* If false, the text will be comfortably within the box. |
* If false, the text will be comfortably within the box. |
69 |
*/ |
*/ |
70 |
public TextVob(TextStyle style, String text, boolean baselined) { |
public TextVob(TextStyle style, String text, boolean baselined) { |
71 |
|
this(style, text, baselined, null); |
72 |
|
} |
73 |
|
|
74 |
|
/** Same as another constructor but in GL side you can give the color |
75 |
|
* with string like "Color 1 0.5 0.5" |
76 |
|
* @param color OpenGL Color used to draw the text. |
77 |
|
*/ |
78 |
|
public TextVob(TextStyle style, String text, boolean baselined, String color) { |
79 |
super(); |
super(); |
80 |
this.style = style; |
this.style = style; |
81 |
this.baselined = baselined; |
this.baselined = baselined; |
82 |
this.text = text; |
this.text = text; |
83 |
|
|
84 |
|
if (color != null) |
85 |
|
this.textColor = color; |
86 |
} |
} |
87 |
|
|
88 |
|
|
89 |
/** Create a non-baselined text vob. |
/** Create a non-baselined text vob. |
90 |
*/ |
*/ |
91 |
public TextVob(TextStyle style, String text) { |
public TextVob(TextStyle style, String text) { |
93 |
} |
} |
94 |
|
|
95 |
public TextVob(TextStyle style, String text, boolean baselined, Object key) { |
public TextVob(TextStyle style, String text, boolean baselined, Object key) { |
96 |
this(style, text, baselined); |
this(style, text, baselined, null); |
97 |
|
} |
98 |
|
public TextVob(TextStyle style, String text, boolean baselined, Object key, String color) { |
99 |
|
this(style, text, baselined, color); |
100 |
this.key = key; |
this.key = key; |
101 |
} |
} |
102 |
|
|