public class HitDisplayUtil extends Object
| Modifier and Type | Field and Description | 
|---|---|
static String | 
PROP_ALIGNHIT
Atom property to store "align hit" option. 
 | 
| Constructor and Description | 
|---|
HitDisplayUtil()  | 
| Modifier and Type | Method and Description | 
|---|---|
static void | 
color(Molecule substructure,
     Molecule molToColor,
     HitColoringAndAlignmentOptions options)
Only for internal use! 
 | 
static Molecule | 
colorHit(Molecule substructure,
        Molecule target,
        int[] hit,
        HitColoringAndAlignmentOptions options)
Returns the colored copy of the specified target structure,
 the original target is kept unchanged. 
 | 
protected static ArrayList<MolBond> | 
getNonHitBonds(Molecule query,
              Molecule target,
              int[] hit)
Returns the bonds of the target molecule that should not be colored
 in hit highlighting. 
 | 
static Molecule | 
getScaffoldOrientatedHit(Molecule scaffold,
                        Molecule molToAlign)
Only for internal use! 
 | 
static Molecule | 
getScaffoldOrientatedHit(Molecule query,
                        Molecule target,
                        int[] hit)
Returns an aligned (rotated) version of molToAlign that contains
 scaffold - possibly in the same position or optimally close to it. 
 | 
static Molecule | 
getScaffoldOrientatedHit(Molecule query,
                        Molecule target,
                        int[][] groupHit)
Returns an aligned (rotated) version of molToAlign that contains scaffold - possibly in the same position or
 optimally close to it. 
 | 
public static final String PROP_ALIGNHIT
public static Molecule getScaffoldOrientatedHit(Molecule scaffold, Molecule molToAlign)
scaffold - base for alignmentmolToAlign - molecule that should be aligned to scaffoldpublic static Molecule getScaffoldOrientatedHit(Molecule query, Molecule target, int[] hit)
query - scaffold baseline for alignmenttarget - molToAlign molecule that should be aligned to scaffoldhit - ordered array (its size must be equal to scaffold size),
 describes matchings between scaffold and molToAlign atom indices 
 (e.g. scaffold[2] --> molToAlign[5] ==> hit[2] = 5)public static Molecule getScaffoldOrientatedHit(Molecule query, Molecule target, int[][] groupHit)
query - scaffold baseline for alignmenttarget - molToAlign molecule that should be aligned to scaffoldgroupHit - a map of the atom ids in the query and the target returned by a search. Its size must be equal to
            scaffold size.public static Molecule colorHit(Molecule substructure, Molecule target, int[] hit, HitColoringAndAlignmentOptions options)
substructure - the structure taken as a template for coloringtarget - the structure whose colored copy is returnedhit - maps atoms of the template to atoms in the colored structureoptions - coloring optionspublic static void color(Molecule substructure, Molecule molToColor, HitColoringAndAlignmentOptions options)
substructure - the structure taken as a template for coloringmolToColor - the structure to be coloredoptions - coloring optionsprotected static ArrayList<MolBond> getNonHitBonds(Molecule query, Molecule target, int[] hit)
setMultiAtomHitColor(Molecule, Molecule, int[]).query - the query Moleculetarget - the target Moleculehit - the hit listArrayList contains MolBond
 objects.