Package org.eclipse.scanning.api.scan.ui
Class ScanUIElement
java.lang.Object
org.eclipse.scanning.api.AbstractNameable
org.eclipse.scanning.api.scan.ui.ScanUIElement
- All Implemented Interfaces:
INameable,IScanUIElement
- Direct Known Subclasses:
DetectorScanUIElement,MonitorScanUIElement
A default implemementation of
IScanUIElement, an element in the scan ui.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the icon path of the scan element.booleanGet whether the scan element is enabled, i.e.voidsetEnabled(boolean enabled) Set the enablement of the scan element.voidsetIconPath(String iconPath) toString()Methods inherited from class org.eclipse.scanning.api.AbstractNameable
equals, getName, hashCode, setName
-
Constructor Details
-
ScanUIElement
public ScanUIElement() -
ScanUIElement
-
-
Method Details
-
getIconPath
Description copied from interface:IScanUIElementGet the icon path of the scan element.- Specified by:
getIconPathin interfaceIScanUIElement- Returns:
- icon path
-
setIconPath
-
isEnabled
public boolean isEnabled()Description copied from interface:IScanUIElementGet whether the scan element is enabled, i.e. will be included in the next scan- Specified by:
isEnabledin interfaceIScanUIElement- Returns:
trueif the element will be included in the next scan
-
setEnabled
public void setEnabled(boolean enabled) Description copied from interface:IScanUIElementSet the enablement of the scan element.- Specified by:
setEnabledin interfaceIScanUIElement- Parameters:
enabled-trueto enable the element,falseto disable it
-
toString
- Overrides:
toStringin classAbstractNameable
-