Class AbstractOverlay
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.gui.visualization.object.overlay.AbstractOverlay
-
- All Implemented Interfaces:
CleanUpHandler,Destroyable,GlobalInfoSupporter,LoggingLevelHandler,LoggingSupporter,OptionHandler,SizeOfHandler,Overlay,Serializable
- Direct Known Subclasses:
AbstractObjectOverlayFromReport,AbstractPointOverlayFromReport,ClassificationLabelTextOverlay,MultiOverlay,NullOverlay,ObjectAnnotations
public abstract class AbstractOverlay extends AbstractOptionHandler implements Overlay
Ancestor for overlays.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanm_Enabledwhether the overlay is 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 AbstractOverlay()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidannotationsChanged()Hook method for when annotations change.voidcleanUp()Cleans up data structures, frees up memory.voiddefineOptions()Adds options to the internal list of options.protected abstract voiddoPaint(ObjectAnnotationPanel panel, Graphics g)Paints the overlay.StringenabledTipText()Returns the tip text for this property.booleangetEnabled()Returns whether the overlay is enabled.voidpaint(ObjectAnnotationPanel panel, Graphics g)Paints the overlay.voidsetEnabled(boolean value)Sets whether the overlay is enabled.-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, globalInfo, 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.Destroyable
destroy
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel
-
Methods inherited from interface adams.core.option.OptionHandler
cleanUpOptions, getOptionManager, toCommandLine
-
-
-
-
Method Detail
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptionsin interfaceOptionHandler- Overrides:
defineOptionsin classAbstractOptionHandler
-
setEnabled
public void setEnabled(boolean value)
Sets whether the overlay is enabled.- Specified by:
setEnabledin interfaceOverlay- Parameters:
value- true if enabled
-
getEnabled
public boolean getEnabled()
Returns whether the overlay is enabled.- Specified by:
getEnabledin interfaceOverlay- Returns:
- true if enabled
-
enabledTipText
public String enabledTipText()
Returns the tip text for this property.- Specified by:
enabledTipTextin interfaceOverlay- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
doPaint
protected abstract void doPaint(ObjectAnnotationPanel panel, Graphics g)
Paints the overlay.- Parameters:
panel- the owning panelg- the graphics context
-
paint
public void paint(ObjectAnnotationPanel panel, Graphics g)
Paints the overlay.
-
annotationsChanged
public void annotationsChanged()
Hook method for when annotations change.- Specified by:
annotationsChangedin interfaceOverlay
-
cleanUp
public void cleanUp()
Cleans up data structures, frees up memory.- Specified by:
cleanUpin interfaceCleanUpHandler- Specified by:
cleanUpin interfaceOverlay
-
-