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
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, getNativeResourceHandle
public PbMiscTextAttr(PbMiscTextAttr miscTextAttr)
public PbMiscTextAttr()
public java.lang.Object clone()
clone
in class java.lang.Object
public PbMiscTextAttr.LineLength getLineLength()
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 setFontName(java.lang.String name)
public void enablePredefinedProfile(boolean flag)
public java.lang.String getFontName()
public void enableProfile(boolean flag)
public boolean isProfileEnabled()
SoText3
text takes into account of this option (cf PoBase.setTextType()
) 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.
Generated on July 31, 2019, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com