public class CadImage extends Image
Cad image class
Constructor and Description |
---|
CadImage()
Initializes a new instance of the
CadImage class. |
Modifier and Type | Method and Description |
---|---|
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) ). |
void |
fillBounds()
Fills Bounds property (contain minimum and maximum point of entity) for all entities.
|
CadLayout |
getActivePage()
Gets the active page.
|
CadAppIdDictionary |
getAppIdTables()
Gets or sets the application identifier tables.
|
int |
getApplicationVersion()
Gets or sets the application version.
|
CadBlockDictionary |
getBlockEntities()
Gets or sets the block entities.
|
CadBlockRecordList |
getBlocksTables()
Gets or sets the blocks tables.
|
void |
getBounds(CadBaseEntity entity)
Fills Bounds property (contains minimum and maximum point) for entity.
|
CadAcdsList |
getCadAcds()
Gets or sets the CadAcds list
|
CadClassList |
getClassEntities()
Gets or sets the class entities.
|
String |
getDefaultFont()
Gets or sets the default font.
|
float |
getDefaultLineWeight()
Gets or sets the default line weight.
|
CadDimensionDictionary |
getDimensionStyles()
Gets or sets the dimension styles.
|
CadBaseEntity[] |
getEntities()
Gets or sets the entities.
|
int |
getFileEncoding()
Gets file's encoding
|
CadHeader |
getHeader()
Gets or sets the header.
|
int |
getHeight()
Gets the image height.
|
CadLayersList |
getLayers()
Gets or sets the layers.
|
CadLayoutDictionary |
getLayouts()
Gets the layouts.
|
CadLineTypesDictionary |
getLineTypes()
Gets or sets the dimension styles.
|
int |
getMaintenanceVersion()
Gets or sets the maintenance version.
|
Cad3DPoint |
getMaxPoint()
Gets the max point.
|
Cad3DPoint |
getMinPoint()
Gets the min point.
|
CadBaseObject[] |
getObjects()
Gets or sets the objects.
|
com.aspose.ms.System.Collections.Generic.Dictionary<Integer,byte[]> |
getSectionsData()
Get or sets the sectionsData
|
int |
getSpecifiedEncoding()
Gets or sets the specified encoding.
|
int |
getSpecifiedMifEncoding()
Gets or sets the specified MIF character encoding
|
String[] |
getStrings()
Gets all string values from image.
|
CadStylesList |
getStyles()
Gets or sets the styles.
|
CadThumbnailImage |
getThumbnailImage()
Gets or sets the thumbnail image.
|
CadUcsList |
getUCSs()
Gets or sets the uc ss.
|
CadVportList |
getViewPorts()
Gets or sets the view ports.
|
CadViewList |
getViews()
Gets or sets the views.
|
int |
getWidth()
Gets the image width.
|
boolean |
isCached()
Gets a value indicating whether object's data is cached currently and no data reading is required.
|
void |
removeEntity(CadBaseEntity entity)
Removes enity.
|
void |
removeEntityAt(int position)
Removes entity by its position.
|
void |
setAppIdTables(CadAppIdDictionary value)
Gets or sets the application identifier tables.
|
void |
setApplicationVersion(int value)
Gets or sets the application version.
|
void |
setBlockEntities(CadBlockDictionary value)
Gets or sets the block entities.
|
void |
setBlocksTables(CadBlockRecordList value)
Gets or sets the blocks tables.
|
void |
setCadAcds(CadAcdsList value)
Gets or sets the CadAcds list
|
void |
setClassEntities(CadClassList value)
Gets or sets the class entities.
|
void |
setDefaultFont(String value)
Gets or sets the default font.
|
void |
setDefaultLineWeight(float value)
Gets or sets the default line weight.
|
void |
setDimensionStyles(CadDimensionDictionary value)
Gets or sets the dimension styles.
|
void |
setEntities(CadBaseEntity[] value)
Gets or sets the entities.
|
void |
setFileEncoding(int value)
Gets file's encoding
|
void |
setHeader(CadHeader value)
Gets or sets the header.
|
void |
setLayers(CadLayersList value)
Gets or sets the layers.
|
void |
setLineTypes(CadLineTypesDictionary value)
Gets or sets the dimension styles.
|
void |
setMaintenanceVersion(int value)
Gets or sets the maintenance version.
|
void |
setObjects(CadBaseObject[] value)
Gets or sets the objects.
|
void |
setSectionsData(com.aspose.ms.System.Collections.Generic.Dictionary<Integer,byte[]> value)
Get or sets the sectionsData
|
void |
setSpecifiedEncoding(int value)
Gets or sets the specified encoding.
|
void |
setSpecifiedMifEncoding(int value)
Gets or sets the specified MIF character encoding
|
void |
setStyles(CadStylesList value)
Gets or sets the styles.
|
void |
setThumbnailImage(CadThumbnailImage value)
Gets or sets the thumbnail image.
|
void |
setUCSs(CadUcsList value)
Gets or sets the uc ss.
|
void |
setViewPorts(CadVportList value)
Gets or sets the view ports.
|
void |
setViews(CadViewList value)
Gets or sets the views.
|
void |
updateSize() |
void |
updateSize(boolean includeBeyondSize)
Updates size of an image after changes, that may affect initial size, e.g.
|
canLoad, canLoad, canLoad, canLoad, canSave, getBackgroundColor, getBounds, getContainer, getFileFormat, getFileFormat, getPalette, getSize, getUnitlessDefaultUnitType, getUnitType, hasBackgroundColor, load, load, load, load, save, save, save, setBackgroundColor, setBackgroundColor, setPalette
public CadImage()
Initializes a new instance of the CadImage
class.
public final com.aspose.ms.System.Collections.Generic.Dictionary<Integer,byte[]> getSectionsData()
Get or sets the sectionsData
public final void setSectionsData(com.aspose.ms.System.Collections.Generic.Dictionary<Integer,byte[]> value)
Get or sets the sectionsData
public final CadLayout getActivePage()
Gets the active page.
public final float getDefaultLineWeight()
Gets or sets the default line weight.
public final void setDefaultLineWeight(float value)
Gets or sets the default line weight.
value
- The default line weight.public final String getDefaultFont()
Gets or sets the default font.
public final void setDefaultFont(String value)
Gets or sets the default font.
value
- The default font.public final int getFileEncoding()
Gets file's encoding
public final void setFileEncoding(int value)
Gets file's encoding
public final int getApplicationVersion()
Gets or sets the application version.
Value: The application version.public final void setApplicationVersion(int value)
Gets or sets the application version.
Value: The application version.public final int getMaintenanceVersion()
Gets or sets the maintenance version.
Value: The maintenance version.public final void setMaintenanceVersion(int value)
Gets or sets the maintenance version.
Value: The maintenance version.public final int getSpecifiedEncoding()
Gets or sets the specified encoding.
public final void setSpecifiedEncoding(int value)
Gets or sets the specified encoding.
value
- The specified encoding.public final int getSpecifiedMifEncoding()
Gets or sets the specified MIF character encoding
public final void setSpecifiedMifEncoding(int value)
Gets or sets the specified MIF character encoding
public final CadLineTypesDictionary getLineTypes()
Gets or sets the dimension styles.
public final void setLineTypes(CadLineTypesDictionary value)
Gets or sets the dimension styles.
value
- The dimension styles.public final CadBlockDictionary getBlockEntities()
Gets or sets the block entities.
public final void setBlockEntities(CadBlockDictionary value)
Gets or sets the block entities.
value
- The block entities.public final CadClassList getClassEntities()
Gets or sets the class entities.
public final void setClassEntities(CadClassList value)
Gets or sets the class entities.
value
- The class entities.public final CadThumbnailImage getThumbnailImage()
Gets or sets the thumbnail image.
public final void setThumbnailImage(CadThumbnailImage value)
Gets or sets the thumbnail image.
value
- The thumbnail image.public final CadBlockRecordList getBlocksTables()
Gets or sets the blocks tables.
public final void setBlocksTables(CadBlockRecordList value)
Gets or sets the blocks tables.
value
- The blocks tables.public final CadDimensionDictionary getDimensionStyles()
Gets or sets the dimension styles.
public final void setDimensionStyles(CadDimensionDictionary value)
Gets or sets the dimension styles.
value
- The dimension styles.public final CadBaseEntity[] getEntities()
Gets or sets the entities.
public final void setEntities(CadBaseEntity[] value)
Gets or sets the entities.
value
- The entities.public final CadBaseObject[] getObjects()
Gets or sets the objects.
CadException
- Invalid value for Objectspublic final void setObjects(CadBaseObject[] value)
Gets or sets the objects.
value
- The objects.CadException
- Invalid value for Objectspublic int getHeight()
Gets the image height.
getHeight
in interface IObjectWithBounds
getHeight
in class Image
public final boolean isCached()
Gets a value indicating whether object's data is cached currently and no data reading is required.
isCached
in class com.aspose.cad.DataStreamSupporter
true
if object's data is cached; otherwise, false
.public final CadLayersList getLayers()
Gets or sets the layers.
public final void setLayers(CadLayersList value)
Gets or sets the layers.
value
- The layers.public final Cad3DPoint getMaxPoint()
Gets the max point.
public final Cad3DPoint getMinPoint()
Gets the min point.
public final CadStylesList getStyles()
Gets or sets the styles.
public final void setStyles(CadStylesList value)
Gets or sets the styles.
public int getWidth()
Gets the image width.
getWidth
in interface IObjectWithBounds
getWidth
in class Image
public final CadLayoutDictionary getLayouts()
Gets the layouts.
public final CadHeader getHeader()
Gets or sets the header.
public final void setHeader(CadHeader value)
Gets or sets the header.
value
- The header.public final CadVportList getViewPorts()
Gets or sets the view ports.
public final void setViewPorts(CadVportList value)
Gets or sets the view ports.
value
- The view ports.public final CadViewList getViews()
Gets or sets the views.
public final void setViews(CadViewList value)
Gets or sets the views.
value
- The views.public final CadUcsList getUCSs()
Gets or sets the uc ss.
public final void setUCSs(CadUcsList value)
Gets or sets the uc ss.
value
- The uc ss.public final CadAcdsList getCadAcds()
Gets or sets the CadAcds list
public final void setCadAcds(CadAcdsList value)
Gets or sets the CadAcds list
public final CadAppIdDictionary getAppIdTables()
Gets or sets the application identifier tables.
public final void setAppIdTables(CadAppIdDictionary value)
Gets or sets the application identifier tables.
value
- The application identifier tables.public final void removeEntityAt(int position)
Removes entity by its position.
position
- Position to remove entity from.public void removeEntity(CadBaseEntity entity)
Removes enity.
entity
- Entity to remove.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)
).
cacheData
in class com.aspose.cad.DataStreamSupporter
public String[] getStrings()
Gets all string values from image.
getStrings
in class Image
public final void updateSize()
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.
includeBeyondSize
- Determines whether entities that lie outside the boundaries of the image size
should affect the new image size.public final void fillBounds()
Fills Bounds property (contain minimum and maximum point of entity) for all entities.
public final void getBounds(CadBaseEntity entity)
Fills Bounds property (contains minimum and maximum point) for entity.