Modifier and Type | Interface and Description |
---|---|
static class |
FontCollection.Type
Specifies the type of font
|
Modifier and Type | Method and Description |
---|---|
int |
addFont(String fontName)
Adds a font to the part.
|
int |
addFont(String fontName,
FontCollection.Type type)
Adds a font to the part.
|
boolean |
doesFontExist(int fontIndex)
Finds out whether the specified ID is associated with a font
License requirements: None. |
String |
getFontName(int fontIndex)
Returns the name for the font that has the specified integer ID
License requirements: None. |
FontCollection.Type |
getFontType(int fontIndex)
Returns the font type of the font at the provided index
License requirements: None. |
int |
getLength()
Returns the number of fonts in the part
License requirements: None. |
void |
replaceFont(int fontIndex,
FontCollection.Type type,
String fontName)
Replaces a font name and type at the given font index
License requirements: None. |
int addFont(String fontName) throws NXException, RemoteException
addFont(java.lang.String)
routine that accepts the font type.
If the font name already exists in the part, this will return the existing font index.
fontName
- Font nameNXException
RemoteException
String getFontName(int fontIndex) throws NXException, RemoteException
fontIndex
- The ID for the fontNXException
RemoteException
boolean doesFontExist(int fontIndex) throws NXException, RemoteException
fontIndex
- ID of the fontNXException
RemoteException
int getLength() throws NXException, RemoteException
NXException
RemoteException
int addFont(String fontName, FontCollection.Type type) throws NXException, RemoteException
fontName
- Font nametype
- Type of the fontNXException
RemoteException
void replaceFont(int fontIndex, FontCollection.Type type, String fontName) throws NXException, RemoteException
fontIndex
- ID of the fonttype
- New type of the fontfontName
- New name of the fontNXException
RemoteException
FontCollection.Type getFontType(int fontIndex) throws NXException, RemoteException
fontIndex
- ID of the fontNXException
RemoteException
Copyright 2011 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.