Package com.actelion.research.util
Class Sketch
- java.lang.Object
-
- com.actelion.research.util.Sketch
-
public class Sketch extends java.lang.ObjectTitle: Actelion Java Library
Description:
Copyright: Copyright (c) 2002
Company: Actelion Ltd.
- Version:
- 1.0
- Author:
- Christian Rufener
-
-
Field Summary
Fields Modifier and Type Field Description static byte$3D_atom_querystatic byte$3D_basis_objsstatic byte$3D_dihed_chiralstatic byte$3D_exclus_dradiusstatic byte$3D_exclus_ignorestatic byte$3D_exclus_radiusstatic byte$3D_marker_rfstatic byte$3D_maxvalstatic byte$3D_minvalstatic byte$3D_namestatic byte$3D_num_basis_objsstatic byte$3D_point_ddiststatic byte$3D_point_dirstatic byte$3D_point_diststatic byte$3D_tolerancestatic byte$Abbrev_atchstatic byte$Arc_endptsstatic byte$ArrowDirstatic byte$ArrowShaftSpstatic byte$ArrowSizestatic byte$ArrowStylestatic byte$ArrowTypestatic byte$Atom_aamap_numstatic byte$Atom_aamappedstatic byte$Atom_aliasstatic byte$Atom_AttachLenstatic byte$Atom_can_reversestatic byte$Atom_chgstatic byte$Atom_coordsstatic byte$Atom_dispflagsstatic byte$Atom_DotWidthstatic byte$Atom_exact_changestatic byte$Atom_fixedstatic byte$Atom_h0bitstatic byte$Atom_hposstatic byte$Atom_hshowstatic byte$Atom_liststatic byte$Atom_margin_widthstatic byte$Atom_msdifstatic byte$Atom_nposstatic byte$Atom_numberstatic byte$Atom_NumSizestatic byte$Atom_Orig_coordsstatic byte$Atom_radstatic byte$Atom_rbcountstatic byte$Atom_rgroupAtchstatic byte$Atom_rxn_stereostatic byte$Atom_stereo_carestatic byte$Atom_substcountstatic byte$Atom_symbolstatic byte$Atom_tplatchptstatic byte$Atom_typestatic byte$Atom_unsatstatic byte$Atom_valencestatic byte$Atom_valuestatic byte$Atom_zcoordstatic byte$Begsketchstatic byte$BigMetaDatastatic byte$Bond_alt_stereostatic byte$Bond_atomsstatic byte$Bond_bond_spacingstatic byte$Bond_crossedstatic byte$Bond_dbl_sidestatic byte$Bond_dbl_widthstatic byte$Bond_hash_spacingstatic byte$Bond_qtopostatic byte$Bond_rxn_centerstatic byte$Bond_stereo_carestatic byte$Bond_stereo_typestatic byte$Bond_topostatic byte$Bond_typestatic byte$Circ_Arc_Pointsstatic byte$Commentstatic byte$Crop_coordsstatic byte$Endsketchstatic byte$Fill_colorstatic byte$Fill_RGB2Colorstatic byte$Fill_stylestatic byte$Fontstatic byte$Is_A_Modelstatic byte$Lockedstatic byte$MDLEditTextstatic byte$MetaDatastatic byte$Model_Rotatedstatic byte$Mol_typestatic byte$Namestatic byte$Nostruct_labelstatic byte$Nostruct_regnostatic byte$Objstatic byte$Obj_Atomstatic byte$Obj_Bondstatic byte$Obj_Chiralstatic byte$Obj_coordsstatic byte$Obj_Molstatic byte$Parentstatic byte$Pen_colorstatic byte$Pen_RGB2Colorstatic byte$Pen_stylestatic byte$Pen_style_tokenstatic byte$Pen_widthstatic byte$Pen_widthUnitstatic byte$Poly_pointsstatic byte$Poly_smoothedstatic byte$RGroupNostatic byte$RLogicstatic byte$Roundrect_curvestatic byte$RxnAtchstatic byte$SGroupAtchstatic byte$SGroupAtchPtstatic byte$SGroupBracketLenstatic byte$SGroupContextstatic byte$SGroupLinkValstatic byte$SGroupNamestatic byte$SGroupNewAtchstatic byte$SGroupTypestatic byte$Totobjsstatic byte$Transparentstatic byte$Versionstatic intMAXMOLSstatic intMSDIFF_OFFSETstatic doublePI
-
Constructor Summary
Constructors Constructor Description Sketch()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleancreateMolFromSketchBuffer(StereoMolecule mol, byte[] buffer)static booleancreateMolFromSketchFile(StereoMolecule mol, java.lang.String szFileName)static booleancreateReactionFromSketchBuffer(Reaction rxn, byte[] buffer)static booleancreateReactionFromSketchFile(Reaction rxn, java.lang.String szFileName)static byte[]createSketchFromMol(Molecule m)static byte[]createSketchFromReaction(Reaction r)static byte[]createSketchFromReactionOLd(Reaction rxn)static booleanwriteMolSketchFile(Molecule mol, java.io.OutputStream os)static booleanwriteMolSketchFile(Molecule mol, java.lang.String filename)static booleanwriteReactionSketchFile(Reaction rxn, java.io.OutputStream os)static booleanwriteReactionSketchFile(Reaction rxn, java.lang.String filename)
-
-
-
Field Detail
-
PI
public static final double PI
- See Also:
- Constant Field Values
-
MAXMOLS
public static final int MAXMOLS
- See Also:
- Constant Field Values
-
$Version
public static final byte $Version
- See Also:
- Constant Field Values
-
$Totobjs
public static final byte $Totobjs
- See Also:
- Constant Field Values
-
$Obj
public static final byte $Obj
- See Also:
- Constant Field Values
-
$Locked
public static final byte $Locked
- See Also:
- Constant Field Values
-
$Pen_width
public static final byte $Pen_width
- See Also:
- Constant Field Values
-
$Pen_style
public static final byte $Pen_style
- See Also:
- Constant Field Values
-
$Pen_color
public static final byte $Pen_color
- See Also:
- Constant Field Values
-
$Transparent
public static final byte $Transparent
- See Also:
- Constant Field Values
-
$Fill_style
public static final byte $Fill_style
- See Also:
- Constant Field Values
-
$Fill_color
public static final byte $Fill_color
- See Also:
- Constant Field Values
-
$Font
public static final byte $Font
- See Also:
- Constant Field Values
-
$Parent
public static final byte $Parent
- See Also:
- Constant Field Values
-
$Obj_coords
public static final byte $Obj_coords
- See Also:
- Constant Field Values
-
$Crop_coords
public static final byte $Crop_coords
- See Also:
- Constant Field Values
-
$Roundrect_curve
public static final byte $Roundrect_curve
- See Also:
- Constant Field Values
-
$Arc_endpts
public static final byte $Arc_endpts
- See Also:
- Constant Field Values
-
$Poly_points
public static final byte $Poly_points
- See Also:
- Constant Field Values
-
$Poly_smoothed
public static final byte $Poly_smoothed
- See Also:
- Constant Field Values
-
$Begsketch
public static final byte $Begsketch
- See Also:
- Constant Field Values
-
$Endsketch
public static final byte $Endsketch
- See Also:
- Constant Field Values
-
$MDLEditText
public static final byte $MDLEditText
- See Also:
- Constant Field Values
-
$Atom_coords
public static final byte $Atom_coords
- See Also:
- Constant Field Values
-
$Atom_type
public static final byte $Atom_type
- See Also:
- Constant Field Values
-
$Atom_list
public static final byte $Atom_list
- See Also:
- Constant Field Values
-
$Atom_alias
public static final byte $Atom_alias
- See Also:
- Constant Field Values
-
$Atom_number
public static final byte $Atom_number
- See Also:
- Constant Field Values
-
$Atom_chg
public static final byte $Atom_chg
- See Also:
- Constant Field Values
-
$Atom_rad
public static final byte $Atom_rad
- See Also:
- Constant Field Values
-
$Atom_msdif
public static final byte $Atom_msdif
- See Also:
- Constant Field Values
-
$Atom_valence
public static final byte $Atom_valence
- See Also:
- Constant Field Values
-
$Atom_rbcount
public static final byte $Atom_rbcount
- See Also:
- Constant Field Values
-
$Atom_substcount
public static final byte $Atom_substcount
- See Also:
- Constant Field Values
-
$Atom_stereo_care
public static final byte $Atom_stereo_care
- See Also:
- Constant Field Values
-
$Atom_h0bit
public static final byte $Atom_h0bit
- See Also:
- Constant Field Values
-
$Atom_unsat
public static final byte $Atom_unsat
- See Also:
- Constant Field Values
-
$Atom_value
public static final byte $Atom_value
- See Also:
- Constant Field Values
-
$Atom_dispflags
public static final byte $Atom_dispflags
- See Also:
- Constant Field Values
-
$Atom_hpos
public static final byte $Atom_hpos
- See Also:
- Constant Field Values
-
$Bond_atoms
public static final byte $Bond_atoms
- See Also:
- Constant Field Values
-
$Bond_type
public static final byte $Bond_type
- See Also:
- Constant Field Values
-
$Bond_stereo_type
public static final byte $Bond_stereo_type
- See Also:
- Constant Field Values
-
$Bond_topo
public static final byte $Bond_topo
- See Also:
- Constant Field Values
-
$Bond_qtopo
public static final byte $Bond_qtopo
- See Also:
- Constant Field Values
-
$Bond_rxn_center
public static final byte $Bond_rxn_center
- See Also:
- Constant Field Values
-
$Bond_stereo_care
public static final byte $Bond_stereo_care
- See Also:
- Constant Field Values
-
$Bond_dbl_side
public static final byte $Bond_dbl_side
- See Also:
- Constant Field Values
-
$Bond_dbl_width
public static final byte $Bond_dbl_width
- See Also:
- Constant Field Values
-
$RxnAtch
public static final byte $RxnAtch
- See Also:
- Constant Field Values
-
$RGroupNo
public static final byte $RGroupNo
- See Also:
- Constant Field Values
-
$RLogic
public static final byte $RLogic
- See Also:
- Constant Field Values
-
$SGroupAtch
public static final byte $SGroupAtch
- See Also:
- Constant Field Values
-
$SGroupName
public static final byte $SGroupName
- See Also:
- Constant Field Values
-
$Atom_rgroupAtch
public static final byte $Atom_rgroupAtch
- See Also:
- Constant Field Values
-
$SGroupType
public static final byte $SGroupType
- See Also:
- Constant Field Values
-
$SGroupLinkVal
public static final byte $SGroupLinkVal
- See Also:
- Constant Field Values
-
$ArrowDir
public static final byte $ArrowDir
- See Also:
- Constant Field Values
-
$ArrowStyle
public static final byte $ArrowStyle
- See Also:
- Constant Field Values
-
$MetaData
public static final byte $MetaData
- See Also:
- Constant Field Values
-
$Mol_type
public static final byte $Mol_type
- See Also:
- Constant Field Values
-
$Abbrev_atch
public static final byte $Abbrev_atch
- See Also:
- Constant Field Values
-
$SGroupAtchPt
public static final byte $SGroupAtchPt
- See Also:
- Constant Field Values
-
$Atom_npos
public static final byte $Atom_npos
- See Also:
- Constant Field Values
-
$Atom_aamapped
public static final byte $Atom_aamapped
- See Also:
- Constant Field Values
-
$Name
public static final byte $Name
- See Also:
- Constant Field Values
-
$Comment
public static final byte $Comment
- See Also:
- Constant Field Values
-
$Atom_fixed
public static final byte $Atom_fixed
- See Also:
- Constant Field Values
-
$3D_num_basis_objs
public static final byte $3D_num_basis_objs
- See Also:
- Constant Field Values
-
$3D_basis_objs
public static final byte $3D_basis_objs
- See Also:
- Constant Field Values
-
$3D_name
public static final byte $3D_name
- See Also:
- Constant Field Values
-
$3D_minval
public static final byte $3D_minval
- See Also:
- Constant Field Values
-
$3D_maxval
public static final byte $3D_maxval
- See Also:
- Constant Field Values
-
$3D_tolerance
public static final byte $3D_tolerance
- See Also:
- Constant Field Values
-
$3D_point_dist
public static final byte $3D_point_dist
- See Also:
- Constant Field Values
-
$3D_dihed_chiral
public static final byte $3D_dihed_chiral
- See Also:
- Constant Field Values
-
$3D_exclus_radius
public static final byte $3D_exclus_radius
- See Also:
- Constant Field Values
-
$3D_point_dir
public static final byte $3D_point_dir
- See Also:
- Constant Field Values
-
$3D_atom_query
public static final byte $3D_atom_query
- See Also:
- Constant Field Values
-
$Atom_zcoord
public static final byte $Atom_zcoord
- See Also:
- Constant Field Values
-
$Atom_exact_change
public static final byte $Atom_exact_change
- See Also:
- Constant Field Values
-
$Atom_rxn_stereo
public static final byte $Atom_rxn_stereo
- See Also:
- Constant Field Values
-
$Bond_crossed
public static final byte $Bond_crossed
- See Also:
- Constant Field Values
-
$Bond_alt_stereo
public static final byte $Bond_alt_stereo
- See Also:
- Constant Field Values
-
$3D_exclus_ignore
public static final byte $3D_exclus_ignore
- See Also:
- Constant Field Values
-
$Pen_style_token
public static final byte $Pen_style_token
- See Also:
- Constant Field Values
-
$BigMetaData
public static final byte $BigMetaData
- See Also:
- Constant Field Values
-
$Pen_RGB2Color
public static final byte $Pen_RGB2Color
- See Also:
- Constant Field Values
-
$Fill_RGB2Color
public static final byte $Fill_RGB2Color
- See Also:
- Constant Field Values
-
$Atom_tplatchpt
public static final byte $Atom_tplatchpt
- See Also:
- Constant Field Values
-
$Is_A_Model
public static final byte $Is_A_Model
- See Also:
- Constant Field Values
-
$Atom_aamap_num
public static final byte $Atom_aamap_num
- See Also:
- Constant Field Values
-
$Atom_hshow
public static final byte $Atom_hshow
- See Also:
- Constant Field Values
-
$SGroupNewAtch
public static final byte $SGroupNewAtch
- See Also:
- Constant Field Values
-
$SGroupContext
public static final byte $SGroupContext
- See Also:
- Constant Field Values
-
$Nostruct_label
public static final byte $Nostruct_label
- See Also:
- Constant Field Values
-
$Nostruct_regno
public static final byte $Nostruct_regno
- See Also:
- Constant Field Values
-
$Circ_Arc_Points
public static final byte $Circ_Arc_Points
- See Also:
- Constant Field Values
-
$Bond_hash_spacing
public static final byte $Bond_hash_spacing
- See Also:
- Constant Field Values
-
$Bond_bond_spacing
public static final byte $Bond_bond_spacing
- See Also:
- Constant Field Values
-
$Atom_margin_width
public static final byte $Atom_margin_width
- See Also:
- Constant Field Values
-
$ArrowType
public static final byte $ArrowType
- See Also:
- Constant Field Values
-
$Atom_Orig_coords
public static final byte $Atom_Orig_coords
- See Also:
- Constant Field Values
-
$Atom_AttachLen
public static final byte $Atom_AttachLen
- See Also:
- Constant Field Values
-
$Atom_DotWidth
public static final byte $Atom_DotWidth
- See Also:
- Constant Field Values
-
$SGroupBracketLen
public static final byte $SGroupBracketLen
- See Also:
- Constant Field Values
-
$3D_marker_rf
public static final byte $3D_marker_rf
- See Also:
- Constant Field Values
-
$Model_Rotated
public static final byte $Model_Rotated
- See Also:
- Constant Field Values
-
$ArrowSize
public static final byte $ArrowSize
- See Also:
- Constant Field Values
-
$ArrowShaftSp
public static final byte $ArrowShaftSp
- See Also:
- Constant Field Values
-
$Pen_widthUnit
public static final byte $Pen_widthUnit
- See Also:
- Constant Field Values
-
$Atom_symbol
public static final byte $Atom_symbol
- See Also:
- Constant Field Values
-
$Atom_NumSize
public static final byte $Atom_NumSize
- See Also:
- Constant Field Values
-
$3D_exclus_dradius
public static final byte $3D_exclus_dradius
- See Also:
- Constant Field Values
-
$Atom_can_reverse
public static final byte $Atom_can_reverse
- See Also:
- Constant Field Values
-
$3D_point_ddist
public static final byte $3D_point_ddist
- See Also:
- Constant Field Values
-
$Obj_Mol
public static final byte $Obj_Mol
- See Also:
- Constant Field Values
-
$Obj_Chiral
public static final byte $Obj_Chiral
- See Also:
- Constant Field Values
-
$Obj_Bond
public static final byte $Obj_Bond
- See Also:
- Constant Field Values
-
$Obj_Atom
public static final byte $Obj_Atom
- See Also:
- Constant Field Values
-
MSDIFF_OFFSET
public static final int MSDIFF_OFFSET
- See Also:
- Constant Field Values
-
-
Method Detail
-
createMolFromSketchFile
public static boolean createMolFromSketchFile(StereoMolecule mol, java.lang.String szFileName) throws java.io.IOException
- Throws:
java.io.IOException
-
createMolFromSketchBuffer
public static boolean createMolFromSketchBuffer(StereoMolecule mol, byte[] buffer) throws java.io.IOException
- Throws:
java.io.IOException
-
writeMolSketchFile
public static boolean writeMolSketchFile(Molecule mol, java.lang.String filename) throws java.io.IOException
- Throws:
java.io.IOException
-
writeMolSketchFile
public static boolean writeMolSketchFile(Molecule mol, java.io.OutputStream os) throws java.io.IOException
- Throws:
java.io.IOException
-
createReactionFromSketchFile
public static boolean createReactionFromSketchFile(Reaction rxn, java.lang.String szFileName) throws java.io.IOException
- Throws:
java.io.IOException
-
createReactionFromSketchBuffer
public static boolean createReactionFromSketchBuffer(Reaction rxn, byte[] buffer) throws java.io.IOException
- Throws:
java.io.IOException
-
writeReactionSketchFile
public static boolean writeReactionSketchFile(Reaction rxn, java.lang.String filename) throws java.io.IOException
- Throws:
java.io.IOException
-
writeReactionSketchFile
public static boolean writeReactionSketchFile(Reaction rxn, java.io.OutputStream os) throws java.io.IOException
- Throws:
java.io.IOException
-
createSketchFromMol
public static byte[] createSketchFromMol(Molecule m)
-
createSketchFromReaction
public static byte[] createSketchFromReaction(Reaction r) throws java.io.IOException
- Throws:
java.io.IOException
-
createSketchFromReactionOLd
public static byte[] createSketchFromReactionOLd(Reaction rxn) throws java.io.IOException
- Throws:
java.io.IOException
-
-