Class Default
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.gui.visualization.watermark.AbstractWatermark
-
- adams.gui.visualization.watermark.Default
-
- All Implemented Interfaces:
Destroyable,GlobalInfoSupporter,LoggingLevelHandler,LoggingSupporter,OptionHandler,SizeOfHandler,Watermark,Serializable
public class Default extends AbstractWatermark
Applies the watermark defined in the global preferences.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringFILENAMEthe file to store the default watermark setup in.protected Watermarkm_Defaultthe default watermark.-
Fields inherited from class adams.gui.visualization.watermark.AbstractWatermark
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 Default()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoApplyWatermark(Graphics g, Dimension dimension)Applies the watermark in the specified graphics context.static PropertiesgetProperties()Returns the properties.StringglobalInfo()Returns a string describing the object.protected voidreset()Resets the scheme.-
Methods inherited from class adams.gui.visualization.watermark.AbstractWatermark
applyWatermark, canApplyWatermark, defineOptions, enabledTipText, getEnabled, setEnabled
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, initialize, loggingLevelTipText, newOptionManager, 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
-
FILENAME
public static final String FILENAME
the file to store the default watermark setup in.- See Also:
- Constant Field Values
-
m_Default
protected transient Watermark m_Default
the default watermark.
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfoin interfaceGlobalInfoSupporter- Specified by:
globalInfoin classAbstractOptionHandler- Returns:
- a description suitable for displaying in the gui
-
reset
protected void reset()
Resets the scheme.- Overrides:
resetin classAbstractOptionHandler
-
doApplyWatermark
protected void doApplyWatermark(Graphics g, Dimension dimension)
Applies the watermark in the specified graphics context.- Specified by:
doApplyWatermarkin classAbstractWatermark- Parameters:
g- the graphics contextdimension- the dimension of the drawing area
-
getProperties
public static Properties getProperties()
Returns the properties.- Returns:
- the properties
-
-