| java.lang.Object | ||
| ↳ | casmi.graphics.element.Element | |
| ↳ | casmi.graphics.element.Text | |
Text class. Wrap JOGL and make it easy to use.
|
[Expand]
Inherited Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
casmi.graphics.element.Element
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new Text object.
| |||||||||||
Creates a new Text object using letters to be displayed.
| |||||||||||
Creates a new Text object using letters to be displayed, and Font.
| |||||||||||
Creates a new Text object using letters to be displayed, x,y-coordinate.
| |||||||||||
Creates a new Text object using letters to be displayed, x,y-coordinate and Font.
| |||||||||||
Creates a new Text object using letters to be displayed, x,y,z-coordinate.
| |||||||||||
Creates a new Text object using letters to be displayed, x,y,z-coordinate and Font.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Returns the current alignment for drawing text.
| |||||||||||
Returns ascent of the current font at its current size.
| |||||||||||
Returns ascent of the current font at its current size and line.
| |||||||||||
Returns descent of the current font at its current size.
| |||||||||||
Returns descent of the current font at its current size and line.
| |||||||||||
Returns the Font of this Text.
| |||||||||||
Returns letter's height of the current font at its current size and line.
| |||||||||||
Returns letter's height of the current font at its current size.
| |||||||||||
Returns the TextLayout of this Text.
| |||||||||||
Returns the TextLayout of the i line.
| |||||||||||
Returns the leading of this letters.
| |||||||||||
Returns the TextRenderer of this Text.
| |||||||||||
Returns the letters of this Text.
| |||||||||||
Returns letter's width of the current font at its current size and line.
| |||||||||||
Returns letter's width of the current font at its current size.
| |||||||||||
Check texture is enable or not.
| |||||||||||
Sets the current alignment for drawing text.
| |||||||||||
Sets the Font of this Text.
| |||||||||||
Sets the letters of this Text.
| |||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
casmi.graphics.element.Element
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
casmi.graphics.object.Renderable
| |||||||||||
From interface
casmi.graphics.object.Resettable
| |||||||||||
Creates a new Text object.
Creates a new Text object using letters to be displayed.
| text | The letters to be displayed. |
|---|
Creates a new Text object using letters to be displayed, and Font.
| text | The letters to be displayed. |
|---|---|
| font | The font of text. |
Creates a new Text object using letters to be displayed, x,y-coordinate.
| text | The letters to be displayed. |
|---|---|
| x | The x-coordinate of text. |
| y | The y-coordinate of text. |
Creates a new Text object using letters to be displayed, x,y-coordinate and Font.
| text | The letters to be displayed. |
|---|---|
| font | The font of text. |
| x | The x-coordinate of text. |
| y | The y-coordinate of text. |
Creates a new Text object using letters to be displayed, x,y,z-coordinate.
| text | The letters to be displayed. |
|---|---|
| x | The x-coordinate of text. |
| y | The y-coordinate of text. |
| z | The z-coordinate of text. |
Creates a new Text object using letters to be displayed, x,y,z-coordinate and Font.
| text | The letters to be displayed. |
|---|---|
| font | The font of text. |
| x | The x-coordinate of text. |
| y | The y-coordinate of text. |
| z | The z-coordinate of text. |
Returns the current alignment for drawing text. The parameters LEFT, CENTER, and RIGHT set the display characteristics of the letters in relation to the values for the x and y parameters of the text() function.
Returns ascent of the current font at its current size.
Returns ascent of the current font at its current size and line.
| line | The number of lines. |
|---|
Returns descent of the current font at its current size.
Returns descent of the current font at its current size and line.
| line | The number of lines. |
|---|
Returns letter's height of the current font at its current size and line.
| line | The number of lines. |
|---|
| GLException | If the textRenderer is not valid; calls the reset method and creates a new textRenderer. |
|---|
Returns letter's height of the current font at its current size.
Returns the TextLayout of this Text.
Returns the TextLayout of the i line.
| line | The number of lines. |
|---|
Returns the leading of this letters.
Returns the TextRenderer of this Text.
Returns letter's width of the current font at its current size and line.
| line | The number of lines. |
|---|
| GLException | If the textRenderer is not valid; calls the reset method and creates a new textRenderer. |
|---|
Returns letter's width of the current font at its current size.
Check texture is enable or not.
Sets the current alignment for drawing text. The parameters LEFT, CENTER, and RIGHT set the display characteristics of the letters in relation to the values for the x and y parameters of the text() function.
| align | Either LEFT, CENTER or LIGHT. |
|---|
Sets the Font of this Text.
| font | The Font of the Text. |
|---|
Sets the letters of this Text.
| str | The letters to be displayed. |
|---|