Package chemaxon.search.hitdisplay
Class HitDisplayUtil
java.lang.Object
chemaxon.search.hitdisplay.HitDisplayUtil
Class providing some utility tools for displaying hit results
with hit coloring, alignment, partial clean, etc.
- Since:
- Marvin 5.1
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcolor(Molecule query, Molecule target, int[] hit, HitDisplayOptions options) Performs hit coloring directly on the specified target structure.static voidcolor(Molecule query, Molecule target, SearchHit hit, HitDisplayOptions options) Performs hit coloring directly on the specified target structure.static MoleculecolorHit(Molecule query, Molecule target, int[] hit, HitDisplayOptions options) Returns the colored copy of the specified target structure, the original target is kept unchanged.static MoleculecolorHit(Molecule query, Molecule target, SearchHit hit, HitDisplayOptions options) Returns the colored copy of the specified target structure, the original target is kept unchanged.
-
Field Details
-
PROP_ALIGNHIT
Atom property to store "align hit" option.- See Also:
-
-
Constructor Details
-
HitDisplayUtil
public HitDisplayUtil()
-
-
Method Details
-
colorHit
public static Molecule colorHit(Molecule query, Molecule target, SearchHit hit, HitDisplayOptions options) Returns the colored copy of the specified target structure, the original target is kept unchanged.- Parameters:
query- the substructure taken as a template for coloringtarget- the structure whose colored copy is returnedhit- the search hit mapping objectoptions- coloring options- Returns:
- the colored molecule
-
colorHit
public static Molecule colorHit(Molecule query, Molecule target, int[] hit, HitDisplayOptions options) Returns the colored copy of the specified target structure, the original target is kept unchanged.- Parameters:
query- the substructure taken as a template for coloringtarget- the structure whose colored copy is returnedhit- maps query (template) atoms to target atoms (can also be an "extended" single hit)options- coloring options- Returns:
- the colored molecule
-
color
Performs hit coloring directly on the specified target structure.- Parameters:
query- the substructure taken as a template for coloringtarget- the target structure to be coloredhit- maps query (template) atoms to target atoms (can also be an "extended" single hit)options- coloring options
-
color
Performs hit coloring directly on the specified target structure.- Parameters:
query- the substructure taken as a template for coloringtarget- the target structure to be coloredhit- maps query (template) atoms to target atoms (can also be an "extended" single hit)options- coloring options
-