DxfImage

Inheritance: java.lang.Object, CadImage

Dxf image class

Constructors

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

Methods

MethodDescription
assignHandle(CadBase cadBase)Assigns next available object handle.
nextAvailableHandle()Gets next available object handle
removeEntity(CadBaseEntity entity)Removes entity.
addEntity(CadBaseEntity entity)Adds entity.
addObject(CadBaseObject obj)Adds enity.
removeObject(CadBaseObject obj)Removes enity.

DxfImage()

public DxfImage()

Initializes a new instance of the DxfImage class.

assignHandle(CadBase cadBase)

public final void assignHandle(CadBase cadBase)

Assigns next available object handle.

Parameters:

ParameterTypeDescription
cadBaseCadBaseinstance to add.

nextAvailableHandle()

public final String nextAvailableHandle()

Gets next available object handle

Returns: String

removeEntity(CadBaseEntity entity)

public void removeEntity(CadBaseEntity entity)

Removes entity.

Parameters:

ParameterTypeDescription
entityCadBaseEntityEntity to add.

Throws:

  • com.aspose.ms.System.ArgumentNullException - Thrown when entity is null
  • com.aspose.ms.System.NotSupportedException - Thrown if removing of the current entity is not implemented

addEntity(CadBaseEntity entity)

public final void addEntity(CadBaseEntity entity)

Adds entity.

Parameters:

ParameterTypeDescription
entityCadBaseEntityEntity to add.

Throws:

  • com.aspose.ms.System.ArgumentNullException - Thrown when entity is null
  • com.aspose.ms.System.InvalidOperationException - Thrown if the current entity has been added before
  • com.aspose.ms.System.NotSupportedException - Thrown if adding of the current entity is not implemented

addObject(CadBaseObject obj)

public final void addObject(CadBaseObject obj)

Adds enity.

Parameters:

ParameterTypeDescription
objCadBaseObjectObject to add.

Throws:

  • com.aspose.ms.System.ArgumentNullException - Thrown when object is null
  • com.aspose.ms.System.InvalidOperationException - Thrown if the current object has been added before
  • com.aspose.ms.System.NotSupportedException - Thrown if adding of the current object is not implemented

removeObject(CadBaseObject obj)

public final void removeObject(CadBaseObject obj)

Removes enity.

Parameters:

ParameterTypeDescription
objCadBaseObjectObject to remove.

Throws:

  • com.aspose.ms.System.ArgumentNullException - Thrown when object is null
  • com.aspose.ms.System.NotSupportedException - Thrown if removing of the current object is not implemented