public class MEDScale extends MEDCalculator
,
Serialized FormMEDCalculator.CalculationResult, MEDCalculator.CalculatorThread| Modifier and Type | Field and Description |
|---|---|
protected static FwkDescriptionInterface |
descriptor |
protected double |
factor |
protected javax.swing.JTextField |
factorField |
protected double |
offset |
protected javax.swing.JTextField |
offsetField |
protected FwkPanel |
panel |
static java.lang.String |
version |
channelCopy, channelCut, channelFilter, channels, getHt, ident, implicitChannelCalculation, independentColumnName, independentFilter, markerFilter, markers, position, setHtactionListeners, buttonClass, commandName, helpID, icon, iconKey, instruction, menuEventEnabled, menuItemClass, menuListeners, mnemonic, properties, radioGroupState, registry, sensitive, separator, text, textKey, toggle, toggleState, toolBarEnabled, toolTipKey, toolTipText, visiblesourceauthor, buildnr, className, company, copyright, creationDate, dateFormatString, description, eMail, FWK_ICON, FWK_ICON_ARRAY, FWK_ICON_BG, FWK_ICON_BG_ARRAY, FWK_ICON_BG_LARGE, FWK_ICON_BG_LARGE_ARRAY, FWK_ICON_LARGE, FWK_ICON_LARGE_ARRAY, ICON, iconCount, internetAddress, name, titleNameCONTROLLER_PROPERTY, MENU_REASON_CANCELED, MENU_REASON_DESELECTED, MENU_REASON_SELECTEDAUTHOR, BUILDNR, COMPANY, COPYRIGHT, DATE_FORMAT, DEFAULT_ICON, DESCRIPTION, INTERNET, LARGE_ICON, LARGE_KEY_EXT, LARGE_OPAQUE_ICON, LARGE_OPAQUE_KEY_EXT, OPAQUE_ICON, OPAQUE_KEY_EXT, RCS_DATE_FORMAT, SUPPORT_EMAIL, TITLE_NAME| Constructor and Description |
|---|
MEDScale()
The default constructor.
|
MEDScale(FwkControllerInterface controller)
The default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
double[] |
calculate(double[] independent,
double[] data)
Calculate the results of a single channel.
|
FwkPanelInterface |
getCalculatorPanel()
Get the calculator dialog.
|
java.lang.String |
getChannelColumnName(FwkColumnAccessInterface col,
double[] limit)
Get the short name of a newly created channel.
|
java.lang.String |
getChannelName(FwkColumnAccessInterface col,
double[] limit)
Get the name of a newly created channel.
|
static FwkDescriptionInterface |
getDescriptor() |
double |
getFactor()
Get the factor.
|
double |
getOffset()
Get the offset.
|
java.lang.String |
getVersion()
Return the version string of the FWK component.
|
void |
setFactor(double factor)
Set the factor.
|
void |
setOffset(double offset)
Set the offset.
|
calculate, calculate, calculate, canChangeChannel, canCopyChannel, canCreateImplicitChannel, checkCalulatorPanel, clear, containsKey, containsValue, entrySet, execute, get, getCalculatorPanelPosition, getChannelCopy, getChannelCut, getChannelFilter, getChannelInfoBusName, getChannelNames, getDialogPanel, getDialogParent, getIcon, getIdent, getImplicitChannelCalculation, getIndependentChannelName, getIndependentFilter, getMarkerFilter, getMarkerInfoBusName, getMarkerNames, getMED, getProperties, getProperty, init, isEmpty, keySet, main, put, putAll, release, remove, setCalculatorPanelPosition, setChannelCopy, setChannelCut, setChannelFilter, setChannelNames, setIdent, setImplicitChannelCalculation, setIndependentChannelName, setIndependentFilter, setMarkerFilter, setMarkerNames, setProperties, setProperty, size, toString, valuesaddActionListener, addCommand, addCommand, addMenuListener, addToGroup, addToGroup, clearCommands, commandsAvailable, deleteGroup, getActionListenerArray, getButtonClass, getCommand, getCommandName, getCommands, getController, getGroup, getHelpID, getIconKey, getMenuEventEnabled, getMenuItemClass, getMenuListenerArray, getMnemonic, getRadioGroupState, getSensitivity, getSeparator, getText, getTextKey, getToggle, getToggleState, getToolBarEnabled, getToolTipKey, getToolTipText, getVisibility, groupExists, hasActionListeners, hasMenuListeners, isParent, menuSelect, register, registeredObjects, registrySize, removeActionListener, removeCommand, removeFromGroup, removeMenuListener, setAsParent, setButtonClass, setCommandName, setCommands, setController, setHelpID, setIcon, setIconKey, setMenuEventEnabled, setMenuItemClass, setMnemonic, setRadioGroupState, setSensitivity, setSeparator, setText, setTextKey, setToggle, setToggleState, setToolBarEnabled, setToolTipKey, setToolTipText, setVisibility, unregisteraddPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeArray, getPropertyChangeListenerArray, getPropertyChangeListenerArray, isPropertyChangeEventSuspended, removePropertyChangeListener, removePropertyChangeListener, setSource, suspendPropertyChangeEventsgetAuthor, getBuild, getClassName, getCompany, getCompanyInternetAddress, getCopyright, getCreationDate, getCreationDate, getDateFormatString, getDescription, getIcon, getIconKey, getName, getPresentationString, getPresentationString, getSupportEMail, getTitle, getTitleName, getTransferData, getTransferDataFlavors, isDataFlavorSupported, lostOwnership, setAuthor, setBuild, setClassName, setCompany, setCompanyInternetAddress, setCopyright, setCreationDate, setCreationDate, setDateFormatString, setDescription, setDescriptor, setIcon, setIconKey, setName, setSupportEMail, setTitleNamegetNiceVersionclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddActionListener, addMenuListener, getActionListenerArray, getButtonClass, getCommandName, getHelpID, getIconKey, getMenuEventEnabled, getMenuItemClass, getMenuListenerArray, getMnemonic, getRadioGroupState, getSensitivity, getSeparator, getText, getTextKey, getToggle, getToggleState, getToolBarEnabled, getToolTipKey, getToolTipText, getVisibility, hasActionListeners, hasMenuListeners, isParent, menuSelect, register, registeredObjects, registrySize, removeActionListener, removeMenuListener, setAsParent, setButtonClass, setCommandName, setHelpID, setIcon, setIconKey, setMenuEventEnabled, setMenuItemClass, setMnemonic, setRadioGroupState, setSensitivity, setSeparator, setText, setTextKey, setToggle, setToggleState, setToolBarEnabled, setToolTipKey, setToolTipText, setVisibility, unregisteraddCommand, addCommand, addToGroup, addToGroup, clearCommands, commandsAvailable, deleteGroup, getCommand, getCommands, getGroup, groupExists, removeCommand, removeFromGroup, setCommandsgetPresentationString, getPresentationStringgetController, setControlleraddPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeArray, getPropertyChangeListenerArray, getPropertyChangeListenerArray, isPropertyChangeEventSuspended, removePropertyChangeListener, removePropertyChangeListener, setSource, suspendPropertyChangeEventspublic static final java.lang.String version
protected static final FwkDescriptionInterface descriptor
protected FwkPanel panel
protected javax.swing.JTextField offsetField
protected javax.swing.JTextField factorField
protected double offset
protected double factor
public MEDScale()
public MEDScale(FwkControllerInterface controller)
controller - must be an instance implementing com.highqsoft.med.MEDInterface.public java.lang.String getVersion()
FwkInterfacegetVersion in interface FwkInterfacegetVersion in class MEDCalculatorpublic static FwkDescriptionInterface getDescriptor()
public double[] calculate(double[] independent,
double[] data)
throws FwkException
calculate in interface MEDCalculatorInterfacecalculate in class MEDCalculatorindependent - An array containing The independent channel.data - The array containing the channel data of interest.FwkExceptionpublic java.lang.String getChannelName(FwkColumnAccessInterface col, double[] limit)
getChannelName in interface MEDCalculatorInterfacegetChannelName in class MEDCalculatorcol - the source channel.limit - a two element array containing the upper and the lower limit.public java.lang.String getChannelColumnName(FwkColumnAccessInterface col, double[] limit)
getChannelColumnName in interface MEDCalculatorInterfacegetChannelColumnName in class MEDCalculatorcol - the source channel.limit - a two element array containing the upper and the lower limit.public double getOffset()
public void setOffset(double offset)
offset - the offset value.public double getFactor()
public void setFactor(double factor)
factor - the factor value.public FwkPanelInterface getCalculatorPanel()
This method should return a dialog to configurate the calculator specific properties.
getCalculatorPanel in interface MEDCalculatorInterfacegetCalculatorPanel in class MEDCalculator