public abstract class CadEntityBase extends CadOwnedObjectBase implements IDrawingEntity, IMeasurableEntity
The Cad base entity object.
| Constructor and Description |
|---|
CadEntityBase()
Initializes a new instance of the
CadEntityBase class. |
| Modifier and Type | Method and Description |
|---|---|
double |
getArea()
Gets the area of the entity.
|
String |
getAssocViewPortHandle()
Gets or sets of the associated view port handle.
|
List<Cad3DPoint> |
getBounds()
Minimal and maximal points of entity.
|
List<CadEntityBase> |
getChildObjects()
Gets or sets the child entities that make up the current entity.
|
List<IDrawingEntity> |
getChilds()
Gets the collection of a nested entities.
|
String |
getColorHandle()
Gets or sets the color handle.
|
short |
getColorId()
Gets or sets the color id (ACI color) of the entity.
|
String |
getColorName()
Gets or sets the name of the color.
|
Integer |
getColorValue()
Gets or sets the true color value (RGB) of the entity.
|
byte |
getEntmode()
Gets or sets the entity mode
|
String |
getGroupHandle()
The group handle
|
String |
getHyperlink()
Gets or sets a hyperlink to an entity and displays the hyperlink name or description (if one is specified).
|
String |
getId()
Gets the identifier.
|
String |
getLayerName()
Gets or sets the name of the layer the entity belongs to.
|
String |
getLayoutTabName()
Gets or sets the name of the layout tab.
|
double |
getLength()
Gets the length of the entity.
|
double |
getLineScale()
Gets or sets the linetype scale factor of the entity.
|
String |
getLineTypeName()
Gets or sets the name of the line type based on the
LType(CadEntityBase.getLType()/CadEntityBase.setLType(byte)) value. |
short |
getLineWeight()
Gets or sets the line weight for the entity.
|
byte |
getLType()
Gets or sets a value the current linetype of the entity.
|
String |
getMaterial()
Gets or sets the material.
|
String |
getPlotStyle()
Gets or sets the plot style.
|
byte |
getPlotStyleFlag()
Gets or sets a value the current plot style of the entity
|
Integer |
getProxyBytesCount()
Gets or sets the proxy bytes count.
|
byte[] |
getProxyData()
Gets or sets the proxy data.
|
CadShadowMode |
getShadowMode()
Gets or sets the shadow mode.
|
CadEntitySpaceMode |
getSpaceMode()
Gets or sets a value indicating which space the entity belongs to.
|
boolean |
getStorageFlag()
Gets or sets a value indicating that this entity has associated binary data in the data store.
|
Integer |
getTransparency()
Gets or sets the transparency value for the entity.
|
CadEntityTypeName |
getTypeName()
Gets the name of the type.
|
short |
getVisible()
Gets or sets a value indicating whether this
CadEntityBase is visible. |
boolean |
getXDirMissingFlag()
Gets or sets a value indicating that no XDictionary handle is stored for this entity.
|
boolean |
isAssocViewPortHandleSet()
Gets a value indicating whether associated view port handle is set.
|
boolean |
isByLayer()
Gets or sets a value indicating that the entity has linetype set by layer.
|
boolean |
isNoLinks()
Gets or sets a value indicating that the entity has no links.
|
void |
setBounds(List<Cad3DPoint> value)
Minimal and maximal points of entity.
|
void |
setByLayer(boolean value)
Gets or sets a value indicating that the entity has linetype set by layer.
|
void |
setChildObjects(List<CadEntityBase> value)
Gets or sets the child entities that make up the current entity.
|
void |
setColorHandle(String value)
Gets or sets the color handle.
|
void |
setColorId(short value)
Gets or sets the color id (ACI color) of the entity.
|
void |
setColorName(String value)
Gets or sets the name of the color.
|
void |
setColorValue(Integer value)
Gets or sets the true color value (RGB) of the entity.
|
void |
setEntmode(byte value)
Gets or sets the entity mode
|
void |
setGroupHandle(String value)
The group handle
|
void |
setHyperlink(String value)
Gets or sets a hyperlink to an entity and displays the hyperlink name or description (if one is specified).
|
void |
setId(String value)
Gets the identifier.
|
void |
setLayerName(String value)
Gets or sets the name of the layer the entity belongs to.
|
void |
setLayoutTabName(String value)
Gets or sets the name of the layout tab.
|
void |
setLineScale(double value)
Gets or sets the linetype scale factor of the entity.
|
void |
setLineTypeName(String value)
Gets or sets the name of the line type based on the
LType(CadEntityBase.getLType()/CadEntityBase.setLType(byte)) value. |
void |
setLineWeight(short value)
Gets or sets the line weight for the entity.
|
void |
setLType(byte value)
Gets or sets a value the current linetype of the entity.
|
void |
setMaterial(String value)
Gets or sets the material.
|
void |
setNoLinks(boolean value)
Gets or sets a value indicating that the entity has no links.
|
void |
setPlotStyle(String value)
Gets or sets the plot style.
|
void |
setPlotStyleFlag(byte value)
Gets or sets a value the current plot style of the entity
|
void |
setProxyBytesCount(Integer value)
Gets or sets the proxy bytes count.
|
void |
setProxyData(byte[] value)
Gets or sets the proxy data.
|
void |
setShadowMode(CadShadowMode value)
Gets or sets the shadow mode.
|
void |
setSpaceMode(CadEntitySpaceMode value)
Gets or sets a value indicating which space the entity belongs to.
|
void |
setStorageFlag(boolean value)
Gets or sets a value indicating that this entity has associated binary data in the data store.
|
void |
setTransparency(Integer value)
Gets or sets the transparency value for the entity.
|
void |
setVisible(short value)
Gets or sets a value indicating whether this
CadEntityBase is visible. |
void |
setXDirMissingFlag(boolean value)
Gets or sets a value indicating that no XDictionary handle is stored for this entity.
|
getHardOwner, getNumreactors, getReactors, getSoftOwner, isSoftOwnerSet, setHardOwner, setNumreactors, setReactors, setSoftOwnergetApplicationCodesContainer, getAttribute102Values, getAttributes, getEmbeddedObjectsContainer, getObjectHandle, getUID, getXdataContainer, setApplicationCodesContainer, setAttribute102Values, setAttributes, setEmbeddedObjectsContainer, setObjectHandle, setUID, setXdataContainerpublic CadEntityBase()
Initializes a new instance of the CadEntityBase class.
public String getId()
Gets the identifier.
Value: The identifier.getId in interface IDrawingEntitypublic void setId(String value)
Gets the identifier.
Value: The identifier.public final List<IDrawingEntity> getChilds()
IDrawingEntityGets the collection of a nested entities.
getChilds in interface IDrawingEntitypublic CadEntityTypeName getTypeName()
Gets the name of the type.
Value: The name of the type.public final List<CadEntityBase> getChildObjects()
Gets or sets the child entities that make up the current entity.
CadEntityTypeName.INSERT, CadEntityTypeName.POLYLINE, etc.
public final void setChildObjects(List<CadEntityBase> value)
Gets or sets the child entities that make up the current entity.
CadEntityTypeName.INSERT, CadEntityTypeName.POLYLINE, etc.
public final short getColorId()
Gets or sets the color id (ACI color) of the entity.
Value: Anint value representing the entity ACI color value.public final void setColorId(short value)
Gets or sets the color id (ACI color) of the entity.
Value: Anint value representing the entity ACI color value.public final String getLayoutTabName()
Gets or sets the name of the layout tab.
Value: The name of the layout tab.public final void setLayoutTabName(String value)
Gets or sets the name of the layout tab.
Value: The name of the layout tab.public final String getColorName()
Gets or sets the name of the color.
Value: The name of the color.public final void setColorName(String value)
Gets or sets the name of the color.
Value: The name of the color.public final Integer getColorValue()
Gets or sets the true color value (RGB) of the entity.
Value: Anint value representing the entity RGB color value.public final void setColorValue(Integer value)
Gets or sets the true color value (RGB) of the entity.
Value: Anint value representing the entity RGB color value.public final String getLayerName()
Gets or sets the name of the layer the entity belongs to.
Value: The name of the layer.public final void setLayerName(String value)
Gets or sets the name of the layer the entity belongs to.
Value: The name of the layer.public final double getLineScale()
Gets or sets the linetype scale factor of the entity.
Value: The linetype scale factor.public final void setLineScale(double value)
Gets or sets the linetype scale factor of the entity.
Value: The linetype scale factor.public final String getLineTypeName()
Gets or sets the name of the line type based on the LType(CadEntityBase.getLType()/CadEntityBase.setLType(byte)) value.
public final void setLineTypeName(String value)
Gets or sets the name of the line type based on the LType(CadEntityBase.getLType()/CadEntityBase.setLType(byte)) value.
public final short getLineWeight()
Gets or sets the line weight for the entity.
Value: The line weight.CadAcadVersion.AC1015.
public final void setLineWeight(short value)
Gets or sets the line weight for the entity.
Value: The line weight.CadAcadVersion.AC1015.
public final String getMaterial()
Gets or sets the material.
Value: The material.public final void setMaterial(String value)
Gets or sets the material.
Value: The material.public final String getColorHandle()
Gets or sets the color handle.
public final void setColorHandle(String value)
Gets or sets the color handle.
public final String getPlotStyle()
Gets or sets the plot style. Gets or sets the plot style handle.
Value: The plot style handle.PlotStyleFlag(CadEntityBase.getPlotStyleFlag()/CadEntityBase.setPlotStyleFlag(byte)) is 3.
public final void setPlotStyle(String value)
Gets or sets the plot style. Gets or sets the plot style handle.
Value: The plot style handle.PlotStyleFlag(CadEntityBase.getPlotStyleFlag()/CadEntityBase.setPlotStyleFlag(byte)) is 3.
public final Integer getProxyBytesCount()
Gets or sets the proxy bytes count.
Value: The proxy bytes count in theProxyData(CadEntityBase.getProxyData()/CadEntityBase.setProxyData(byte[])).
public final void setProxyBytesCount(Integer value)
Gets or sets the proxy bytes count.
Value: The proxy bytes count in theProxyData(CadEntityBase.getProxyData()/CadEntityBase.setProxyData(byte[])).
public final byte[] getProxyData()
Gets or sets the proxy data.
Value: The proxy data.public final void setProxyData(byte[] value)
Gets or sets the proxy data.
Value: The proxy data.public final CadShadowMode getShadowMode()
Gets or sets the shadow mode.
Value: The shadow mode.public final void setShadowMode(CadShadowMode value)
Gets or sets the shadow mode.
Value: The shadow mode.public final CadEntitySpaceMode getSpaceMode()
Gets or sets a value indicating which space the entity belongs to.
CadException - Space mode is not valid
Value:
The CadEntitySpaceMode value.public final void setSpaceMode(CadEntitySpaceMode value)
Gets or sets a value indicating which space the entity belongs to.
CadException - Space mode is not valid
Value:
The CadEntitySpaceMode value.public final List<Cad3DPoint> getBounds()
Minimal and maximal points of entity. Filled after GetBounds is called for CadImage.
public final void setBounds(List<Cad3DPoint> value)
Minimal and maximal points of entity. Filled after GetBounds is called for CadImage.
public final Integer getTransparency()
Gets or sets the transparency value for the entity.
Value: The transparency value.public final void setTransparency(Integer value)
Gets or sets the transparency value for the entity.
Value: The transparency value.public short getVisible()
Gets or sets a value indicating whether this CadEntityBase is visible.
true if visible; otherwise, false.public void setVisible(short value)
Gets or sets a value indicating whether this CadEntityBase is visible.
true if visible; otherwise, false.public final String getHyperlink()
Gets or sets a hyperlink to an entity and displays the hyperlink name or description (if one is specified).
Value: The hyperlink name or description (if one is specified).public final void setHyperlink(String value)
Gets or sets a hyperlink to an entity and displays the hyperlink name or description (if one is specified).
Value: The hyperlink name or description (if one is specified).public final byte getEntmode()
Gets or sets the entity mode
Value: The entity mode.public final void setEntmode(byte value)
Gets or sets the entity mode
Value: The entity mode.public final boolean getXDirMissingFlag()
Gets or sets a value indicating that no XDictionary handle is stored for this entity.
Value: if the entity doesn't have an XDictionary handle.CadAcadVersion.AC1015 and earlier versions.
public final void setXDirMissingFlag(boolean value)
Gets or sets a value indicating that no XDictionary handle is stored for this entity.
Value: if the entity doesn't have an XDictionary handle.CadAcadVersion.AC1015 and earlier versions.
public final boolean getStorageFlag()
Gets or sets a value indicating that this entity has associated binary data in the data store.
Value: if the entity has associated binary data.CadAcadVersion.AC1024 and earlier versions.
getStorageFlag in class CadOwnedObjectBasepublic final void setStorageFlag(boolean value)
Gets or sets a value indicating that this entity has associated binary data in the data store.
Value: if the entity has associated binary data.CadAcadVersion.AC1024 and earlier versions.
setStorageFlag in class CadOwnedObjectBasepublic final boolean isByLayer()
Gets or sets a value indicating that the entity has linetype set by layer.
Value: if the entity has a linetype set by layer.CadAcadVersion.AC1012 and CadAcadVersion.AC1014.
public final void setByLayer(boolean value)
Gets or sets a value indicating that the entity has linetype set by layer.
Value: if the entity has a linetype set by layer.CadAcadVersion.AC1012 and CadAcadVersion.AC1014.
public final boolean isNoLinks()
Gets or sets a value indicating that the entity has no links.
Value: if the entity has no links.CadAcadVersion.AC1018 and later, this value is always true (links are not used).
public final void setNoLinks(boolean value)
Gets or sets a value indicating that the entity has no links.
Value: if the entity has no links.CadAcadVersion.AC1018 and later, this value is always true (links are not used).
public final byte getLType()
Gets or sets a value the current linetype of the entity.
Value: 0 - ByLayer,<br></br>
1 - ByBlock,<br></br>
2 - Continuous,<br></br>
3 - Set based on AcDbObjectType.LTYPE object
CadAcadVersion.AC1015.
public final void setLType(byte value)
Gets or sets a value the current linetype of the entity.
Value: 0 - ByLayer,<br></br>
1 - ByBlock,<br></br>
2 - Continuous,<br></br>
3 - Set based on AcDbObjectType.LTYPE object
CadAcadVersion.AC1015.
public final byte getPlotStyleFlag()
Gets or sets a value the current plot style of the entity
Value: 0 - ByLayer,<br></br>
1 - ByBlock,<br></br>
3 - Set based on AcDbObjectType.PLACEHOLDER object
CadAcadVersion.AC1015.
public final void setPlotStyleFlag(byte value)
Gets or sets a value the current plot style of the entity
Value: 0 - ByLayer,<br></br>
1 - ByBlock,<br></br>
3 - Set based on AcDbObjectType.PLACEHOLDER object
CadAcadVersion.AC1015.
public final String getAssocViewPortHandle()
Gets or sets of the associated view port handle.
Value: The the associated view port handle value.public final boolean isAssocViewPortHandleSet()
Gets a value indicating whether associated view port handle is set.
Value: true, if theAssocViewPortHandle(CadEntityBase.getAssocViewPortHandle()/CadEntityBase.setAssocViewPortHandle_internalized(String)) has a value.public final double getArea()
Gets the area of the entity.
getArea in interface IMeasurableEntitypublic final double getLength()
Gets the length of the entity.
getLength in interface IMeasurableEntitypublic final String getGroupHandle()
The group handle
public final void setGroupHandle(String value)
The group handle
Copyright (c) 2008-2025 Aspose Pty Ltd. All Rights Reserved.