public interface Text extends VisualizationItem<Text>
Modifier and Type | Method and Description |
---|---|
static Text |
create(ARGBColor color,
Vector3d normal,
Vector3d up,
Vector3d location,
double horizontalScaling,
double verticalScaling,
String text,
float size)
Creates a text visualization without any affine transformation (identity transformation).
|
double |
getHorizontalScale()
Returns the horizontal scale factor of the displayed text.
|
float |
getSize()
Returns the font size to visualize.
|
String |
getText()
Returns text to visualize.
|
double |
getVerticalScale()
Returns the vertical scale factor of the displayed text.
|
createAngle, createArea, createBoundingBox, createDimension, getColor, withColor
static Text create(ARGBColor color, Vector3d normal, Vector3d up, Vector3d location, double horizontalScaling, double verticalScaling, String text, float size)
color
- color of the displayed text with transparencynormal
- a vector indicating where the text faces in 3D spaceup
- a vector whose orthogonal-to-normal (orthogonal to the facing direction given by normal) component
indicates the 'up' direction of the textlocation
- the center of the text in 3D spacehorizontalScaling
- non-negative horizontal scaling to adjust the horizontal size of the textverticalScaling
- non-negative vertical scaling to adjust the vertical size of the texttext
- the text to be displayedsize
- the font size of the displayed textIllegalArgumentException
- if the horizontal or vertical scaling factors is negativeString getText()
float getSize()
double getHorizontalScale()
double getVerticalScale()
Copyright © 2019 Solibri, Inc.. All rights reserved.