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, valid
changeManager, suspendChangeManager
source
author, 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, titleName
INDEX, INDEX_X, INDEX_Y, INDEX_Z, UNIT, UNIT_X, UNIT_Y, UNIT_Z
AUTHOR, 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
INFOBUS_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, setValue
addDataItemChangeListener, fireItemAdded, fireItemDeleted, fireItemRevoked, fireItemValueChanged, getName, getPropertyGroup, getSource, isChangeManagerSuspended, release, removeDataItemChangeListener, setName, setPropertyGroup, suspendChangeManager
addCommand, 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, setTitleName
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeArray, getPropertyChangeListenerArray, getPropertyChangeListenerArray, isPropertyChangeEventSuspended, removePropertyChangeListener, removePropertyChangeListener, suspendPropertyChangeEvents
getClassName, getPresentationString, getPresentationString, lostOwnership, setClassName, setCreationDate
getNiceVersion
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getName, hasValidValues, isGroup, setProperty, setValidValues
getAuthor, 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, setTitleName
release
getTransferData, getTransferDataFlavors, isDataFlavorSupported
addChild, addChildListener, containsChild, getAllChildren, getAllChildren, getChildren, getChildren, getChildrenCount, hasChildren, removeAllChildren, removeChild, removeChild, removeChildListener, setChildren
getPresentationString, getValueAsObject, getValueAsString, setValue
addDataItemChangeListener, removeDataItemChangeListener
getCommands, getPersistentObjectNames
destroyController
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeArray, getPropertyChangeListenerArray, getPropertyChangeListenerArray, isPropertyChangeEventSuspended, removePropertyChangeListener, removePropertyChangeListener, setSource, suspendPropertyChangeEvents
addVetoableChangeListener, addVetoableChangeListener, getVetoableChangeArray, getVetoableChangeListenerArray, getVetoableChangeListenerArray, removeVetoableChangeListener, removeVetoableChangeListener
addCommand, addCommand, addToGroup, addToGroup, clearCommands, commandsAvailable, deleteGroup, getCommand, getCommands, getGroup, groupExists, removeCommand, removeFromGroup, setCommands
getPresentationString, getPresentationString
public 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()
FwkInterface
getVersion
in interface FwkInterface
getVersion
in class FwkInfoBusDataAccess
public java.lang.String[][] getUnitString()
getUnitString
in interface MEDCursorPositionInterface
public void setUnitString(java.lang.String[][] units)
setUnitString
in interface MEDCursorPositionInterface
units
- An array conatining the unit string in each direction.public java.lang.Object getItemByCoordinates(int[] coord)
getItemByCoordinates
in interface javax.infobus.ArrayAccess
getItemByCoordinates
in class FwkInfoBusDataAccess
coord
- The coordinates of the values to be returned.MEDCursorPositionInterface
public int[] getDimensions()
getDimensions
in interface javax.infobus.ArrayAccess
getDimensions
in class FwkInfoBusDataAccess
public javax.infobus.ArrayAccess subdivide(int[] start, int[] end)
subdivide
in interface javax.infobus.ArrayAccess
subdivide
in class FwkInfoBusDataAccess
start
- 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.ArrayAccess
setItemByCoordinates
in class FwkInfoBusDataAccess
coord
- The coordinates where the new value should be placed.value
- The new value.javax.infobus.InvalidDataException
FwkException
public java.lang.String toString()
toString
in class FwkDescription
public static void main(java.lang.String[] args)