public class MEDCursorPosition extends FwkInfoBusDataAccess implements MEDCursorPositionInterface
,
Serialized FormFwkInfoBusImmediateAccess.ElementConsumer| Modifier and Type | Field and Description |
|---|---|
protected int[] |
dimension
The array containing the dimension in each direction.
|
protected java.lang.String[][] |
units
The array containing the unit string in each direction.
|
protected double[][] |
value
The array containing the values.
|
static java.lang.String |
version |
children, properties, validchangeManager, suspendChangeManagersourceauthor, 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, ICON, iconCount, iconKey, internetAddress, name, titleNameINDEX, INDEX_X, INDEX_Y, INDEX_Z, UNIT, UNIT_X, UNIT_Y, UNIT_ZAUTHOR, 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_NAMEINFOBUS_SOURCE| Constructor and Description |
|---|
MEDCursorPosition(int count,
int dim)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int[] |
getDimensions()
Get the dimension of the item.
|
java.lang.Object |
getItemByCoordinates(int[] coord)
Get the value by coordinates.
|
java.lang.String[][] |
getUnitString()
Get the unit string of the cursor.
|
java.lang.String |
getVersion()
Return the version string of the FWK component.
|
static void |
main(java.lang.String[] args)
The main testing method.
|
void |
setItemByCoordinates(int[] coord,
java.lang.Object item)
Set a new value at the specified coordinate.
|
void |
setUnitString(java.lang.String[][] units)
Set the unit string for each direction.
|
javax.infobus.ArrayAccess |
subdivide(int[] start,
int[] end)
Subdivide the array.
|
java.lang.String |
toString()
Return the string presentation of the object.
|
addChild, addChildListener, containsChild, fireChildAdded, fireChildRemoved, getAllChildren, getAllChildren, getChildren, getChildren, getChildrenCount, getProperty, getTransferData, getTransferDataFlavors, getValueAsObject, getValueAsString, hasChildren, hasValidValues, isDataFlavorSupported, isGroup, removeAllChildren, removeChild, removeChild, removeChildListener, setChildren, setProperty, setValidValues, setValueaddDataItemChangeListener, fireItemAdded, fireItemDeleted, fireItemRevoked, fireItemValueChanged, getName, getPropertyGroup, getSource, isChangeManagerSuspended, release, removeDataItemChangeListener, setName, setPropertyGroup, suspendChangeManageraddCommand, addCommand, addToGroup, addToGroup, addVetoableChangeListener, addVetoableChangeListener, clearCommands, commandsAvailable, compareTo, deleteGroup, destroyController, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getAuthor, getBuild, getCommand, getCommands, getCommands, getCompany, getCompanyInternetAddress, getCopyright, getCreationDate, getCreationDate, getDateFormatString, getDescription, getFwkMimeTypes, getGroup, getIcon, getIcon, getIconKey, getIconKey, getPersistentObjectNames, getSupportEMail, getTitle, getTitleName, getVetoableChangeArray, getVetoableChangeListenerArray, getVetoableChangeListenerArray, groupExists, removeCommand, removeFromGroup, removeVetoableChangeListener, removeVetoableChangeListener, setAuthor, setBuild, setCommands, setCompany, setCompanyInternetAddress, setCopyright, setCreationDate, setDateFormatString, setDescription, setDescriptor, setDescriptor, setIcon, setIcon, setIconKey, setIconKey, setSource, setSupportEMail, setTitleNameaddPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeArray, getPropertyChangeListenerArray, getPropertyChangeListenerArray, isPropertyChangeEventSuspended, removePropertyChangeListener, removePropertyChangeListener, suspendPropertyChangeEventsgetClassName, getPresentationString, getPresentationString, lostOwnership, setClassName, setCreationDategetNiceVersionclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetName, hasValidValues, isGroup, setProperty, setValidValuesgetAuthor, getBuild, getClassName, getCompany, getCompanyInternetAddress, getCopyright, getCreationDate, getCreationDate, getDateFormatString, getDescription, getIcon, getIcon, getIconKey, getIconKey, getPresentationString, getPresentationString, getSupportEMail, getTitle, getTitleName, setAuthor, setBuild, setClassName, setCompany, setCompanyInternetAddress, setCopyright, setCreationDate, setCreationDate, setDateFormatString, setDescription, setDescriptor, setIcon, setIcon, setIconKey, setIconKey, setName, setSupportEMail, setTitleNamereleasegetTransferData, getTransferDataFlavors, isDataFlavorSupportedaddChild, addChildListener, containsChild, getAllChildren, getAllChildren, getChildren, getChildren, getChildrenCount, hasChildren, removeAllChildren, removeChild, removeChild, removeChildListener, setChildrengetPresentationString, getValueAsObject, getValueAsString, setValueaddDataItemChangeListener, removeDataItemChangeListenergetCommands, getPersistentObjectNamesdestroyControlleraddPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeArray, getPropertyChangeListenerArray, getPropertyChangeListenerArray, isPropertyChangeEventSuspended, removePropertyChangeListener, removePropertyChangeListener, setSource, suspendPropertyChangeEventsaddVetoableChangeListener, addVetoableChangeListener, getVetoableChangeArray, getVetoableChangeListenerArray, getVetoableChangeListenerArray, removeVetoableChangeListener, removeVetoableChangeListeneraddCommand, addCommand, addToGroup, addToGroup, clearCommands, commandsAvailable, deleteGroup, getCommand, getCommands, getGroup, groupExists, removeCommand, removeFromGroup, setCommandsgetPresentationString, getPresentationStringpublic static final java.lang.String version
protected int[] dimension
protected java.lang.String[][] units
protected double[][] value
public MEDCursorPosition(int count,
int dim)
count - The number of the stored coordinates (index and unit)dim - The dimension of the coordinate array.public java.lang.String getVersion()
FwkInterfacegetVersion in interface FwkInterfacegetVersion in class FwkInfoBusDataAccesspublic java.lang.String[][] getUnitString()
getUnitString in interface MEDCursorPositionInterfacepublic void setUnitString(java.lang.String[][] units)
setUnitString in interface MEDCursorPositionInterfaceunits - An array conatining the unit string in each direction.public java.lang.Object getItemByCoordinates(int[] coord)
getItemByCoordinates in interface javax.infobus.ArrayAccessgetItemByCoordinates in class FwkInfoBusDataAccesscoord - The coordinates of the values to be returned.MEDCursorPositionInterfacepublic int[] getDimensions()
getDimensions in interface javax.infobus.ArrayAccessgetDimensions in class FwkInfoBusDataAccesspublic javax.infobus.ArrayAccess subdivide(int[] start,
int[] end)
subdivide in interface javax.infobus.ArrayAccesssubdivide in class FwkInfoBusDataAccessstart - The starting coordinates.end - The starting coordinates.public void setItemByCoordinates(int[] coord,
java.lang.Object item)
throws javax.infobus.InvalidDataException,
FwkException
setItemByCoordinates in interface javax.infobus.ArrayAccesssetItemByCoordinates in class FwkInfoBusDataAccesscoord - The coordinates where the new value should be placed.value - The new value.javax.infobus.InvalidDataExceptionFwkExceptionpublic java.lang.String toString()
toString in class FwkDescriptionpublic static void main(java.lang.String[] args)