Package chemaxon.util
Class HitColoringAndAlignmentOptions
java.lang.Object
chemaxon.util.HitColoringAndAlignmentOptions
- All Implemented Interfaces:
Cloneable
Class for specifying coloring and alignment options.
- Since:
- JChem 5.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe structure is displayed with the original coordinates.static final intThe substructure part of the target will get the exact coordinates of the query, and new coordinates will be generated for the remainder of the structure.static final intThe structure is rotated according to the substructure.static final intThe dissimilarity score is shown and stored in the MPropertyContainer of the Molecule.static final intConstant value specifying, that in case of markush searching the markush structure is expanded according to the query structure.static final intConstant value specifying, that in case of markush searching the markush structure is expanded according to the query structure and homology groups are also replaced by the query structure matching on them.static final intConstant value specifying, that in case of markush searching hit is displayed on the markush structure.static final StringLabel for the query part of a similarity hit.static final intThe similarity score is shown and stored in the MPropertyContainer of the Molecule.static final StringLabel for the similarity score part of the hit.static final intThe similarity score is neither shown nor stored in the MPropertyContainer of the Molecule.static final StringLabel for the target part of the similarity hit. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Makes an identical copy of the OptionsintReturns the alignment mode.booleanReturnstrueif markush structures should be hit enumerated according to the query structure.Returns the color to be used when coloring the substructure hit.Returns the color used for highlighting user defined homologies in a substructure hit.intReturns the Markush display mode.Returns the color to be used when coloring the part of the target which is not matching to the query.Returns the color to be used when coloring the part of the 3D target which is not matching to the query.intReturns the mode of similarity score display.static booleanisAcceptedOptionName(String optionName) Checks if the given option name can be a hit coloring and alignment option.booleanSpecifies if substructure hit coloring should be used.booleanGets whether bounding boxes and labels are to be displayed for the components of the search.booleanGets whether the query should be displayed in the upper left corner along with the hit.booleanGets whether unused definitions should be removed or not.voidsetAlignmentMode(int alignmentMode) Sets the alignment mode.voidsetColoringEnabled(boolean coloringEnabled) Sets whether substructure hit coloring should be used.voidsetDisplayLabelsAndBoxes(boolean value) Set the option to show labels and bounding boxes for the parts of the result: target, query, score.voidsetEnumerateMarkush(boolean enumerateMarkush) Sets whether markush structures should be hit enumerated according to the query structure.voidsetHitColor(Color hitColor) Sets the color to be used when coloring the substructure hit.voidsetHitHomologyColor(Color hitHomologyColor) Set the color of user defined homologies in a substructure hit.voidsetMarkushDisplayMode(int markushDisplayMode) Sets the Markush display mode.voidsetNonHitColor(Color nonHitColor) Sets the color to be used when coloring the part of the target which is not matching to the query.voidsetNonHitColor3D(Color nonHitColor3D) Sets the color to be used when coloring the part of the 3D target which is not matching to the query.static voidsetOptions(HitColoringAndAlignmentOptions hcaaOptions, String hitColorAndAlignOptionList) Parses the option list given while updating a HitColoringAndAlignmentOptions object.voidsetQueryDisplay(boolean value) Set query display optionvoidsetRemoveUnusedDefinitions(boolean value) Sets the remove unused definitions option.voidsetSimilarityScoreDisplay(int similarityScoreDisplay) Sets the mode of similarity score display.toString()Returns a String representation of this object, which can be used insetOptions(HitColoringAndAlignmentOptions, String)to fill another HitColoringAndAlignmentOptions object with parameters.Returns a String representation of this object, which can be used insetOptions(HitColoringAndAlignmentOptions, String)to fill another HitColoringAndAlignmentOptions object with parameters.
-
Field Details
-
ALIGNMENT_OFF
public static final int ALIGNMENT_OFFThe structure is displayed with the original coordinates.- See Also:
-
ALIGNMENT_ROTATE
public static final int ALIGNMENT_ROTATEThe structure is rotated according to the substructure.- See Also:
-
ALIGNMENT_PARTIAL_CLEAN
public static final int ALIGNMENT_PARTIAL_CLEANThe substructure part of the target will get the exact coordinates of the query, and new coordinates will be generated for the remainder of the structure.- See Also:
-
ORIGINAL_MARKUSH
public static final int ORIGINAL_MARKUSHConstant value specifying, that in case of markush searching hit is displayed on the markush structure.- See Also:
-
MARKUSH_REDUCTION
public static final int MARKUSH_REDUCTIONConstant value specifying, that in case of markush searching the markush structure is expanded according to the query structure.- See Also:
-
MARKUSH_REDUCTION_HGEXPANSION
public static final int MARKUSH_REDUCTION_HGEXPANSIONConstant value specifying, that in case of markush searching the markush structure is expanded according to the query structure and homology groups are also replaced by the query structure matching on them.- See Also:
-
SIMILARITY_OFF
public static final int SIMILARITY_OFFThe similarity score is neither shown nor stored in the MPropertyContainer of the Molecule.- See Also:
-
DISSIMILARITY
public static final int DISSIMILARITYThe dissimilarity score is shown and stored in the MPropertyContainer of the Molecule.- See Also:
-
SIMILARITY
public static final int SIMILARITYThe similarity score is shown and stored in the MPropertyContainer of the Molecule.- See Also:
-
QUERY_LABEL
Label for the query part of a similarity hit.- See Also:
-
TARGET_LABEL
Label for the target part of the similarity hit.- See Also:
-
SIMILARITY_LABEL
Label for the similarity score part of the hit.- See Also:
-
-
Constructor Details
-
HitColoringAndAlignmentOptions
public HitColoringAndAlignmentOptions()
-
-
Method Details
-
getEnumerateMarkush
public boolean getEnumerateMarkush()Returnstrueif markush structures should be hit enumerated according to the query structure. (Markush reduction to the hit.)- Returns:
trueif markush structures should be hit enumerated according to the query structure. (Markush reduction to the hit.)- Since:
- JChem 5.12
-
setEnumerateMarkush
public void setEnumerateMarkush(boolean enumerateMarkush) Sets whether markush structures should be hit enumerated according to the query structure. (Markush reduction to the hit.)- Parameters:
enumerateMarkush-trueif markush structures should be hit enumerated according to the query structure. (Markush reduction to the hit.)- Since:
- JChem 5.12
-
isQueryDisplay
public boolean isQueryDisplay()Gets whether the query should be displayed in the upper left corner along with the hit. Default is false .- Returns:
- true if query is to be shown, false if not.
-
setQueryDisplay
public void setQueryDisplay(boolean value) Set query display option- Parameters:
value- true if query is to be displayed false if not. See:
-
isRemoveUnusedDefitions
public boolean isRemoveUnusedDefitions()Gets whether unused definitions should be removed or not. Default value istrue- Returns:
trueif definitions are to be removedfalseif not.- See Also:
-
setRemoveUnusedDefinitions
public void setRemoveUnusedDefinitions(boolean value) Sets the remove unused definitions option. By removing unused definitions readability is increased.
Default value istrue- Parameters:
value- true if definitions are to be removed false if not.- See Also:
-
isDisplayLabelsAndBoxes
public boolean isDisplayLabelsAndBoxes()Gets whether bounding boxes and labels are to be displayed for the components of the search. Used only in case of similarity.- Returns:
- true for boxes and labels to be displayed, false if no labels or boxes displayed.
-
setHitHomologyColor
Set the color of user defined homologies in a substructure hit. Default:Color.green.- Parameters:
hitHomologyColor- color used for highlighting homolgies in a hit
-
getHitHomologyColor
Returns the color used for highlighting user defined homologies in a substructure hit. Default:Color.green.- Returns:
- the color used for highlighting
-
setDisplayLabelsAndBoxes
public void setDisplayLabelsAndBoxes(boolean value) Set the option to show labels and bounding boxes for the parts of the result: target, query, score. Default is false.- Parameters:
value- true if labels and boxes to be displayed false otherwise.
-
isAcceptedOptionName
Checks if the given option name can be a hit coloring and alignment option. The option value is not checked for validity.- Parameters:
optionName- the option in question- Returns:
- true if it is an accepted option name.
-
setOptions
public static void setOptions(HitColoringAndAlignmentOptions hcaaOptions, String hitColorAndAlignOptionList) Parses the option list given while updating a HitColoringAndAlignmentOptions object. This can read in the option string returned bytoString(String).- Parameters:
hcaaOptions- HitColoringAndAlignmentOptions to be updated based on option list providedhitColorAndAlignOptionList- options list to be parsed Can set multiple options. Name and value of an option should be separated by ":", and different pairs of names/values by spaces. Instead of spaces an alternative option separator string (even more than 1 character) can be specified at the beginning of optionString by the syntax "sep='separator string' ...". After 'separator string' there must be at least 1 space character!)
E.g.- setOptions("hitColoring:y")
- setOptions(" hitColoring:y align:r")
- setOptions("sep=*-* align:r*-*markushDisplayMode:rhg")
- Throws:
IllegalArgumentException- in case of wrong option value string- See Also:
-
toString
Returns a String representation of this object, which can be used insetOptions(HitColoringAndAlignmentOptions, String)to fill another HitColoringAndAlignmentOptions object with parameters. -
toString
Returns a String representation of this object, which can be used insetOptions(HitColoringAndAlignmentOptions, String)to fill another HitColoringAndAlignmentOptions object with parameters.- Parameters:
optionSeparator- the separator string used between parameters,nullmeans space (" ")- Returns:
- a String representation of this object
- See Also:
-
clone
Makes an identical copy of the Options -
getMarkushDisplayMode
public int getMarkushDisplayMode()Returns the Markush display mode. Possible values:- Returns:
- the Markush display mode
- Since:
- JChem 5.10
-
setMarkushDisplayMode
public void setMarkushDisplayMode(int markushDisplayMode) Sets the Markush display mode. Possible values:- Parameters:
markushDisplayMode- the Markush display mode- Since:
- JChem 5.10
-
getAlignmentMode
public int getAlignmentMode()Returns the alignment mode. Possible values:- Returns:
- the alignment mode
- Since:
- JChem 5.10
-
setAlignmentMode
public void setAlignmentMode(int alignmentMode) Sets the alignment mode. Possible values:- Parameters:
alignmentMode- the alignment mode- Since:
- JChem 5.10
-
isColoringEnabled
public boolean isColoringEnabled()Specifies if substructure hit coloring should be used. Default:false.- Returns:
trueif substructure hit coloring should be used- Since:
- JChem 5.10
-
setColoringEnabled
public void setColoringEnabled(boolean coloringEnabled) Sets whether substructure hit coloring should be used. Default:false.- Parameters:
coloringEnabled-trueif substructure hit coloring should be used- Since:
- JChem 5.10
-
getHitColor
Returns the color to be used when coloring the substructure hit. Default:Color.blue.- Returns:
- the hitColor
- Since:
- JChem 5.10
-
setHitColor
Sets the color to be used when coloring the substructure hit. Default:Color.blue.- Parameters:
hitColor- the hitColor to set- Since:
- JChem 5.10
-
getNonHitColor
Returns the color to be used when coloring the part of the target which is not matching to the query. Default:Color.black.- Returns:
- the nonHitColor
- Since:
- JChem 5.10
-
setNonHitColor
Sets the color to be used when coloring the part of the target which is not matching to the query. Default:Color.black.- Parameters:
nonHitColor- the nonHitColor to set- Since:
- JChem 5.10
-
getNonHitColor3D
Returns the color to be used when coloring the part of the 3D target which is not matching to the query. Default:Color.gray.- Returns:
- the nonHitColor3D
- Since:
- JChem 5.10
-
setNonHitColor3D
Sets the color to be used when coloring the part of the 3D target which is not matching to the query. Default:Color.gray.- Parameters:
nonHitColor3D- the nonHitColor3D to set- Since:
- JChem 5.10
-
getSimilarityScoreDisplay
public int getSimilarityScoreDisplay()Returns the mode of similarity score display. Possible values:SIMILARITY(default)DISSIMILARITYSIMILARITY_OFF
- Returns:
- the similarityScoreDisplay
- Since:
- JChem 5.10
-
setSimilarityScoreDisplay
public void setSimilarityScoreDisplay(int similarityScoreDisplay) Sets the mode of similarity score display. Possible values:SIMILARITY(default)DISSIMILARITYSIMILARITY_OFF
- Parameters:
similarityScoreDisplay- the similarityScoreDisplay to set- Since:
- JChem 5.10
-