Package chemaxon.marvin.io.image
Class ImageExporter.Builder<T extends ImageExporter.Builder<T>>
java.lang.Object
chemaxon.formats.GeneralExportOptions.Builder<T>
chemaxon.marvin.io.image.ImageExporter.Builder<T>
- Direct Known Subclasses:
EmfExporter.Builder
,JpegExporter.Builder
,MsbmpExporter.Builder
,PdfExporter.Builder
,PngExporter.Builder
,SvgExporter.Builder
- Enclosing class:
- ImageExporter
public abstract static class ImageExporter.Builder<T extends ImageExporter.Builder<T>>
extends chemaxon.formats.GeneralExportOptions.Builder<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the drawing style for ANY bonds.atomAndBondColors
(String colors) Set the atom and bond colors.Atom font type.atomLabelSize
(double d) Sets the atom label font size.Displays atom mapping.Displays atom numbers.Sets the type of atom numbering: Atom numbers or IUPAC numbering.ballRadius
(double d) Sets the ball radius in ball and stick mode.Sets the background color.bgColorAlpha
(String argb) Sets the background color with alpha value.bondHashSpacing
(double spacing) The spacing of the hash in hashed bonds in C-C bond length units.bondWidth
(double d) Sets the width of the double bond.abstract ImageExporter
build()
Builds an unmodifiable export option.carbonDisplay
(ImageExporter.CarbonDisplay display) Show the atom labels on carbon atoms.chargeFont
(String fontType) Font type in circled charge display.Sets the chirality display option.Sets the coloring scheme.coordBondStyle
(ImageExporter.LineType lineType) Coordinate bond display style.Coordinate bond display style when it connects to a multicenter atom.Display charge symbols in a circle.Display the explicit lone pairs instead of the implicit lone pairs if lone pair displaying is switched on.height
(int h) Sets the height of the image.Hide atom symbol in 3D mode.R-groups won't be displayed.Sets the hydrogen display option.Displays ligand orders.Display lone pairs.Display lone pairs as a line instead of the default two dots.marginSize
(double size) Size of the margin in pt.maxScale
(double d) Sets the maximum magnification to prevent overscaling.Switch off antialiasing.Display peptides with their one letter abbreviation instead of the three letter abbreviation which is the default.Sets the rendering style.scale
(double d) Sets the magnification.protected abstract T
self()
Sets the Abolute label to visibile.Show atom properties.Displays the length of bonds in Angstroms.showEZ()
Show E/Z.Displays graph invariants.Show ligand errors on R-groups.Displays valence errors.Show valence property on atoms that have the valence property explicitly set.stickThickness
(double d) Sets the stick diameter in ball and stick mode.Sets the image background to transparent.Use atom/bond set colors.Sets down wedge orientation to upward (default downward).width
(int w) Sets the width of the image.wireThickness
(double d) Sets the bond thickness in wireframe mode.Methods inherited from class chemaxon.formats.GeneralExportOptions.Builder
aromatization, hydrogenize
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
self
- Specified by:
self
in classchemaxon.formats.GeneralExportOptions.Builder<T extends ImageExporter.Builder<T>>
-
build
Builds an unmodifiable export option.- Specified by:
build
in classchemaxon.formats.GeneralExportOptions.Builder<T extends ImageExporter.Builder<T>>
- Returns:
- the options
-
hydrogenDisplay
Sets the hydrogen display option.- Parameters:
option
- the display option- Returns:
- the builder itself
-
chiralityDisplay
Sets the chirality display option.- Parameters:
option
- the display option- Returns:
- the builder itself
-
width
Sets the width of the image.- Parameters:
w
- the width in pixels- Returns:
- the builder itself
-
height
Sets the height of the image.- Parameters:
h
- the height in pixels- Returns:
- the builder itself
-
scale
Sets the magnification.- Parameters:
d
- the magnification- Returns:
- the builder itself
-
maxScale
Sets the maximum magnification to prevent overscaling.- Parameters:
d
- the maximum value for magnification- Returns:
- the builder itself
-
atomLabelSize
Sets the atom label font size.- Parameters:
d
- the size value- Returns:
- the builder itself
-
bondWidth
Sets the width of the double bond.- Parameters:
d
- the width- Returns:
- the builder itself
-
wireThickness
Sets the bond thickness in wireframe mode.- Parameters:
d
- the thickness value- Returns:
- the builder itself
-
stickThickness
Sets the stick diameter in ball and stick mode.- Parameters:
d
- the diameter value- Returns:
- the builder itself
-
ballRadius
Sets the ball radius in ball and stick mode.- Parameters:
d
- the ball radius value- Returns:
- the builder itself
-
bgColor
Sets the background color.- Parameters:
rgb
- the background color in RGB- Returns:
- the builder itself
-
bgColorAlpha
Sets the background color with alpha value.- Parameters:
argb
- the alpha value + the RGB code- Returns:
- the builder itself
-
transparentBg
Sets the image background to transparent.- Returns:
- the builder itself
-
coloring
Sets the coloring scheme.- Parameters:
c
- the coloring scheme- Returns:
- the builder itself
-
useSetColors
Use atom/bond set colors.- Returns:
- the builder itself
-
atomAndBondColors
Set the atom and bond colors.- Parameters:
colors
- the colors string. Use "ak:#rrggbb" for atom set k, "bk:#rrggbb" for bond set k.- Returns:
- the builder itself
- See Also:
-
rendering
Sets the rendering style.- Parameters:
r
- rendering style- Returns:
- the builder itself
-
noAntiAlias
Switch off antialiasing.- Returns:
- the builder itself
-
atomMapping
Displays atom mapping.- Returns:
- the builder itself
-
atomNumber
Displays atom numbers.- Returns:
- the builder itself
-
atomNumberType
Sets the type of atom numbering: Atom numbers or IUPAC numbering.- Parameters:
type
- atom numbers or IUPAC numbering- Returns:
- the builder itself
-
lonePairs
Display lone pairs.- Returns:
- the builder itself
-
explicitLonePairs
Display the explicit lone pairs instead of the implicit lone pairs if lone pair displaying is switched on.- Returns:
- the builder itself
-
lonePairsAsLine
Display lone pairs as a line instead of the default two dots. This parameter has effect only if the lonePair parameter is also specified.- Returns:
- the builder itself
-
wedgeOrientationUp
Sets down wedge orientation to upward (default downward).- Returns:
- the builder itself
-
anyBondStyle
Sets the drawing style for ANY bonds. LineType.ARROW is not accepted.- Parameters:
type
- the line type- Returns:
- the builder itself
-
hideAtomSymbols
Hide atom symbol in 3D mode.- Returns:
- the builder itself
-
showValenceProperty
Show valence property on atoms that have the valence property explicitly set.- Returns:
- the builder itself
-
showEZ
Show E/Z.- Returns:
- the builder itself
-
carbonDisplay
Show the atom labels on carbon atoms.- Parameters:
display
- the carbon atom display option- Returns:
- the builder itself
-
showGraphInvariants
Displays graph invariants.- Returns:
- the builder itself
-
showBondLength
Displays the length of bonds in Angstroms.- Returns:
- the builder itself
-
showValenceError
Displays valence errors.- Returns:
- the builder itself
-
showAbsoluteLabel
Sets the Abolute label to visibile.- Returns:
- the builder itself
-
ligandOrderVisibility
Displays ligand orders.- Parameters:
visibility
- the ligand order display value- Returns:
- the builder itself
-
showLigandError
Show ligand errors on R-groups.- Returns:
- the builder itself
-
coordBondStyle
Coordinate bond display style. LineType.DASHED is not accepted.- Parameters:
lineType
- LineType.SOLID or LineType.ARROW- Returns:
- the builder itself
-
coordBondStyleAtMulticenter
Coordinate bond display style when it connects to a multicenter atom. LineType.ARROW is not accepted.- Parameters:
lineType
- LineType.SOLID or LineType.DASHED- Returns:
- the builder itself
-
displayChargeInCircle
Display charge symbols in a circle.- Returns:
- the builder itself
-
oneLetterPeptide
Display peptides with their one letter abbreviation instead of the three letter abbreviation which is the default.- Returns:
- the builder itself
-
showAtomProperties
Show atom properties.- Returns:
- the builder itself
-
atomFont
Atom font type.- Parameters:
fontType
- the font type as a string example: "Times New Roman-PLAIN-12"- Returns:
- the builder itself
-
chargeFont
Font type in circled charge display.- Parameters:
fontType
- the font type as string- Returns:
- the builder itself
-
hideRGroups
R-groups won't be displayed.- Returns:
- the builder itself
-
bondHashSpacing
The spacing of the hash in hashed bonds in C-C bond length units.- Parameters:
spacing
- the spacing- Returns:
- the builder itself
-
marginSize
Size of the margin in pt.- Parameters:
size
- size of the margin in pt- Returns:
- the builder itself
-