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 TypeMethodDescriptionvoid
Copies the entire settings from another settings instanceRetrieve card layout report settings.Retrieve conditional formatting to amend it.int
Gets the default Structure Cell heightint
Gets 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.ImageExporter
Gets 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.boolean
The default values is True, which means that the system runs an extra validation on the rendering settings string before using it.void
setCardLayoutSettings
(ICardLayout layout) Store the new card layout settings to this global settings.void
setDefaultStructureCellHeight
(int height) Sets the default Structure Cell heightvoid
setDefaultStructureCellWidth
(int width) Sets the default Structure Cell widthvoid
setImageSettings
(String settings) Sets the image rendering settings in String formatvoid
setImageWriter
(chemaxon.marvin.io.image.ImageExporter imageWriter) Sets the molecule image writer with a custom writer what will overwrite the default jpeg writervoid
setLocation
(Location location) Sets the location in the Document.void
setValidateImageSettings
(boolean validate) Do extra validation on rendering settings string or not.Methods inherited from class chemaxon.formats.documents.jchemoffice.GenericOptions
getDPIFactor, setDPIFactor
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:ISettings
Gets the location in the Document. i.e. pageNumber, horizontal and vertical position on the page- Specified by:
getLocation
in interfaceISettings
- Returns:
- Location in the Document
-
setLocation
Description copied from interface:ISettings
Sets the location in the Document. i.e. pageNumber, horizontal and vertical position on the page- Specified by:
setLocation
in interfaceISettings
- Parameters:
location
- - The location in the Document
-
getImageWriter
public chemaxon.marvin.io.image.ImageExporter getImageWriter()Description copied from interface:ISettings
Gets the molecule image writer, i.e the default image writer is the jpeg writer- Specified by:
getImageWriter
in interfaceISettings
- Returns:
- ImageExporter
-
setImageWriter
public void setImageWriter(chemaxon.marvin.io.image.ImageExporter imageWriter) throws ArgumentException Description copied from interface:ISettings
Sets the molecule image writer with a custom writer what will overwrite the default jpeg writer- Specified by:
setImageWriter
in interfaceISettings
- Parameters:
imageWriter
- - The ImageExporter with image exporting options- Throws:
ArgumentException
-
getImageGenerationMethod
Description copied from interface:ISettings
Gets the image generation type if it is based on the ImageExporter and settings or through string based settings- Specified by:
getImageGenerationMethod
in interfaceISettings
- Returns:
- ImageGenerationType
-
getImageSettings
Description copied from interface:ISettings
Gets the image rendering setting in string format- Specified by:
getImageSettings
in interfaceISettings
- Returns:
- Rendering settings
-
setImageSettings
Description copied from interface:ISettings
Sets 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:
setImageSettings
in interfaceISettings
- Parameters:
settings
- - Rendering settings- Throws:
ArgumentException
-
copyFrom
Description copied from interface:ISettings
Copies the entire settings from another settings instance- Specified by:
copyFrom
in interfaceISettings
- Parameters:
settings
- - ISettings object- Throws:
ArgumentException
-
setDefaultStructureCellWidth
public void setDefaultStructureCellWidth(int width) Description copied from interface:ISettings
Sets the default Structure Cell width- Specified by:
setDefaultStructureCellWidth
in interfaceISettings
- Parameters:
width
- - Width of the Structure Cell
-
getDefaultStructureCellWidth
public int getDefaultStructureCellWidth()Description copied from interface:ISettings
Gets the default Structure Cell width- Specified by:
getDefaultStructureCellWidth
in interfaceISettings
- Returns:
- Width of the Structure Cell
-
setDefaultStructureCellHeight
public void setDefaultStructureCellHeight(int height) Description copied from interface:ISettings
Sets the default Structure Cell height- Specified by:
setDefaultStructureCellHeight
in interfaceISettings
- Parameters:
height
- - Height of the Structure Cell
-
getDefaultStructureCellHeight
public int getDefaultStructureCellHeight()Description copied from interface:ISettings
Gets the default Structure Cell height- Specified by:
getDefaultStructureCellHeight
in interfaceISettings
- Returns:
- Height of the Structure Cell
-
getValidateImageSettings
public boolean getValidateImageSettings()Description copied from interface:ISettings
The default values is True, which means that the system runs an extra validation on the rendering settings string before using it.- Specified by:
getValidateImageSettings
in 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:ISettings
Do 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:
setValidateImageSettings
in interfaceISettings
-
getCardLayoutSettings
Description copied from interface:ISettings
Retrieve card layout report settings.- Specified by:
getCardLayoutSettings
in interfaceISettings
- Returns:
- : Card layout settings for card layout reports.
-
setCardLayoutSettings
Description copied from interface:ISettings
Store the new card layout settings to this global settings.- Specified by:
setCardLayoutSettings
in interfaceISettings
-
getConditionalFormatting
Description copied from interface:ISettings
Retrieve conditional formatting to amend it.- Specified by:
getConditionalFormatting
in interfaceISettings
- Returns:
- : dictionary of property coloring objects
-
getTableCellFormats
Description copied from interface:ISettings
Retrieve the defined/default cell formats of the property table. These formats are override-able programmatically.- Specified by:
getTableCellFormats
in interfaceISettings
-