CadImage

Inheritance: java.lang.Object, Image

Cad image class

Constructors

ConstructorDescription
CadImage()Initializes a new instance of the CadImage class.

Methods

MethodDescription
getPreviewByteData()Gets or sets the preview byte data.
setPreviewByteData(byte[] value)Gets or sets the preview byte data.
getAppInfoHistoryByteData()Gets or sets the app info history byte data.
setAppInfoHistoryByteData(byte[] value)Gets or sets the app info history byte data.
getAppInfoByteData()Gets or sets the app info byte data.
setAppInfoByteData(byte[] value)Gets or sets the app info byte data.
getRevHistoryByteData()Gets or sets the revHistory byte data.
setRevHistoryByteData(byte[] value)Gets or sets the revHistory byte data.
getObjFreeSpaceByteData()Gets or sets the obj free space byte data.
setObjFreeSpaceByteData(byte[] value)Gets or sets the obj free space byte data.
getTemplateByteData()Gets or sets the template byte data.
setTemplateByteData(byte[] value)Gets or sets the template byte data.
getAuxHeaderByteData()Gets or sets the aux header byte data.
setAuxHeaderByteData(byte[] value)Gets or sets the aux header byte data.
getHeaderByteData()Gets or sets the header byte data.
setHeaderByteData(byte[] value)Gets or sets the header byte data.
getFileDepByteData()Gets or sets the fileDep byte data.
setFileDepByteData(byte[] value)Gets or sets the fileDep byte data.
getClassesByteData()Gets or sets the classes byte data.
setClassesByteData(byte[] value)Gets or sets the classes byte data.
getAcDsPrototypeByteData()Gets or sets the acDsPrototype byte data.
setAcDsPrototypeByteData(byte[] value)Gets or sets the acDsPrototype byte data.
getActivePage()Gets the active page.
getDefaultLineWeight()Gets or sets the default line weight.
setDefaultLineWeight(float value)Gets or sets the default line weight.
getDefaultFont()Gets or sets the default font.
setDefaultFont(String value)Gets or sets the default font.
getFileEncoding()Gets file’s encoding
setFileEncoding(int value)Gets file’s encoding
getApplicationVersion()Gets or sets the application version. Value: The application version.
setApplicationVersion(int value)Gets or sets the application version. Value: The application version.
getMaintenanceVersion()Gets or sets the maintenance version. Value: The maintenance version.
setMaintenanceVersion(int value)Gets or sets the maintenance version. Value: The maintenance version.
getSpecifiedEncoding()Gets or sets the specified encoding.
setSpecifiedEncoding(int value)Gets or sets the specified encoding.
getSpecifiedMifEncoding()Gets or sets the specified MIF character encoding
setSpecifiedMifEncoding(int value)Gets or sets the specified MIF character encoding
getLineTypes()Gets or sets the dimension styles.
setLineTypes(CadLineTypesDictionary value)Gets or sets the dimension styles.
getBlockEntities()Gets or sets the block entities.
setBlockEntities(CadBlockDictionary value)Gets or sets the block entities.
getClassEntities()Gets or sets the class entities.
setClassEntities(CadClassList value)Gets or sets the class entities.
getThumbnailImage()Gets or sets the thumbnail image.
setThumbnailImage(CadThumbnailImage value)Gets or sets the thumbnail image.
getBlocksTables()Gets or sets the blocks tables.
setBlocksTables(CadBlockRecordList value)Gets or sets the blocks tables.
getDimensionStyles()Gets or sets the dimension styles.
setDimensionStyles(CadDimensionDictionary value)Gets or sets the dimension styles.
getEntities()Gets or sets the entities.
setEntities(CadBaseEntity[] value)Gets or sets the entities.
getObjects()Gets or sets the objects.
setObjects(CadBaseObject[] value)Gets or sets the objects.
getHeight()Gets the image height.
isCached()Gets a value indicating whether object’s data is cached currently and no data reading is required.
getLayers()Gets or sets the layers.
setLayers(CadLayersList value)Gets or sets the layers.
getMaxPoint()Gets the max point.
getMinPoint()Gets the min point.
getStyles()Gets or sets the styles.
setStyles(CadStylesList value)Gets or sets the styles.
getWidth()Gets the image width.
getLayouts()Gets the layouts.
getHeader()Gets or sets the header.
setHeader(CadHeader value)Gets or sets the header.
getViewPorts()Gets or sets the view ports.
setViewPorts(CadVportList value)Gets or sets the view ports.
getViews()Gets or sets the views.
setViews(CadViewList value)Gets or sets the views.
getUCSs()Gets or sets the uc ss.
setUCSs(CadUcsList value)Gets or sets the uc ss.
getCadAcds()Gets or sets the CadAcds list
setCadAcds(CadAcdsList value)Gets or sets the CadAcds list
getAppIdTables()Gets or sets the application identifier tables.
setAppIdTables(CadAppIdDictionary value)Gets or sets the application identifier tables.
removeEntityAt(int position)Removes entity by its position.
removeEntity(CadBaseEntity entity)Removes enity.
cacheData()Caches the data and ensures no additional data loading will be performed from the underlying DataStreamSupporter.DataStreamContainer ( DataStreamSupporter.getDataStreamContainer() / DataStreamSupporter.setDataStreamContainer_internalized(StreamContainer) ).
getStrings()Gets all string values from image.
updateSize()
updateSize(boolean includeBeyondSize)Updates size of an image after changes, that may affect initial size, e.g. removing of entities. MinPoint, MaxPoint, Width and Height properties of image are updated.
fillBounds()Fills Bounds property (contain minimum and maximum point of entity) for all entities.
getBounds(CadBaseEntity entity)Fills Bounds property (contains minimum and maximum point) for entity.

