Class ADAMS
-
- All Implemented Interfaces:
Destroyable
,GlobalInfoSupporter
,LoggingLevelHandler
,LoggingSupporter
,OptionHandler
,SizeOfHandler
,Watermark
,Serializable
public class ADAMS extends AbstractImageWatermark
Uses the following resource as watermark:RESOURCE
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
RESOURCE
-
Fields inherited from class adams.gui.visualization.watermark.AbstractImageWatermark
m_Alpha, m_Image, m_Initialized, m_Location, m_Padding, m_Scale, m_X, m_Y
-
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 ADAMS()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
getDefaultAlpha()
Returns the default alpha value: 0=transparent, 255=opaque.protected double
getDefaultScale()
Returns the default scale factor to use.String
globalInfo()
Returns a string describing the object.protected Image
loadImage()
Loads the image.-
Methods inherited from class adams.gui.visualization.watermark.AbstractImageWatermark
alphaTipText, canApplyWatermark, defineOptions, doApplyWatermark, getAlpha, getDefaultLocation, getDefaultPadding, getDefaultX, getDefaultY, getLocation, getPadding, getScale, getX, getY, initializeImage, locationTipText, paddingTipText, reset, scaleTipText, setAlpha, setLocation, setPadding, setScale, setX, setY, XTipText, YTipText
-
Methods inherited from class adams.gui.visualization.watermark.AbstractWatermark
applyWatermark, 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
-
RESOURCE
public static final String RESOURCE
- See Also:
- Constant Field Values
-
-
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
-
getDefaultAlpha
protected int getDefaultAlpha()
Returns the default alpha value: 0=transparent, 255=opaque.- Overrides:
getDefaultAlpha
in classAbstractImageWatermark
- Returns:
- the default
-
getDefaultScale
protected double getDefaultScale()
Returns the default scale factor to use.- Overrides:
getDefaultScale
in classAbstractImageWatermark
- Returns:
- the default
-
loadImage
protected Image loadImage()
Loads the image.- Specified by:
loadImage
in classAbstractImageWatermark
- Returns:
- the image, null if failed to load
-
-