|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.scenegraph.SceneGraphObject
org.xith3d.scenegraph.Node
org.xith3d.scenegraph.Leaf
org.xith3d.scenegraph.Shape3D
org.xith3d.scenegraph.primitives.Quad
org.xith3d.scenegraph.primitives.Rectangle
org.xith3d.scenegraph.primitives.TextRectangle
public class TextRectangle
The TextRectangle is a Rectangle with a text-Texture on it.
The Texture is created by TextureCreator.createTexture(String, Colorf, java.awt.Font, int).
TextureCreator.createTexture(String, Colorf, java.awt.Font, int)| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.xith3d.scenegraph.primitives.Rectangle |
|---|
Rectangle.ZeroPointLocation |
| Field Summary | |
|---|---|
static int |
TEXT_ALIGNMENT_HORIZONTAL_CENTER
|
static int |
TEXT_ALIGNMENT_HORIZONTAL_LEFT
|
static int |
TEXT_ALIGNMENT_HORIZONTAL_RIGHT
|
| Fields inherited from class org.xith3d.scenegraph.Node |
|---|
bounds, boundsAutoCompute, boundsDirty, globalIgnoreBounds, instanceBoundsTypeHint, parent, transformGroup, untransformedBounds |
| Fields inherited from class org.xith3d.scenegraph.SceneGraphObject |
|---|
XITH3D_USERDATAKEY_OLDUSERDATA |
| Constructor Summary | |
|---|---|
protected |
TextRectangle(float width,
float height,
Rectangle.ZeroPointLocation zpl,
float zOffset,
Texture texture)
Creates a TextRectangle. |
protected |
TextRectangle(float width,
float height,
org.openmali.vecmath2.Tuple3f offset,
Texture texture)
Creates a TextRectangle. |
| Method Summary | |
|---|---|
static TextRectangle |
createFixedHeight(float height,
float zOffset,
java.lang.String text,
org.openmali.vecmath2.Colorf color,
java.awt.Font font)
Creates a TextRectangle. |
static TextRectangle |
createFixedHeight(float height,
float zOffset,
java.lang.String text,
org.openmali.vecmath2.Colorf color,
java.awt.Font font,
int alignment)
Creates a TextRectangle. |
static TextRectangle |
createFixedHeight(float height,
Rectangle.ZeroPointLocation zpl,
float zOffset,
java.lang.String text,
org.openmali.vecmath2.Colorf color,
java.awt.Font font)
Creates a TextRectangle. |
static TextRectangle |
createFixedHeight(float height,
Rectangle.ZeroPointLocation zpl,
float zOffset,
java.lang.String text,
org.openmali.vecmath2.Colorf color,
java.awt.Font font,
int alignment)
Creates a TextRectangle. |
static TextRectangle |
createFixedHeight(float height,
Rectangle.ZeroPointLocation zpl,
java.lang.String text,
org.openmali.vecmath2.Colorf color,
java.awt.Font font,
int alignment)
Creates a TextRectangle. |
static TextRectangle |
createFixedHeight(float height,
java.lang.String text,
org.openmali.vecmath2.Colorf color,
java.awt.Font font)
Creates a TextRectangle. |
static TextRectangle |
createFixedHeight(float height,
java.lang.String text,
org.openmali.vecmath2.Colorf color,
java.awt.Font font,
int alignment)
Creates a TextRectangle. |
static TextRectangle |
createFixedHeight(float height,
org.openmali.vecmath2.Tuple3f offset,
java.lang.String text,
org.openmali.vecmath2.Colorf color,
java.awt.Font font)
Creates a TextRectangle. |
static TextRectangle |
createFixedHeight(float height,
org.openmali.vecmath2.Tuple3f offset,
java.lang.String text,
org.openmali.vecmath2.Colorf color,
java.awt.Font font,
int alignment)
Creates a TextRectangle. |
static TextRectangle |
createFixedHeight(java.lang.String text,
org.openmali.vecmath2.Colorf color,
java.awt.Font font,
float height,
Rectangle.ZeroPointLocation zpl)
Creates a TextRectangle. |
static TextRectangle |
createFixedWidth(float width,
float zOffset,
java.lang.String text,
org.openmali.vecmath2.Colorf color,
java.awt.Font font)
Creates a TextRectangle. |
static TextRectangle |
createFixedWidth(float width,
float zOffset,
java.lang.String text,
org.openmali.vecmath2.Colorf color,
java.awt.Font font,
int alignment)
Creates a TextRectangle. |
static TextRectangle |
createFixedWidth(float width,
Rectangle.ZeroPointLocation zpl,
float zOffset,
java.lang.String text,
org.openmali.vecmath2.Colorf color,
java.awt.Font font)
Creates a TextRectangle. |
static TextRectangle |
createFixedWidth(float width,
Rectangle.ZeroPointLocation zpl,
float zOffset,
java.lang.String text,
org.openmali.vecmath2.Colorf color,
java.awt.Font font,
int alignment)
Creates a TextRectangle. |
static TextRectangle |
createFixedWidth(float width,
Rectangle.ZeroPointLocation zpl,
java.lang.String text,
org.openmali.vecmath2.Colorf color,
java.awt.Font font)
Creates a TextRectangle. |
static TextRectangle |
createFixedWidth(float width,
Rectangle.ZeroPointLocation zpl,
java.lang.String text,
org.openmali.vecmath2.Colorf color,
java.awt.Font font,
int alignment)
Creates a TextRectangle. |
static TextRectangle |
createFixedWidth(float width,
java.lang.String text,
org.openmali.vecmath2.Colorf color,
java.awt.Font font)
Creates a TextRectangle. |
static TextRectangle |
createFixedWidth(float width,
java.lang.String text,
org.openmali.vecmath2.Colorf color,
java.awt.Font font,
int alignment)
Creates a TextRectangle. |
static TextRectangle |
createFixedWidth(float width,
org.openmali.vecmath2.Tuple3f offset,
java.lang.String text,
org.openmali.vecmath2.Colorf color,
java.awt.Font font)
Creates a TextRectangle. |
static TextRectangle |
createFixedWidth(float width,
org.openmali.vecmath2.Tuple3f offset,
java.lang.String text,
org.openmali.vecmath2.Colorf color,
java.awt.Font font,
int alignment)
Creates a TextRectangle. |
protected static float |
getHeightFromFixedWidth(float width,
Texture texture)
|
java.lang.String |
getText()
|
int |
getTextAlignment()
|
org.openmali.vecmath2.Colorf |
getTextColor()
|
java.awt.Font |
getTextFont()
|
protected static float |
getWidthFromFixedHeight(float height,
Texture texture)
|
void |
setText(java.lang.String text)
Sets the new text for this TextRectangle. |
void |
setText(java.lang.String text,
org.openmali.vecmath2.Colorf color,
java.awt.Font font,
int alignment)
Sets the new text for this TextRectangle. |
| Methods inherited from class org.xith3d.scenegraph.primitives.Quad |
|---|
createGeometry, generateNormals, getAlpha, getColor, getGeometry, setAlpha, setColor, setTexture, setTexture, setTexture, setTextureCoordinates, setTexturePosition, setVertexCoords, setVertexCoords, setVertexCoords, update, update |
| Methods inherited from class org.xith3d.scenegraph.Shape3D |
|---|
absorbDetails, freeOpenGLResources, getAppearance, getAppearance, isBumpMappingEnabled, isShadowReceiver, isVisible, newAppearance, setAppearance, setBounds, setBumpMappingEnabled, setBumpMappingEnabled, setGeometry, setIsShadowReceiver, setLive, setModListener, setVisible, sharedCopy, sharedCopy, traverse, updateBounds, updateBoundsCheap, updateWorldTransform, verifyAppChange |
| Methods inherited from class org.xith3d.scenegraph.Leaf |
|---|
dump, getPickHost, setPickHost |
| Methods inherited from class org.xith3d.scenegraph.SceneGraphObject |
|---|
getName, getUserData, getUserData, getUserDataMap, isLive, setName, setUserData, setUserData, setUserDataRecursive, setUserDataRecursive, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int TEXT_ALIGNMENT_HORIZONTAL_LEFT
public static final int TEXT_ALIGNMENT_HORIZONTAL_CENTER
public static final int TEXT_ALIGNMENT_HORIZONTAL_RIGHT
| Constructor Detail |
|---|
protected TextRectangle(float width,
float height,
org.openmali.vecmath2.Tuple3f offset,
Texture texture)
texture - the text-texture to applywidth - width of the Rectangleheight - height of the Rectangleoffset - relative Location of the Rectangle
protected TextRectangle(float width,
float height,
Rectangle.ZeroPointLocation zpl,
float zOffset,
Texture texture)
width - width of the Rectangleheight - height of the Rectanglezpl - the location of the point (0, 0, 0)zOffset - relative z-Location of the Rectangletexture - the text-texture to apply| Method Detail |
|---|
public void setText(java.lang.String text,
org.openmali.vecmath2.Colorf color,
java.awt.Font font,
int alignment)
text - new new textcolor - the new text-colorfont - the new font to use for the textalignment - the text horizontal alignmentpublic void setText(java.lang.String text)
text - new new textpublic java.lang.String getText()
public org.openmali.vecmath2.Colorf getTextColor()
public java.awt.Font getTextFont()
public int getTextAlignment()
protected static float getHeightFromFixedWidth(float width,
Texture texture)
protected static float getWidthFromFixedHeight(float height,
Texture texture)
public static TextRectangle createFixedWidth(float width,
org.openmali.vecmath2.Tuple3f offset,
java.lang.String text,
org.openmali.vecmath2.Colorf color,
java.awt.Font font,
int alignment)
width - (fixed) width of the Rectangleoffset - relative Location of the Rectangletext - the text to render on the Rectanglecolor - the color to use for the textfont - the Font to use for the textalignment - the text horizontal alignment
public static TextRectangle createFixedWidth(float width,
float zOffset,
java.lang.String text,
org.openmali.vecmath2.Colorf color,
java.awt.Font font,
int alignment)
width - (fixed) width of the RectanglezOffset - relative z-Location of the Rectangletext - the text to render on the Rectanglecolor - the color to use for the textfont - the Font to use for the textalignment - the text horizontal alignment
public static TextRectangle createFixedWidth(float width,
java.lang.String text,
org.openmali.vecmath2.Colorf color,
java.awt.Font font,
int alignment)
width - (fixed) width of the Rectangletext - the text to render on the Rectanglecolor - the color to use for the textfont - the Font to use for the textalignment - the text horizontal alignment
public static TextRectangle createFixedWidth(float width,
Rectangle.ZeroPointLocation zpl,
float zOffset,
java.lang.String text,
org.openmali.vecmath2.Colorf color,
java.awt.Font font,
int alignment)
width - (fixed) width of the Rectanglezpl - the location of the point (0, 0, 0)zOffset - relative z-Location of the Rectangletext - the text to render on the Rectanglecolor - the color to use for the textfont - the Font to use for the textalignment - the text horizontal alignment
public static TextRectangle createFixedWidth(float width,
Rectangle.ZeroPointLocation zpl,
java.lang.String text,
org.openmali.vecmath2.Colorf color,
java.awt.Font font,
int alignment)
width - (fixed) width of the Rectanglezpl - the location of the point (0, 0, 0)text - the text to render on the Rectanglecolor - the color to use for the textfont - the Font to use for the textalignment - the text horizontal alignment
public static TextRectangle createFixedWidth(float width,
org.openmali.vecmath2.Tuple3f offset,
java.lang.String text,
org.openmali.vecmath2.Colorf color,
java.awt.Font font)
width - (fixed) width of the Rectangleoffset - relative Location of the Rectangletext - the text to render on the Rectanglecolor - the color to use for the textfont - the Font to use for the text
public static TextRectangle createFixedWidth(float width,
float zOffset,
java.lang.String text,
org.openmali.vecmath2.Colorf color,
java.awt.Font font)
width - (fixed) width of the RectanglezOffset - relative z-Location of the Rectangletext - the text to render on the Rectanglecolor - the color to use for the textfont - the Font to use for the text
public static TextRectangle createFixedWidth(float width,
java.lang.String text,
org.openmali.vecmath2.Colorf color,
java.awt.Font font)
width - (fixed) width of the Rectangletext - the text to render on the Rectanglecolor - the color to use for the textfont - the Font to use for the text
public static TextRectangle createFixedWidth(float width,
Rectangle.ZeroPointLocation zpl,
float zOffset,
java.lang.String text,
org.openmali.vecmath2.Colorf color,
java.awt.Font font)
width - (fixed) width of the Rectanglezpl - the location of the point (0, 0, 0)zOffset - relative z-Location of the Rectangletext - the text to render on the Rectanglecolor - the color to use for the textfont - the Font to use for the text
public static TextRectangle createFixedWidth(float width,
Rectangle.ZeroPointLocation zpl,
java.lang.String text,
org.openmali.vecmath2.Colorf color,
java.awt.Font font)
width - (fixed) width of the Rectanglezpl - the location of the point (0, 0, 0)text - the text to render on the Rectanglecolor - the color to use for the textfont - the Font to use for the text
public static TextRectangle createFixedHeight(float height,
org.openmali.vecmath2.Tuple3f offset,
java.lang.String text,
org.openmali.vecmath2.Colorf color,
java.awt.Font font,
int alignment)
height - (fixed) height of the Rectangleoffset - relative Location of the Rectangletext - the text to render on the Rectanglecolor - the color to use for the textfont - the Font to use for the textalignment - the text horizontal alignment
public static TextRectangle createFixedHeight(float height,
float zOffset,
java.lang.String text,
org.openmali.vecmath2.Colorf color,
java.awt.Font font,
int alignment)
height - (fixed) height of the RectanglezOffset - relative z-Location of the Rectangletext - the text to render on the Rectanglecolor - the color to use for the textfont - the Font to use for the textalignment - the text horizontal alignment
public static TextRectangle createFixedHeight(float height,
java.lang.String text,
org.openmali.vecmath2.Colorf color,
java.awt.Font font,
int alignment)
height - (fixed) height of the Rectangletext - the text to render on the Rectanglecolor - the color to use for the textfont - the Font to use for the textalignment - the text horizontal alignment
public static TextRectangle createFixedHeight(float height,
Rectangle.ZeroPointLocation zpl,
float zOffset,
java.lang.String text,
org.openmali.vecmath2.Colorf color,
java.awt.Font font,
int alignment)
height - (fixed) height of the Rectanglezpl - the location of the point (0, 0, 0)zOffset - relative z-Location of the Rectangletext - the text to render on the Rectanglecolor - the color to use for the textfont - the Font to use for the textalignment - the text horizontal alignment
public static TextRectangle createFixedHeight(float height,
Rectangle.ZeroPointLocation zpl,
java.lang.String text,
org.openmali.vecmath2.Colorf color,
java.awt.Font font,
int alignment)
height - (fixed) height of the Rectanglezpl - the location of the point (0, 0, 0)text - the text to render on the Rectanglecolor - the color to use for the textfont - the Font to use for the textalignment - the text horizontal alignment
public static TextRectangle createFixedHeight(float height,
org.openmali.vecmath2.Tuple3f offset,
java.lang.String text,
org.openmali.vecmath2.Colorf color,
java.awt.Font font)
height - (fixed) height of the Rectangleoffset - relative Location of the Rectangletext - the text to render on the Rectanglecolor - the color to use for the textfont - the Font to use for the text
public static TextRectangle createFixedHeight(float height,
float zOffset,
java.lang.String text,
org.openmali.vecmath2.Colorf color,
java.awt.Font font)
height - (fixed) height of the RectanglezOffset - relative z-Location of the Rectangletext - the text to render on the Rectanglecolor - the color to use for the textfont - the Font to use for the text
public static TextRectangle createFixedHeight(float height,
java.lang.String text,
org.openmali.vecmath2.Colorf color,
java.awt.Font font)
height - (fixed) height of the Rectangletext - the text to render on the Rectanglecolor - the color to use for the textfont - the Font to use for the text
public static TextRectangle createFixedHeight(float height,
Rectangle.ZeroPointLocation zpl,
float zOffset,
java.lang.String text,
org.openmali.vecmath2.Colorf color,
java.awt.Font font)
height - (fixed) height of the Rectanglezpl - the location of the point (0, 0, 0)zOffset - relative z-Location of the Rectangletext - the text to render on the Rectanglecolor - the color to use for the textfont - the Font to use for the text
public static TextRectangle createFixedHeight(java.lang.String text,
org.openmali.vecmath2.Colorf color,
java.awt.Font font,
float height,
Rectangle.ZeroPointLocation zpl)
height - (fixed) height of the Rectanglezpl - the location of the point (0, 0, 0)text - the text to render on the Rectanglecolor - the color to use for the textfont - the Font to use for the text
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||