Class Text
- java.lang.Object
- 
- jadex.extension.envsupport.observer.graphics.drawable.AbstractVisual2D
- 
- jadex.extension.envsupport.observer.graphics.drawable.Primitive
- 
- jadex.extension.envsupport.observer.graphics.drawable.Text
 
 
 
- 
 public final class Text extends Primitive Drawable component for displaying text.
- 
- 
Field SummaryFields Modifier and Type Field Description static floatBASE_VIEWPORT_SIZEViewport size (in pixels) on which the base font size is relative to- 
Fields inherited from class jadex.extension.envsupport.observer.graphics.drawable.PrimitiveABSOLUTE_POSITION, ABSOLUTE_ROTATION, ABSOLUTE_SIZE, ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_LEFT, ALIGN_MIDDLE, ALIGN_RIGHT, ALIGN_TOP, color_, drawcondition, enableDCPos, enableDCRot, enableDCSize, halign, PRIMITIVE_TYPE_ELLIPSE, PRIMITIVE_TYPE_RECTANGLE, PRIMITIVE_TYPE_REGULARPOLYGON, PRIMITIVE_TYPE_TEXT, PRIMITIVE_TYPE_TEXTUREDRECTANGLE, PRIMITIVE_TYPE_TRIANGLE, renderinfos, type, valign
 
- 
 - 
Constructor SummaryConstructors Constructor Description Text()The condition deciding if the drawable should be drawn.Text(java.lang.Object position, java.awt.Font baseFont, java.awt.Color color, java.lang.String text, int halign, int valign, int absFlags, IParsedExpression drawcondition)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.FontgetBaseFont()static IVector2getBasePosition(AbstractViewport vp, IVector2 dcPos, IVector2 position, IVector2 canvasSize, boolean invX, boolean invY)static floatgetBasicFontScale(IVector2 canvasSize, IVector2 areaSize, IVector2 size)static java.lang.StringgetReplacedText(DrawableCombiner dc, java.lang.Object obj, java.lang.String text, IViewport vp)java.lang.StringgetText()doublegetTextHAlignment(java.awt.font.TextLayout tl)- 
Methods inherited from class jadex.extension.envsupport.observer.graphics.drawable.PrimitiveenableAbsolutePosition, enableAbsoluteRotation, enableAbsoluteSize, flushRenderInfo, getColor, getDrawCondition, getHAlign, getRenderInfo, getType, getVAlign, isRelativePosition, isRelativeRotation, isRelativeSize, setColor, setDrawCondition, setHAlign, setRenderInfo, setType, setVAlign
 - 
Methods inherited from class jadex.extension.envsupport.observer.graphics.drawable.AbstractVisual2DbindPosition, bindRotation, bindSize, getPosition, getRotation, getSize, setPosition, setRotation, setSize
 
- 
 
- 
- 
- 
Field Detail- 
BASE_VIEWPORT_SIZEpublic static final float BASE_VIEWPORT_SIZE Viewport size (in pixels) on which the base font size is relative to- See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
Textpublic Text() The condition deciding if the drawable should be drawn.
 - 
Textpublic Text(java.lang.Object position, java.awt.Font baseFont, java.awt.Color color, java.lang.String text, int halign, int valign, int absFlags, IParsedExpression drawcondition)
 
- 
 - 
Method Detail- 
getBaseFontpublic java.awt.Font getBaseFont() 
 - 
getTextpublic java.lang.String getText() 
 - 
getTextHAlignmentpublic double getTextHAlignment(java.awt.font.TextLayout tl) 
 - 
getBasePositionpublic static final IVector2 getBasePosition(AbstractViewport vp, IVector2 dcPos, IVector2 position, IVector2 canvasSize, boolean invX, boolean invY) 
 - 
getBasicFontScalepublic static final float getBasicFontScale(IVector2 canvasSize, IVector2 areaSize, IVector2 size) 
 - 
getReplacedTextpublic static final java.lang.String getReplacedText(DrawableCombiner dc, java.lang.Object obj, java.lang.String text, IViewport vp) 
 
- 
 
-