Class ReportSettings
java.lang.Object
chemaxon.formats.documents.jchemoffice.GenericOptions
chemaxon.formats.documents.jchemoffice.ReportSettings
- All Implemented Interfaces:
IGenericOptions,ISettings
ReportSettings class can be instantiated and used in writer functionalities.
That is the default implementation of settings, custom implementation is possible.
For more detailed description of methods please check ISettings interface.
-
Constructor Summary
ConstructorsConstructorDescriptionReportSettings(ISettings settings) ReportSettings(Location location) ReportSettings(Location location, ISettings settings) ReportSettings(Location location, chemaxon.marvin.io.image.ImageExporter imageWriter) ReportSettings(Location location, String settings) -
Method Summary
Modifier and TypeMethodDescriptionvoidCopies the entire settings from another settings instanceRetrieve card layout report settings.Retrieve conditional formatting to amend it.intGets the default Structure Cell heightintGets the default Structure Cell widthGets the image generation type if it is based on the ImageExporter and settings or through string based settingsGets the image rendering setting in string formatchemaxon.marvin.io.image.ImageExporterGets the molecule image writer, i.e the default image writer is the jpeg writerGets the location in the Document.Retrieve the defined/default cell formats of the property table.booleanThe default values is True, which means that the system runs an extra validation on the rendering settings string before using it.voidsetCardLayoutSettings(ICardLayout layout) Store the new card layout settings to this global settings.voidsetDefaultStructureCellHeight(int height) Sets the default Structure Cell heightvoidsetDefaultStructureCellWidth(int width) Sets the default Structure Cell widthvoidsetImageSettings(String settings) Sets the image rendering settings in String formatvoidsetImageWriter(chemaxon.marvin.io.image.ImageExporter imageWriter) Sets the molecule image writer with a custom writer what will overwrite the default jpeg writervoidsetLocation(Location location) Sets the location in the Document.voidsetValidateImageSettings(boolean validate) Do extra validation on rendering settings string or not.Methods inherited from class chemaxon.formats.documents.jchemoffice.GenericOptions
getDPIFactor, setDPIFactorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface chemaxon.formats.documents.jchemoffice.IGenericOptions
getDPIFactor, setDPIFactor
-
Constructor Details
-
ReportSettings
public ReportSettings() -
ReportSettings
-
ReportSettings
public ReportSettings(Location location, chemaxon.marvin.io.image.ImageExporter imageWriter) throws ArgumentException - Throws:
ArgumentException
-
ReportSettings
- Throws:
ArgumentException
-
ReportSettings
- Throws:
ArgumentException
-
ReportSettings
- Throws:
ArgumentException
-
-
Method Details
-
getLocation
Description copied from interface:ISettingsGets the location in the Document. i.e. pageNumber, horizontal and vertical position on the page- Specified by:
getLocationin interfaceISettings- Returns:
- Location in the Document
-
setLocation
Description copied from interface:ISettingsSets the location in the Document. i.e. pageNumber, horizontal and vertical position on the page- Specified by:
setLocationin interfaceISettings- Parameters:
location- - The location in the Document
-
getImageWriter
public chemaxon.marvin.io.image.ImageExporter getImageWriter()Description copied from interface:ISettingsGets the molecule image writer, i.e the default image writer is the jpeg writer- Specified by:
getImageWriterin interfaceISettings- Returns:
- ImageExporter
-
setImageWriter
public void setImageWriter(chemaxon.marvin.io.image.ImageExporter imageWriter) throws ArgumentException Description copied from interface:ISettingsSets the molecule image writer with a custom writer what will overwrite the default jpeg writer- Specified by:
setImageWriterin interfaceISettings- Parameters:
imageWriter- - The ImageExporter with image exporting options- Throws:
ArgumentException
-
getImageGenerationMethod
Description copied from interface:ISettingsGets the image generation type if it is based on the ImageExporter and settings or through string based settings- Specified by:
getImageGenerationMethodin interfaceISettings- Returns:
- ImageGenerationType
-
getImageSettings
Description copied from interface:ISettingsGets the image rendering setting in string format- Specified by:
getImageSettingsin interfaceISettings- Returns:
- Rendering settings
-
setImageSettings
Description copied from interface:ISettingsSets the image rendering settings in String formatThe following is one example how to use the setImageSettings. The code:
ISettings settings = new ReportSettings(); Isettings.setImageSettings( "emf:marginSize1.6,wireThickness0.03333333333333333,ballstick,bondl14.4,atsiz0.35714285714285715,bondHashSpacing0.1388888888888889,boldbondw2.0,atomFont:Arial-PLAIN-10,bondw0.09350649350649351");- Specified by:
setImageSettingsin interfaceISettings- Parameters:
settings- - Rendering settings- Throws:
ArgumentException
-
copyFrom
Description copied from interface:ISettingsCopies the entire settings from another settings instance- Specified by:
copyFromin interfaceISettings- Parameters:
settings- - ISettings object- Throws:
ArgumentException
-
setDefaultStructureCellWidth
public void setDefaultStructureCellWidth(int width) Description copied from interface:ISettingsSets the default Structure Cell width- Specified by:
setDefaultStructureCellWidthin interfaceISettings- Parameters:
width- - Width of the Structure Cell
-
getDefaultStructureCellWidth
public int getDefaultStructureCellWidth()Description copied from interface:ISettingsGets the default Structure Cell width- Specified by:
getDefaultStructureCellWidthin interfaceISettings- Returns:
- Width of the Structure Cell
-
setDefaultStructureCellHeight
public void setDefaultStructureCellHeight(int height) Description copied from interface:ISettingsSets the default Structure Cell height- Specified by:
setDefaultStructureCellHeightin interfaceISettings- Parameters:
height- - Height of the Structure Cell
-
getDefaultStructureCellHeight
public int getDefaultStructureCellHeight()Description copied from interface:ISettingsGets the default Structure Cell height- Specified by:
getDefaultStructureCellHeightin interfaceISettings- Returns:
- Height of the Structure Cell
-
getValidateImageSettings
public boolean getValidateImageSettings()Description copied from interface:ISettingsThe default values is True, which means that the system runs an extra validation on the rendering settings string before using it.- Specified by:
getValidateImageSettingsin interfaceISettings- Returns:
- - true if the application runs an extra validation on the image rendering settings (string).
-
setValidateImageSettings
public void setValidateImageSettings(boolean validate) Description copied from interface:ISettingsDo extra validation on rendering settings string or not. If not that it should be derived from a reliable source. The default values is True.- Specified by:
setValidateImageSettingsin interfaceISettings
-
getCardLayoutSettings
Description copied from interface:ISettingsRetrieve card layout report settings.- Specified by:
getCardLayoutSettingsin interfaceISettings- Returns:
- : Card layout settings for card layout reports.
-
setCardLayoutSettings
Description copied from interface:ISettingsStore the new card layout settings to this global settings.- Specified by:
setCardLayoutSettingsin interfaceISettings
-
getConditionalFormatting
Description copied from interface:ISettingsRetrieve conditional formatting to amend it.- Specified by:
getConditionalFormattingin interfaceISettings- Returns:
- : dictionary of property coloring objects
-
getTableCellFormats
Description copied from interface:ISettingsRetrieve the defined/default cell formats of the property table. These formats are override-able programmatically.- Specified by:
getTableCellFormatsin interfaceISettings
-