@PublicAPI public class ReportSettings extends GenericOptions implements ISettings
Constructor and Description |
---|
ReportSettings() |
ReportSettings(ISettings settings) |
ReportSettings(Location location) |
ReportSettings(Location location,
ImageExporter imageWriter) |
ReportSettings(Location location,
ISettings settings) |
ReportSettings(Location location,
java.lang.String settings) |
Modifier and Type | Method and Description |
---|---|
void |
copyFrom(ISettings settings)
Copies the entire settings from another settings instance
|
ICardLayout |
getCardLayoutSettings()
Retrieve card layout report settings.
|
java.util.Set<PropertyColoring> |
getConditionalFormatting()
Retrieve conditional formatting to amend it.
|
int |
getDefaultStructureCellHeight()
Gets the default Structure Cell height
|
int |
getDefaultStructureCellWidth()
Gets the default Structure Cell width
|
ImageGenerationType |
getImageGenerationMethod()
Gets the image generation type if it is based on the ImageExporter and
settings or through string based settings
|
java.lang.String |
getImageSettings()
Gets the image rendering setting in string format
|
ImageExporter |
getImageWriter()
Gets the molecule image writer, i.e the default image writer is the jpeg
writer
|
Location |
getLocation()
Gets the location in the Document.
|
IPropertyTableCellFormats |
getTableCellFormats()
Retrieve the defined/default cell formats of the property table.
|
boolean |
getValidateImageSettings()
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 height
|
void |
setDefaultStructureCellWidth(int width)
Sets the default Structure Cell width
|
void |
setImageSettings(java.lang.String settings)
Sets the image rendering settings in String format
|
void |
setImageWriter(ImageExporter imageWriter)
Sets the molecule image writer with a custom writer what will overwrite
the default jpeg writer
|
void |
setLocation(Location location)
Sets the location in the Document.
|
void |
setValidateImageSettings(boolean validate)
Do extra validation on rendering settings string or not.
|
getDPIFactor, setDPIFactor
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDPIFactor, setDPIFactor
public ReportSettings()
public ReportSettings(Location location)
public ReportSettings(Location location, ImageExporter imageWriter) throws chemaxon.util.ArgumentException
chemaxon.util.ArgumentException
public ReportSettings(Location location, java.lang.String settings) throws chemaxon.util.ArgumentException
chemaxon.util.ArgumentException
public ReportSettings(ISettings settings) throws chemaxon.util.ArgumentException
chemaxon.util.ArgumentException
public Location getLocation()
ISettings
getLocation
in interface ISettings
public void setLocation(Location location)
ISettings
setLocation
in interface ISettings
location
- - The location in the Documentpublic ImageExporter getImageWriter()
ISettings
getImageWriter
in interface ISettings
public void setImageWriter(ImageExporter imageWriter) throws chemaxon.util.ArgumentException
ISettings
setImageWriter
in interface ISettings
imageWriter
- - The ImageExporter with image exporting optionschemaxon.util.ArgumentException
public ImageGenerationType getImageGenerationMethod()
ISettings
getImageGenerationMethod
in interface ISettings
public java.lang.String getImageSettings()
ISettings
getImageSettings
in interface ISettings
public void setImageSettings(java.lang.String settings) throws chemaxon.util.ArgumentException
ISettings
The 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");
setImageSettings
in interface ISettings
settings
- - Rendering settingschemaxon.util.ArgumentException
public void copyFrom(ISettings settings) throws chemaxon.util.ArgumentException
ISettings
public void setDefaultStructureCellWidth(int width)
ISettings
setDefaultStructureCellWidth
in interface ISettings
width
- - Width of the Structure Cellpublic int getDefaultStructureCellWidth()
ISettings
getDefaultStructureCellWidth
in interface ISettings
public void setDefaultStructureCellHeight(int height)
ISettings
setDefaultStructureCellHeight
in interface ISettings
height
- - Height of the Structure Cellpublic int getDefaultStructureCellHeight()
ISettings
getDefaultStructureCellHeight
in interface ISettings
public boolean getValidateImageSettings()
ISettings
getValidateImageSettings
in interface ISettings
public void setValidateImageSettings(boolean validate)
ISettings
setValidateImageSettings
in interface ISettings
public ICardLayout getCardLayoutSettings()
ISettings
getCardLayoutSettings
in interface ISettings
public void setCardLayoutSettings(ICardLayout layout)
ISettings
setCardLayoutSettings
in interface ISettings
public java.util.Set<PropertyColoring> getConditionalFormatting()
ISettings
getConditionalFormatting
in interface ISettings
public IPropertyTableCellFormats getTableCellFormats()
ISettings
getTableCellFormats
in interface ISettings