CadImage()

public CadImage()

Initializes a new instance of the CadImage class.

getPreviewByteData()

public final byte[] getPreviewByteData()

Gets or sets the preview byte data.

Returns: byte[]

setPreviewByteData(byte[] value)

public final void setPreviewByteData(byte[] value)

Gets or sets the preview byte data.

getAppInfoHistoryByteData()

public final byte[] getAppInfoHistoryByteData()

Gets or sets the app info history byte data.

Returns: byte[]

setAppInfoHistoryByteData(byte[] value)

public final void setAppInfoHistoryByteData(byte[] value)

Gets or sets the app info history byte data.

getAppInfoByteData()

public final byte[] getAppInfoByteData()

Gets or sets the app info byte data.

Returns: byte[]

setAppInfoByteData(byte[] value)

public final void setAppInfoByteData(byte[] value)

Gets or sets the app info byte data.

getRevHistoryByteData()

public final byte[] getRevHistoryByteData()

Gets or sets the revHistory byte data.

Returns: byte[]

setRevHistoryByteData(byte[] value)

public final void setRevHistoryByteData(byte[] value)

Gets or sets the revHistory byte data.

getObjFreeSpaceByteData()

public final byte[] getObjFreeSpaceByteData()

Gets or sets the obj free space byte data.

Returns: byte[]

setObjFreeSpaceByteData(byte[] value)

public final void setObjFreeSpaceByteData(byte[] value)

Gets or sets the obj free space byte data.

getTemplateByteData()

public final byte[] getTemplateByteData()

Gets or sets the template byte data.

Returns: byte[]

setTemplateByteData(byte[] value)

public final void setTemplateByteData(byte[] value)

Gets or sets the template byte data.

getAuxHeaderByteData()

public final byte[] getAuxHeaderByteData()

Gets or sets the aux header byte data.

Returns: byte[]

setAuxHeaderByteData(byte[] value)

public final void setAuxHeaderByteData(byte[] value)

Gets or sets the aux header byte data.

getHeaderByteData()

public final byte[] getHeaderByteData()

Gets or sets the header byte data.

Returns: byte[]

setHeaderByteData(byte[] value)

public final void setHeaderByteData(byte[] value)

Gets or sets the header byte data.

getFileDepByteData()

public final byte[] getFileDepByteData()

Gets or sets the fileDep byte data.

Returns: byte[]

setFileDepByteData(byte[] value)

public final void setFileDepByteData(byte[] value)

Gets or sets the fileDep byte data.

getClassesByteData()

public final byte[] getClassesByteData()

Gets or sets the classes byte data.

Returns: byte[]

setClassesByteData(byte[] value)

public final void setClassesByteData(byte[] value)

Gets or sets the classes byte data.

getAcDsPrototypeByteData()

public final byte[] getAcDsPrototypeByteData()

Gets or sets the acDsPrototype byte data.

Returns: byte[]

setAcDsPrototypeByteData(byte[] value)

public final void setAcDsPrototypeByteData(byte[] value)

Gets or sets the acDsPrototype byte data.

getActivePage()

public final CadLayout getActivePage()

Gets the active page.

Returns: CadLayout

getDefaultLineWeight()

public final float getDefaultLineWeight()

Gets or sets the default line weight.

Returns: float - The default line weight.

setDefaultLineWeight(float value)

public final void setDefaultLineWeight(float value)

Gets or sets the default line weight.

Parameters:

ParameterTypeDescription
valuefloatThe default line weight.

getDefaultFont()

public final String getDefaultFont()

