Class ZScoreHitDetector
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.gui.visualization.core.plot.AbstractHitDetector<H,P>
-
- adams.gui.visualization.core.plot.AbstractDistanceBasedHitDetector<double[],String>
-
- adams.gui.visualization.stats.zscore.ZScoreHitDetector
-
- All Implemented Interfaces:
CleanUpHandler
,Destroyable
,GlobalInfoSupporter
,LoggingLevelHandler
,LoggingSupporter
,OptionHandler
,SizeOfHandler
,HitDetector<double[],String>
,Serializable
public class ZScoreHitDetector extends AbstractDistanceBasedHitDetector<double[],String>
Hit detector for the zscore visualisation.- Author:
- msf8
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected ZScore
m_Owner
zscore plot for detection-
Fields inherited from class adams.gui.visualization.core.plot.AbstractDistanceBasedHitDetector
m_MinimumPixelDifference
-
Fields inherited from class adams.gui.visualization.core.plot.AbstractHitDetector
m_Debug, m_Enabled
-
Fields inherited from class adams.core.option.AbstractOptionHandler
m_OptionManager
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description ZScoreHitDetector(ZScore owner)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ZScore
getOwner()
Get the zscore plot for detectionString
globalInfo()
Returns a string describing the object.protected double[]
isHit(MouseEvent e)
Checks for a hit.protected String
processHit(MouseEvent e, double[] hit)
Performs the action when a hit is detected.-
Methods inherited from class adams.gui.visualization.core.plot.AbstractDistanceBasedHitDetector
defineOptions, distance, getDefaultMinimumPixelDifference, getMinimumPixelDifference, minimumPixelDifferenceTipText, setMinimumPixelDifference
-
Methods inherited from class adams.gui.visualization.core.plot.AbstractHitDetector
cleanUp, detect, getDebug, isEnabled, locate, setDebug, setEnabled
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, initialize, loggingLevelTipText, newOptionManager, reset, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel
-
-
-
-
Field Detail
-
m_Owner
protected ZScore m_Owner
zscore plot for detection
-
-
Constructor Detail
-
ZScoreHitDetector
public ZScoreHitDetector(ZScore owner)
Constructor- Parameters:
owner
- ZScore for detection
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfo
in interfaceGlobalInfoSupporter
- Specified by:
globalInfo
in classAbstractOptionHandler
- Returns:
- a description suitable for displaying in the gui
-
getOwner
public ZScore getOwner()
Get the zscore plot for detection- Returns:
- Z-score which owns this
-
isHit
protected double[] isHit(MouseEvent e)
Description copied from class:AbstractHitDetector
Checks for a hit.- Specified by:
isHit
in classAbstractHitDetector<double[],String>
- Parameters:
e
- the MouseEvent (for coordinates)- Returns:
- the associated object with the hit, otherwise null
-
processHit
protected String processHit(MouseEvent e, double[] hit)
Description copied from class:AbstractHitDetector
Performs the action when a hit is detected.- Specified by:
processHit
in classAbstractHitDetector<double[],String>
- Parameters:
e
- the MouseEvent (for coordinates)hit
- the object that got determined by the hit- Returns:
- optional result of processing the event
-
-