Interface ISettings
- All Superinterfaces:
IGenericOptions
- All Known Implementing Classes:
ReportSettings
-
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 interface chemaxon.formats.documents.jchemoffice.IGenericOptions
getDPIFactor, setDPIFactor
-
Method Details
-
getLocation
Location getLocation()Gets the location in the Document. i.e. pageNumber, horizontal and vertical position on the page- Returns:
- Location in the Document
-
setLocation
Sets the location in the Document. i.e. pageNumber, horizontal and vertical position on the page- Parameters:
location
- - The location in the Document
-
getImageWriter
chemaxon.marvin.io.image.ImageExporter getImageWriter()Gets the molecule image writer, i.e the default image writer is the jpeg writer- Returns:
- ImageExporter
-
setImageWriter
Sets the molecule image writer with a custom writer what will overwrite the default jpeg writer- Parameters:
imageWriter
- - The ImageExporter with image exporting options- Throws:
ArgumentException
-
getImageGenerationMethod
ImageGenerationType getImageGenerationMethod()Gets the image generation type if it is based on the ImageExporter and settings or through string based settings- Returns:
- ImageGenerationType
-
getImageSettings
String getImageSettings()Gets the image rendering setting in string format- Returns:
- Rendering settings
-
setImageSettings
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");
- Parameters:
settings
- - Rendering settings- Throws:
ArgumentException
-
copyFrom
Copies the entire settings from another settings instance- Parameters:
settings
- - ISettings object- Throws:
ArgumentException
-
setDefaultStructureCellWidth
void setDefaultStructureCellWidth(int width) Sets the default Structure Cell width- Parameters:
width
- - Width of the Structure Cell
-
getDefaultStructureCellWidth
int getDefaultStructureCellWidth()Gets the default Structure Cell width- Returns:
- Width of the Structure Cell
-
setDefaultStructureCellHeight
void setDefaultStructureCellHeight(int height) Sets the default Structure Cell height- Parameters:
height
- - Height of the Structure Cell
-
getDefaultStructureCellHeight
int getDefaultStructureCellHeight()Gets the default Structure Cell height- Returns:
- Height of the Structure Cell
-
getValidateImageSettings
boolean getValidateImageSettings()The default values is True, which means that the system runs an extra validation on the rendering settings string before using it.- Returns:
- - true if the application runs an extra validation on the image rendering settings (string).
-
setValidateImageSettings
void setValidateImageSettings(boolean validate) 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. -
getCardLayoutSettings
ICardLayout getCardLayoutSettings()Retrieve card layout report settings.- Returns:
- : Card layout settings for card layout reports.
-
setCardLayoutSettings
Store the new card layout settings to this global settings. -
getConditionalFormatting
Set<PropertyColoring> getConditionalFormatting()Retrieve conditional formatting to amend it.- Returns:
- : dictionary of property coloring objects
-
getTableCellFormats
IPropertyTableCellFormats getTableCellFormats()Retrieve the defined/default cell formats of the property table. These formats are override-able programmatically.
-