Gets or sets the default font.

Returns: String - The default font.

setDefaultFont(String value)

public final void setDefaultFont(String value)

Gets or sets the default font.

Parameters:

ParameterTypeDescription
valueStringThe default font.

getFileEncoding()

public final int getFileEncoding()

Gets file’s encoding

Returns: int

setFileEncoding(int value)

public final void setFileEncoding(int value)

Gets file’s encoding

getApplicationVersion()

public final int getApplicationVersion()

Gets or sets the application version. Value: The application version.

Returns: int

setApplicationVersion(int value)

public final void setApplicationVersion(int value)

Gets or sets the application version. Value: The application version.

getMaintenanceVersion()

public final int getMaintenanceVersion()

Gets or sets the maintenance version. Value: The maintenance version.

Returns: int

setMaintenanceVersion(int value)

public final void setMaintenanceVersion(int value)

Gets or sets the maintenance version. Value: The maintenance version.

getSpecifiedEncoding()

public final int getSpecifiedEncoding()

Gets or sets the specified encoding.

Returns: int - The specified encoding.

setSpecifiedEncoding(int value)

public final void setSpecifiedEncoding(int value)

Gets or sets the specified encoding.

Parameters:

ParameterTypeDescription
valueintThe specified encoding.

getSpecifiedMifEncoding()

public final int getSpecifiedMifEncoding()

Gets or sets the specified MIF character encoding

Returns: int

setSpecifiedMifEncoding(int value)

public final void setSpecifiedMifEncoding(int value)

Gets or sets the specified MIF character encoding

getLineTypes()

public final CadLineTypesDictionary getLineTypes()

Gets or sets the dimension styles.

Returns: CadLineTypesDictionary - The dimension styles.

setLineTypes(CadLineTypesDictionary value)

public final void setLineTypes(CadLineTypesDictionary value)

Gets or sets the dimension styles.

Parameters:

ParameterTypeDescription
valueCadLineTypesDictionaryThe dimension styles.

getBlockEntities()

public final CadBlockDictionary getBlockEntities()

Gets or sets the block entities.

Returns: CadBlockDictionary - The block entities.

setBlockEntities(CadBlockDictionary value)

public final void setBlockEntities(CadBlockDictionary value)

Gets or sets the block entities.

Parameters:

ParameterTypeDescription
valueCadBlockDictionaryThe block entities.

getClassEntities()

public final CadClassList getClassEntities()

Gets or sets the class entities.

Returns: CadClassList - The class entities.

setClassEntities(CadClassList value)

public final void setClassEntities(CadClassList value)

Gets or sets the class entities.

Parameters:

ParameterTypeDescription
valueCadClassListThe class entities.

getThumbnailImage()

public final CadThumbnailImage getThumbnailImage()

Gets or sets the thumbnail image.

Returns: CadThumbnailImage - The thumbnail image.

setThumbnailImage(CadThumbnailImage value)

public final void setThumbnailImage(CadThumbnailImage value)

Gets or sets the thumbnail image.

Parameters:

ParameterTypeDescription
valueCadThumbnailImageThe thumbnail image.

getBlocksTables()

public final CadBlockRecordList getBlocksTables()

Gets or sets the blocks tables.

Returns: CadBlockRecordList - The blocks tables.

setBlocksTables(CadBlockRecordList value)

public final void setBlocksTables(CadBlockRecordList value)

Gets or sets the blocks tables.

Parameters:

ParameterTypeDescription
valueCadBlockRecordListThe blocks tables.

getDimensionStyles()

public final CadDimensionDictionary getDimensionStyles()

Gets or sets the dimension styles.

Returns: CadDimensionDictionary - The dimension styles.

setDimensionStyles(CadDimensionDictionary value)

public final void setDimensionStyles(CadDimensionDictionary value)

Gets or sets the dimension styles.

Parameters:

ParameterTypeDescription
valueCadDimensionDictionaryThe dimension styles.

getEntities()

public final CadBaseEntity[] getEntities()

Gets or sets the entities.

Returns: CadBaseEntity[] - The entities.

setEntities(CadBaseEntity[] value)

public final void setEntities(CadBaseEntity[] value)

Gets or sets the entities.

Parameters:

ParameterTypeDescription
valueCadBaseEntity[]The entities.

getObjects()

public final CadBaseObject[] getObjects()

Gets or sets the objects.

Returns: CadBaseObject[] - The objects.

Throws:

  • CadException - Invalid value for Objects

setObjects(CadBaseObject[] value)

public final void setObjects(CadBaseObject[] value)

Gets or sets the objects.

Parameters:

ParameterTypeDescription
valueCadBaseObject[]The objects.

