Class CopyToClipboard
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.gui.visualization.image.selection.AbstractSelectionProcessor
-
- adams.gui.visualization.image.selection.CopyToClipboard
-
- All Implemented Interfaces:
Destroyable
,GlobalInfoSupporter
,LoggingLevelHandler
,LoggingSupporter
,OptionHandler
,ShallowCopySupporter<SelectionProcessor>
,SizeOfHandler
,ImagePanelSelectionListener
,SelectionProcessor
,Serializable
,EventListener
public class CopyToClipboard extends AbstractSelectionProcessor
Copies the selection to the system's clipboard.
Valid options are:
-logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel) The logging level for outputting errors and debugging output. default: WARNING
-silent (property: silent) If enabled, user is not prompted with dialog that the selection has been copied.
- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
m_Silent
whether to suppress the "copied to clipboard" dialog.-
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 CopyToClipboard()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
defineOptions()
Adds options to the internal list of options.protected void
doProcessSelection(ImagePanel panel, Point topLeft, Point bottomRight, List<Point> trace, int modifiersEx)
Process the selection that occurred in the image panel.boolean
getSilent()
Returns whether to suppress the "copied" dialog.String
globalInfo()
Returns a string describing the object.void
setSilent(boolean value)
Sets whether to suppress the "copied" dialog.String
silentTipText()
Returns the tip text for this property.-
Methods inherited from class adams.gui.visualization.image.selection.AbstractSelectionProcessor
check, doImageChanged, imageChanged, processSelection, selected, shallowCopy, shallowCopy
-
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.Destroyable
destroy
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel
-
Methods inherited from interface adams.core.option.OptionHandler
cleanUpOptions, getOptionManager, toCommandLine
-
-
-
-
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
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptions
in interfaceOptionHandler
- Overrides:
defineOptions
in classAbstractOptionHandler
-
setSilent
public void setSilent(boolean value)
Sets whether to suppress the "copied" dialog.- Parameters:
value
- true if to suppress dialog
-
getSilent
public boolean getSilent()
Returns whether to suppress the "copied" dialog.- Returns:
- true if to suppress dialog
-
silentTipText
public String silentTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
doProcessSelection
protected void doProcessSelection(ImagePanel panel, Point topLeft, Point bottomRight, List<Point> trace, int modifiersEx)
Process the selection that occurred in the image panel.- Specified by:
doProcessSelection
in classAbstractSelectionProcessor
- Parameters:
panel
- the origintopLeft
- the top-left position of the selectionbottomRight
- the bottom-right position of the selectiontrace
- the trace from the selectionmodifiersEx
- the associated modifiers
-
-