public class CgmFile extends Object
CGM image class.
| Modifier and Type | Method and Description |
|---|---|
void |
applyValues(CgmFile file)
Copies the current meta information
|
boolean |
containsConsumableNumber(String textToCheck)
Determines whether CGM contains a specific consumable number text
|
boolean |
containsFigureItemText(String textToCheck)
Determines whether CGM contains a specific figure item text.
|
boolean |
containsTextElement(String text)
Determines whether any text element equals the specified text.
|
boolean |
containsTorqueTextToFigItem(String torqueText,
String figureItemNumber)
Determines whether the torque text ("20 Nm (177 lb-in)" exists nearby the figure item)
|
int |
getColourIndexPrecision()
Gets or sets the current reading colour index precision
|
int |
getColourModel()
Gets or sets the current reading colour model
|
int |
getColourPrecision()
Gets or sets the current reading colour precision
|
ColourSelectionMode.Type |
getColourSelectionMode()
Gets or sets the current reading colour selecion mode
|
int[] |
getColourValueExtentMaximumColorValueRGB()
Gets or sets the current reading MaximumColorValueRGB
|
int[] |
getColourValueExtentMinimumColorValueRGB()
Gets or sets the current reading MinimumColorValueRGB
|
List<Command> |
getCommands()
The read CGM commands
|
DeviceViewportSpecificationMode.Mode |
getDeviceViewportSpecificationMode()
Gets or sets the current reading DeviceViewportSpecificationMode
|
SpecificationMode |
getEdgeWidthSpecificationMode()
Gets or sets the current reading EdgeWidthSpecificationMode
|
List<String> |
getFigureItemTexts(boolean ignoreColor)
Gets all texts of the figure items.
|
String |
getGraphicName()
Gets the title of the illustration.
|
int |
getIndexPrecision()
Gets or sets the current reading Index Precision
|
TextInformation |
getInformation(TextCommand command) |
int |
getIntegerPrecision()
Gets or sets the current reading integer Precision
|
SpecificationMode |
getInteriorStyleSpecificationMode()
Gets or sets the current reading interior style SpecificationMode
|
SpecificationMode |
getLineWidthSpecificationMode()
Gets or sets the current reading LineWidthSpecificationMode
|
SpecificationMode |
getMarkerSizeSpecificationMode()
Gets or sets the current reading MarkerSizeSpecificationMode
|
com.aspose.ms.System.Collections.Generic.IGenericEnumerable<Message> |
getMessages()
Any messages occured while reading or writing the file
|
String |
getMetaTitle()
Gets the title.
|
String |
getName()
Gets the name of the file
|
int |
getNamePrecision()
Gets or sets the current reading name Precision
|
Precision |
getRealPrecision()
Gets or sets the current reading real Precision
|
boolean |
getRealPrecisionProcessed()
Gets or sets the current reading real Precision processed flag
|
List<CgmRectangle> |
getRectangles()
Gets all found rectangles.
|
int |
getRestrictedTextType()
Gets or sets the current reading RestrictedTextType
|
int |
getVDCIntegerPrecision()
Gets or sets the current reading vdc integer Precision
|
Precision |
getVDCRealPrecision()
Gets or sets the current reading vdc real Precision
|
VdcType.Type |
getVDCType()
Gets or sets the current reading VDC Type
|
boolean |
isWrittenDownToUp(TextCommand command)
Determines whether text is rotated 90 dec counterwise
|
void |
resetMetaDefinitions()
Resets settings like VDCRealPrecision or ColourModel
|
void |
setColourIndexPrecision(int value)
Gets or sets the current reading colour index precision
|
void |
setColourModel(int value)
Gets or sets the current reading colour model
|
void |
setColourPrecision(int value)
Gets or sets the current reading colour precision
|
void |
setColourSelectionMode(ColourSelectionMode.Type value)
Gets or sets the current reading colour selecion mode
|
void |
setColourValueExtentMaximumColorValueRGB(int[] value)
Gets or sets the current reading MaximumColorValueRGB
|
void |
setColourValueExtentMinimumColorValueRGB(int[] value)
Gets or sets the current reading MinimumColorValueRGB
|
void |
setDeviceViewportSpecificationMode(DeviceViewportSpecificationMode.Mode value)
Gets or sets the current reading DeviceViewportSpecificationMode
|
void |
setEdgeWidthSpecificationMode(SpecificationMode value)
Gets or sets the current reading EdgeWidthSpecificationMode
|
void |
setIndexPrecision(int value)
Gets or sets the current reading Index Precision
|
void |
setIntegerPrecision(int value)
Gets or sets the current reading integer Precision
|
void |
setInteriorStyleSpecificationMode(SpecificationMode value)
Gets or sets the current reading interior style SpecificationMode
|
void |
setLineWidthSpecificationMode(SpecificationMode value)
Gets or sets the current reading LineWidthSpecificationMode
|
void |
setMarkerSizeSpecificationMode(SpecificationMode value)
Gets or sets the current reading MarkerSizeSpecificationMode
|
void |
setNamePrecision(int value)
Gets or sets the current reading name Precision
|
void |
setRealPrecision(Precision value)
Gets or sets the current reading real Precision
|
void |
setRealPrecisionProcessed(boolean value)
Gets or sets the current reading real Precision processed flag
|
void |
setRestrictedTextType(int value)
Gets or sets the current reading RestrictedTextType
|
void |
setVDCIntegerPrecision(int value)
Gets or sets the current reading vdc integer Precision
|
void |
setVDCRealPrecision(Precision value)
Gets or sets the current reading vdc real Precision
|
void |
setVDCType(VdcType.Type value)
Gets or sets the current reading VDC Type
|
public final void resetMetaDefinitions()
Resets settings like VDCRealPrecision or ColourModel
public final void applyValues(CgmFile file)
Copies the current meta information
file - The cgm file to copy frompublic final String getName()
Gets the name of the file
public final int getColourIndexPrecision()
Gets or sets the current reading colour index precision
public final void setColourIndexPrecision(int value)
Gets or sets the current reading colour index precision
public final int getColourPrecision()
Gets or sets the current reading colour precision
public final void setColourPrecision(int value)
Gets or sets the current reading colour precision
public final int getColourModel()
Gets or sets the current reading colour model
public final void setColourModel(int value)
Gets or sets the current reading colour model
public final ColourSelectionMode.Type getColourSelectionMode()
Gets or sets the current reading colour selecion mode
public final void setColourSelectionMode(ColourSelectionMode.Type value)
Gets or sets the current reading colour selecion mode
public final int[] getColourValueExtentMinimumColorValueRGB()
Gets or sets the current reading MinimumColorValueRGB
public final void setColourValueExtentMinimumColorValueRGB(int[] value)
Gets or sets the current reading MinimumColorValueRGB
public final int[] getColourValueExtentMaximumColorValueRGB()
Gets or sets the current reading MaximumColorValueRGB
public final void setColourValueExtentMaximumColorValueRGB(int[] value)
Gets or sets the current reading MaximumColorValueRGB
public final DeviceViewportSpecificationMode.Mode getDeviceViewportSpecificationMode()
Gets or sets the current reading DeviceViewportSpecificationMode
public final void setDeviceViewportSpecificationMode(DeviceViewportSpecificationMode.Mode value)
Gets or sets the current reading DeviceViewportSpecificationMode
public final SpecificationMode getEdgeWidthSpecificationMode()
Gets or sets the current reading EdgeWidthSpecificationMode
public final void setEdgeWidthSpecificationMode(SpecificationMode value)
Gets or sets the current reading EdgeWidthSpecificationMode
public final int getIndexPrecision()
Gets or sets the current reading Index Precision
public final void setIndexPrecision(int value)
Gets or sets the current reading Index Precision
public final int getIntegerPrecision()
Gets or sets the current reading integer Precision
public final void setIntegerPrecision(int value)
Gets or sets the current reading integer Precision
public final int getNamePrecision()
Gets or sets the current reading name Precision
public final void setNamePrecision(int value)
Gets or sets the current reading name Precision
public final int getVDCIntegerPrecision()
Gets or sets the current reading vdc integer Precision
public final void setVDCIntegerPrecision(int value)
Gets or sets the current reading vdc integer Precision
public final Precision getVDCRealPrecision()
Gets or sets the current reading vdc real Precision
public final void setVDCRealPrecision(Precision value)
Gets or sets the current reading vdc real Precision
public final Precision getRealPrecision()
Gets or sets the current reading real Precision
public final void setRealPrecision(Precision value)
Gets or sets the current reading real Precision
public final boolean getRealPrecisionProcessed()
Gets or sets the current reading real Precision processed flag
public final void setRealPrecisionProcessed(boolean value)
Gets or sets the current reading real Precision processed flag
public final SpecificationMode getLineWidthSpecificationMode()
Gets or sets the current reading LineWidthSpecificationMode
public final void setLineWidthSpecificationMode(SpecificationMode value)
Gets or sets the current reading LineWidthSpecificationMode
public final SpecificationMode getMarkerSizeSpecificationMode()
Gets or sets the current reading MarkerSizeSpecificationMode
public final void setMarkerSizeSpecificationMode(SpecificationMode value)
Gets or sets the current reading MarkerSizeSpecificationMode
public final SpecificationMode getInteriorStyleSpecificationMode()
Gets or sets the current reading interior style SpecificationMode
public final void setInteriorStyleSpecificationMode(SpecificationMode value)
Gets or sets the current reading interior style SpecificationMode
public final int getRestrictedTextType()
Gets or sets the current reading RestrictedTextType
public final void setRestrictedTextType(int value)
Gets or sets the current reading RestrictedTextType
public final VdcType.Type getVDCType()
Gets or sets the current reading VDC Type
public final void setVDCType(VdcType.Type value)
Gets or sets the current reading VDC Type
public final boolean containsTextElement(String text)
Determines whether any text element equals the specified text.
text - The text.public final String getMetaTitle()
Gets the title.
public final String getGraphicName()
Gets the title of the illustration.
public final List<String> getFigureItemTexts(boolean ignoreColor)
Gets all texts of the figure items.
public final boolean containsFigureItemText(String textToCheck)
Determines whether CGM contains a specific figure item text.
textToCheck - The text to check.public final boolean containsConsumableNumber(String textToCheck)
Determines whether CGM contains a specific consumable number text
textToCheck - The text to check.public final boolean containsTorqueTextToFigItem(String torqueText, String figureItemNumber)
Determines whether the torque text ("20 Nm (177 lb-in)" exists nearby the figure item)
torqueText - The torque text.figureItemNumber - The figure item number.true if [contains torque text to fig item] [the specified torque text]; otherwise, false.public final TextInformation getInformation(TextCommand command)
public final boolean isWrittenDownToUp(TextCommand command)
Determines whether text is rotated 90 dec counterwise
command - The command.public final List<CgmRectangle> getRectangles()
Gets all found rectangles.
public final com.aspose.ms.System.Collections.Generic.IGenericEnumerable<Message> getMessages()
Any messages occured while reading or writing the file
Copyright (c) 2008-2025 Aspose Pty Ltd. All Rights Reserved.