Throws:

  • CadException - Invalid value for Objects

getHeight()

public int getHeight()

Gets the image height.

Returns: int - The image height.

isCached()

public final boolean isCached()

Gets a value indicating whether object’s data is cached currently and no data reading is required.

Returns: boolean - true if object’s data is cached; otherwise, false .

getLayers()

public final CadLayersList getLayers()

Gets or sets the layers.

Returns: CadLayersList - The layers.

setLayers(CadLayersList value)

public final void setLayers(CadLayersList value)

Gets or sets the layers.

Parameters:

ParameterTypeDescription
valueCadLayersListThe layers.

getMaxPoint()

public final Cad3DPoint getMaxPoint()

Gets the max point.

Returns: Cad3DPoint

getMinPoint()

public final Cad3DPoint getMinPoint()

Gets the min point.

Returns: Cad3DPoint

getStyles()

public final CadStylesList getStyles()

Gets or sets the styles.

Returns: CadStylesList

setStyles(CadStylesList value)

public final void setStyles(CadStylesList value)

Gets or sets the styles.

getWidth()

public int getWidth()

Gets the image width.

Returns: int - The image width.

getLayouts()

public final CadLayoutDictionary getLayouts()

Gets the layouts.

Returns: CadLayoutDictionary - The layouts.

getHeader()

public final CadHeader getHeader()

Gets or sets the header.

Returns: CadHeader - The header.

setHeader(CadHeader value)

public final void setHeader(CadHeader value)

Gets or sets the header.

Parameters:

ParameterTypeDescription
valueCadHeaderThe header.

getViewPorts()

public final CadVportList getViewPorts()

Gets or sets the view ports.

Returns: CadVportList - The view ports.

setViewPorts(CadVportList value)

public final void setViewPorts(CadVportList value)

Gets or sets the view ports.

Parameters:

ParameterTypeDescription
valueCadVportListThe view ports.

getViews()

public final CadViewList getViews()

Gets or sets the views.

Returns: CadViewList - The views.

setViews(CadViewList value)

public final void setViews(CadViewList value)

Gets or sets the views.

Parameters:

ParameterTypeDescription
valueCadViewListThe views.

getUCSs()

public final CadUcsList getUCSs()

Gets or sets the uc ss.

Returns: CadUcsList - The uc ss.

setUCSs(CadUcsList value)

public final void setUCSs(CadUcsList value)

Gets or sets the uc ss.

Parameters:

ParameterTypeDescription
valueCadUcsListThe uc ss.

getCadAcds()

public final CadAcdsList getCadAcds()

Gets or sets the CadAcds list

Returns: CadAcdsList

setCadAcds(CadAcdsList value)

public final void setCadAcds(CadAcdsList value)

Gets or sets the CadAcds list

getAppIdTables()

public final CadAppIdDictionary getAppIdTables()

Gets or sets the application identifier tables.

Returns: CadAppIdDictionary - The application identifier tables.

setAppIdTables(CadAppIdDictionary value)

public final void setAppIdTables(CadAppIdDictionary value)

Gets or sets the application identifier tables.

Parameters:

ParameterTypeDescription
valueCadAppIdDictionaryThe application identifier tables.

removeEntityAt(int position)

public final void removeEntityAt(int position)

Removes entity by its position.

Parameters:

ParameterTypeDescription
positionintPosition to remove entity from.

removeEntity(CadBaseEntity entity)

public void removeEntity(CadBaseEntity entity)

Removes enity.

Parameters:

ParameterTypeDescription
entityCadBaseEntityEntity to remove.

cacheData()

public final void cacheData()

Caches the data and ensures no additional data loading will be performed from the underlying DataStreamSupporter.DataStreamContainer ( DataStreamSupporter.getDataStreamContainer() / DataStreamSupporter.setDataStreamContainer_internalized(StreamContainer) ).

getStrings()

public String[] getStrings()

Gets all string values from image.

Returns: String[] - The array with string values.

updateSize()

public final void updateSize()

updateSize(boolean includeBeyondSize)

public final void updateSize(boolean includeBeyondSize)

Updates size of an image after changes, that may affect initial size, e.g. removing of entities. MinPoint, MaxPoint, Width and Height properties of image are updated.

Parameters:

ParameterTypeDescription
includeBeyondSizebooleanDetermines whether entities that lie outside the boundaries of the image size should affect the new image size.

fillBounds()

public final void fillBounds()

Fills Bounds property (contain minimum and maximum point of entity) for all entities.

getBounds(CadBaseEntity entity)

public final void getBounds(CadBaseEntity entity)

Fills Bounds property (contains minimum and maximum point) for entity.