public class PbMiscTextAttr extends PbBase implements java.lang.Cloneable
Modifier and Type | Class and Description |
---|---|
static class |
PbMiscTextAttr.LineLength |
static class |
PbMiscTextAttr.LineLengths |
Inventor.ConstructorCommand
Modifier and Type | Field and Description |
---|---|
static int |
LINE_LENGTH_MAX
Deprecated.
Use
PbMiscTextAttr.LineLengths.LINE_LENGTH_MAX instead. |
static int |
LINE_LENGTH_MIN
Deprecated.
Use
PbMiscTextAttr.LineLengths.LINE_LENGTH_MIN instead. |
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
PbMiscTextAttr() |
PbMiscTextAttr(PbMiscTextAttr miscTextAttr) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
void |
enablePredefinedProfile(boolean flag) |
void |
enableProfile(boolean flag) |
java.lang.String |
getFontName()
Gets the font name for texts.
|
PbMiscTextAttr.LineLength |
getLineLength()
Gets line length attributes.
|
boolean |
isPredefinedProfileEnabled()
Enables/Disables the use of a predefined profile for 3D text if they are activated (cf
enableProfile() ). |
boolean |
isProfileEnabled()
Enables/Disables the appearance of a profile for 3D Text.
|
void |
setFontName(java.lang.String name)
Sets the font name for texts.
|
void |
setLineLength(byte endLineChar,
int lineLength)
Sets line length attributes.
|
enableConnection, isConnectionEnabled, touch
dispose, getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
@Deprecated public static final int LINE_LENGTH_MAX
PbMiscTextAttr.LineLengths.LINE_LENGTH_MAX
instead.@Deprecated public static final int LINE_LENGTH_MIN
PbMiscTextAttr.LineLengths.LINE_LENGTH_MIN
instead.public PbMiscTextAttr()
public PbMiscTextAttr(PbMiscTextAttr miscTextAttr)
public java.lang.Object clone()
clone
in class java.lang.Object
public PbMiscTextAttr.LineLength getLineLength()
public void setFontName(java.lang.String name)
public boolean isProfileEnabled()
SoText3
text takes into account of this option (cf PoBase.setTextType()
and PoBase.setVRML2Mode()
) to to select the type of text used). This option is disabled by default.public void setLineLength(byte endLineChar, int lineLength)
Example of use with the string "United States of America" (24 characters) :
Be careful, words (consecutive characters delimited by endLineChar characters) are never truncated, so lines could exceed lineLength characters if the first word of the line contains more than lineLength characters.
public void enableProfile(boolean flag)
public java.lang.String getFontName()
public boolean isPredefinedProfileEnabled()
enableProfile()
).
If this option is disabled, the current profile in the state is used (cf SoLinearProfile
,...) This option is enabled by default.public void enablePredefinedProfile(boolean flag)
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com