Class TextCanvas
java.lang.Object
eu.svjatoslav.sixth.e3d.renderer.raster.shapes.AbstractShape
eu.svjatoslav.sixth.e3d.renderer.raster.shapes.composite.base.AbstractCompositeShape
eu.svjatoslav.sixth.e3d.renderer.raster.shapes.composite.TexturedRectangle
eu.svjatoslav.sixth.e3d.renderer.raster.shapes.composite.textcanvas.TextCanvas
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Fontstatic final intFont character height in world coordinates.static final intFont character height in texture pixels.static final intFont character width in world coordinates.static final intFont character width in texture pixels.Fields inherited from class eu.svjatoslav.sixth.e3d.renderer.raster.shapes.composite.TexturedRectangle
bottomLeft, bottomRight, textureBottomLeft, textureBottomRight, textureTopLeft, textureTopRight, topLeft, topRightFields inherited from class eu.svjatoslav.sixth.e3d.renderer.raster.shapes.AbstractShape
mouseInteractionController -
Constructor Summary
ConstructorsConstructorDescriptionTextCanvas(Transform location, TextPointer dimensions, Color foregroundColor, Color backgroundColor) TextCanvas(Transform location, String text, Color foregroundColor, Color backgroundColor) -
Method Summary
Modifier and TypeMethodDescriptionvoidbeforeTransformHook(TransformsStack transformPipe, RenderingContext context) This method should be overridden by anyone wanting to customize shape before it is rendered.voidclear()getCharLocation(int row, int column) getSize()static TextPointergetTextDimensions(String text) voidlocate(int row, int column) voidvoidputChar(char character) voidputChar(int row, int column, char character) voidputChar(TextPointer location, char character) voidsetBackgroundColor(Color backgroundColor) voidsetForegroundColor(Color foregroundColor) voidvoidsetTextColor(Color color) Methods inherited from class eu.svjatoslav.sixth.e3d.renderer.raster.shapes.composite.TexturedRectangle
getTexture, initializeMethods inherited from class eu.svjatoslav.sixth.e3d.renderer.raster.shapes.composite.base.AbstractCompositeShape
addShape, addShape, getGroup, getLocation, getOriginalSubShapes, getRelativityTracker, hideGroup, removeGroup, setColor, setGroupForUngrouped, setMouseInteractionController, setTransform, showGroup, transform
-
Field Details
-
FONT_CHAR_WIDTH
public static final int FONT_CHAR_WIDTHFont character width in world coordinates.- See Also:
-
FONT_CHAR_HEIGHT
public static final int FONT_CHAR_HEIGHTFont character height in world coordinates.- See Also:
-
FONT_CHAR_WIDTH_TEXTURE_PIXELS
public static final int FONT_CHAR_WIDTH_TEXTURE_PIXELSFont character width in texture pixels.- See Also:
-
FONT_CHAR_HEIGHT_TEXTURE_PIXELS
public static final int FONT_CHAR_HEIGHT_TEXTURE_PIXELSFont character height in texture pixels.- See Also:
-
FONT
-
-
Constructor Details
-
TextCanvas
-
TextCanvas
public TextCanvas(Transform location, TextPointer dimensions, Color foregroundColor, Color backgroundColor)
-
-
Method Details
-
getTextDimensions
-
beforeTransformHook
Description copied from class:AbstractCompositeShapeThis method should be overridden by anyone wanting to customize shape before it is rendered.- Overrides:
beforeTransformHookin classAbstractCompositeShape
-
clear
public void clear() -
getCharLocation
-
getSize
-
locate
public void locate(int row, int column) -
print
-
putChar
public void putChar(char character) -
putChar
public void putChar(int row, int column, char character) -
putChar
-
setBackgroundColor
-
setForegroundColor
-
setText
-
setTextColor
-