public class

TextBox

extends Element
java.lang.Object
   ↳ casmi.graphics.element.Element
     ↳ casmi.graphics.element.TextBox

Class Overview

Text class. Wrap JOGL and make it easy to use.

Summary

[Expand]
Inherited Fields
From class casmi.graphics.element.Element
Public Constructors
TextBox(Text text, double width, double height)
Creates a new TextBox using Text, width and height.
TextBox(Text text, double x, double y, double width, double height)
Creates a new TextBox using Text, x,y-coordinate, width and height.
TextBox(Text text, double x, double y, double z, double width, double height)
Creates a new TextBox using Text, x,y,z-coordinate, width and height.
Public Methods
final double getHeight()
final Text getText()
final double getWidth()
final double getX()
Gets x-coordinate of the Element.
void render(GL2 gl, GLU glu, int width, int height, boolean selection)
void reset(GL2 gl)
final void setHeight(double height)
final void setText(Text text)
final void setWidth(double width)
[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

Public Constructors

public TextBox (Text text, double width, double height)

Creates a new TextBox using Text, width and height.

Parameters
text The content of the TextBox.
width The width of the TextBox.
height The height of the TextBox.

public TextBox (Text text, double x, double y, double width, double height)

Creates a new TextBox using Text, x,y-coordinate, width and height.

Parameters
text The content of the TextBox.
x The x-coordinate of the TextBox.
y The y-coordinate of the TextBox.
width The width of the TextBox.
height The height of the TextBox.

public TextBox (Text text, double x, double y, double z, double width, double height)

Creates a new TextBox using Text, x,y,z-coordinate, width and height.

Parameters
text The content of the TextBox.
x The x-coordinate of the TextBox.
y The y-coordinate of the TextBox.
z The y-coordinate of the TextBox.
width The width of the TextBox.
height The height of the TextBox.

Public Methods

public final double getHeight ()

public final Text getText ()

public final double getWidth ()

public final double getX ()

Gets x-coordinate of the Element.

Returns
  • x-coordinate

public void render (GL2 gl, GLU glu, int width, int height, boolean selection)

public void reset (GL2 gl)

public final void setHeight (double height)

public final void setText (Text text)

public final void setWidth (double width)