public interface DisplayableObject extends NXObject, IFitTo
Modifier and Type | Interface and Description |
---|---|
static class |
DisplayableObject.ObjectFont
specifies the object font for objects such as lines .
|
static class |
DisplayableObject.ObjectWidth
specifies object width for objects such as lines and text .
|
NXObject.AttributeInformation, NXObject.AttributeType, NXObject.ComputationalTime, NXObject.DateAndTimeFormat, NXObject.NextUserAttributeData
Modifier and Type | Method and Description |
---|---|
void |
blank()
Blanks the object.
|
int |
color()
Returns the color of the object.
|
void |
highlight()
Highlights the object.
|
boolean |
isBlanked()
Returns the blank status of this object.
|
int |
layer()
Returns the layer that the object is in.
|
DisplayableObject.ObjectFont |
lineFont()
Returns the line font of the object.
|
DisplayableObject.ObjectWidth |
lineWidth()
Returns the line width of the object.
|
Point3d |
nameLocation()
Returns the location of the object's name.
|
void |
redisplayObject()
Redisplays the object in all views.
|
void |
removeViewDependency()
Remove dependency on all views from an object.
|
void |
setColor(int color)
License requirements: None. |
void |
setLayer(int layer)
License requirements: None. |
void |
setLineFont(DisplayableObject.ObjectFont font)
License requirements: None. |
void |
setLineWidth(DisplayableObject.ObjectWidth width)
License requirements: None. |
void |
setNameLocation(Point3d location)
Sets the location of the object's name.
|
void |
unblank()
Unblanks the object.
|
void |
unhighlight()
Unhighlights the object.
|
createAttributeIterator, deleteAllAttributesByType, deleteAllAttributesByType, deleteAttributeByTypeAndTitle, deleteAttributeByTypeAndTitle, deleteUserAttribute, deleteUserAttributes, deleteUserAttributes, getAttributeTitlesByType, getBooleanUserAttribute, getComputationalTimeUserAttribute, getIntegerAttribute, getIntegerUserAttribute, getNextUserAttribute, getPdmReferenceAttributeValue, getRealAttribute, getRealUserAttribute, getReferenceAttribute, getStringAttribute, getStringUserAttribute, getTimeAttribute, getTimeUserAttribute, getUserAttribute, getUserAttribute, getUserAttributeAsString, getUserAttributeCount, getUserAttributeCount, getUserAttributeCount, getUserAttributeCount, getUserAttributeLock, getUserAttributes, getUserAttributes, getUserAttributes, getUserAttributes, getUserAttributesAsStrings, getUserAttributeSize, getUserAttributeSourceObjects, hasUserAttribute, hasUserAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setBooleanUserAttribute, setPdmReferenceAttribute, setReferenceAttribute, setReferenceAttribute, setTimeAttribute, setTimeAttribute, setTimeUserAttribute, setTimeUserAttribute, setUserAttribute, setUserAttribute, setUserAttribute, setUserAttribute, setUserAttribute, setUserAttributeLock
printTestData, printTestData, tag, tagValue
findObject, isOccurrence, journalIdentifier, name, owningComponent, owningPart, print, prototype, setName
void blank() throws NXException, RemoteException
NXException
RemoteException
void unblank() throws NXException, RemoteException
NXException
RemoteException
boolean isBlanked() throws NXException, RemoteException
NXException
RemoteException
void highlight() throws NXException, RemoteException
NXException
RemoteException
void unhighlight() throws NXException, RemoteException
NXException
RemoteException
int color() throws NXException, RemoteException
redisplayObject()
in order for the change to take effect.
There is a more efficient way to change the color, layer, line font or
line width of a object. First call
DisplayManager.newDisplayModification()
and
then call any combination of set methods for the properties
DisplayModification.newColor()
and DisplayModification.setNewColor(int)
,
DisplayModification.newWidth()
and DisplayModification.setNewWidth(nxopen.DisplayableObject.ObjectWidth)
,
DisplayModification.newFont()
and DisplayModification.setNewFont(nxopen.DisplayableObject.ObjectFont)
and DisplayModification.newLayer()
and DisplayModification.setNewLayer(int)
. Finally call
DisplayModification.apply(nxopen.DisplayableObject[])
.
This eliminates the need to call redisplayObject()
.
NOTE: The set method should not be used to edit a read-only object such as a Mirrored PMI object.
If it is, the changes will be overridden when the part is updated.
NXException
RemoteException
int layer() throws NXException, RemoteException
redisplayObject()
in order for the change to take effect,
except see the comments for color()
and setColor(int)
.
NOTE: The set method should not be used to edit a read-only object such as a Mirrored PMI object.
If it is, the changes will be overridden when the part is updated.
NXException
RemoteException
DisplayableObject.ObjectFont lineFont() throws NXException, RemoteException
redisplayObject()
in order for the change to take effect,
except see the comments for color()
and setColor(int)
.
NOTE: The set method should not be used to edit a read-only object such as a Mirrored PMI object.
If it is, the changes will be overridden when the part is updated.
NXException
RemoteException
DisplayableObject.ObjectWidth lineWidth() throws NXException, RemoteException
redisplayObject()
in order for the change to take effect,
except see the comments for color()
and setColor(int)
.
NOTE: The set method should not be used to edit a read-only object such as a Mirrored PMI object.
If it is, the changes will be overridden when the part is updated.
NXException
RemoteException
void setNameLocation(Point3d location) throws NXException, RemoteException
location
- NXException
RemoteException
Point3d nameLocation() throws NXException, RemoteException
NXException
RemoteException
void setColor(int color) throws NXException, RemoteException
color
- NXException
RemoteException
void setLayer(int layer) throws NXException, RemoteException
layer
- NXException
RemoteException
void setLineFont(DisplayableObject.ObjectFont font) throws NXException, RemoteException
font
- NXException
RemoteException
void setLineWidth(DisplayableObject.ObjectWidth width) throws NXException, RemoteException
width
- NXException
RemoteException
void redisplayObject() throws NXException, RemoteException
NXException
RemoteException
void removeViewDependency() throws NXException, RemoteException
NXException
RemoteException
Copyright 2017 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.