public class P2DMarkerGroup extends FwkInfoBusMember implements P2DMarkerGroupInterface
| Modifier and Type | Field and Description |
|---|---|
protected static FwkDescriptionInterface |
descriptor |
static java.lang.String |
version |
infoBusMemberSupportchangeManager, properties, 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, titleNameCENTER, LOWER, UPPERINFOBUS_SOURCEAUTHOR, 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 |
|---|
P2DMarkerGroup(java.lang.String name)
The default constructor.
|
P2DMarkerGroup(java.lang.String name,
double lower,
double upper)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addChild(FwkInfoBusItemGroupInterface child)
Add a child to group.
|
void |
addChildListener(FwkChildListenerInterface l)
Add a child listener.
|
boolean |
containsChild(FwkInfoBusItemGroupInterface child)
Return a boolean whether the given child is already in group.
|
protected int |
findChild(java.lang.String name)
Find a child.
|
P2DMarkerGroupInterface |
findMarkerGroup(double value,
java.lang.String bColumn,
double tolerance)
Find a marker with the given tolerance.
|
FwkArrayInterface |
getAllChildren()
Returns the children of the group.
|
FwkArrayInterface |
getAllChildren(FwkArrayInterface arr)
Returns the children of the group.
|
java.lang.String |
getBoundColumn()
Get the name of the bounded column.
|
FwkArrayInterface |
getChildren()
Returns the children of the group.
|
FwkArrayInterface |
getChildren(FwkArrayInterface array)
Returns the children of the group.
|
int |
getChildrenCount(boolean recursive)
Return the total number of children.
|
java.awt.Color |
getColor()
Get the current color of the marker.
|
FwkCommandInterface[] |
getCommands()
Get commands.
|
static FwkDescriptionInterface |
getDescriptor() |
long |
getLowerIndex()
Returns the lower value index of the marker.
|
long |
getLowerIndex(java.lang.String colName)
Returns the lower value index of the marker.
|
double |
getLowerLimit()
Returns the lower value of the marker.
|
int |
getMarker()
get the marker falg.
|
P2DRange1DInterface |
getRange()
Returns the effective range of the marker.
|
long[] |
getRangeIndex()
Returns the index range of the marker.
|
long[] |
getRangeIndex(java.lang.String colName)
Returns the upper value index of the marker.
|
java.lang.String |
getUnit()
Get unit string.
|
long |
getUpperIndex()
Returns the upper value index of the marker.
|
long |
getUpperIndex(java.lang.String colName)
Returns the upper value index of the marker.
|
double |
getUpperLimit()
Returns the upper value of the marker.
|
java.lang.Object |
getValueAsObject()
Get the value as object.
|
java.lang.String |
getValueAsString()
Get the vale as string.
|
java.lang.String |
getVersion()
Return the version string of the FWK component.
|
boolean |
hasChildren()
Returns a boolean that indicates whether the group has children.
|
boolean |
hasValidValues()
Returns a boolean whether the item has valid values.
|
boolean |
isGroup()
Returns a boolean that indicates whether the item is a group.
|
void |
propertyChange(java.beans.PropertyChangeEvent ev)
Revoked when a property changed.
|
void |
removeAllChildren()
Remove all children from group.
|
void |
removeChild(FwkInfoBusItemGroupInterface child)
Remove a child to group.
|
void |
removeChild(FwkInfoBusItemGroupInterface child,
boolean recursive)
Remove a child recursively from group.
|
void |
removeChildListener(FwkChildListenerInterface l)
Remove a child listener.
|
void |
set(double value)
Sets the value that is marked.
|
void |
setArea(double lower,
double upper)
Set the area of the marker.
|
void |
setBoundColumn(java.lang.String columnName)
Bind the marker to a specific column.
|
void |
setChildren(FwkArrayInterface array)
Sets the children of the group.
|
void |
setColor(java.awt.Color c)
Set the color of the marker.
|
void |
setLowerLimit(double lower)
Set the lower value of the marker.
|
void |
setMarker(int marker)
Set the marker.
|
void |
setRange(double lower,
double upper)
Set the range.
|
void |
setRange(P2DRange1DInterface range)
Set the range.
|
void |
setUpperLimit(double upper)
Set the upper value of the marker.
|
void |
setValid(boolean flag)
Set the group valid flag.
|
void |
setValidValues(boolean flag)
Set the flag for valid values.
|
void |
setValue(java.lang.Object col)
Set the value of the item.
|
void |
unregister()
Unregister the marker group from producer.
|
addInfoBusPropertyListener, addInfoBusVetoableListener, finalize, getInfoBus, getInfoBusName, getMemberName, isConnected, joinInfoBus, removeInfoBusPropertyListener, removeInfoBusVetoableListener, setInfoBus, setInfoBusName, setMemberName, setNameaddDataItemChangeListener, fireItemAdded, fireItemDeleted, fireItemRevoked, fireItemValueChanged, getName, getProperty, getPropertyGroup, getSource, isChangeManagerSuspended, release, removeDataItemChangeListener, setProperty, setPropertyGroup, suspendChangeManageraddCommand, addCommand, addToGroup, addToGroup, addVetoableChangeListener, addVetoableChangeListener, clearCommands, commandsAvailable, compareTo, deleteGroup, destroyController, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getAuthor, getBuild, getCommand, 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, getTransferData, getTransferDataFlavors, isDataFlavorSupported, lostOwnership, setClassName, setCreationDate, toStringgetNiceVersionclone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetInfoBusName, getMemberName, isConnected, setInfoBusName, setMemberNamefireItemAdded, fireItemDeleted, fireItemRevoked, fireItemValueChanged, getProperty, getPropertyGroup, setProperty, setPropertyGroup, suspendChangeManagergetCommands, getPersistentObjectNamesdestroyControlleraddPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeArray, getPropertyChangeListenerArray, getPropertyChangeListenerArray, isPropertyChangeEventSuspended, removePropertyChangeListener, removePropertyChangeListener, setSource, suspendPropertyChangeEventsaddVetoableChangeListener, addVetoableChangeListener, getVetoableChangeArray, getVetoableChangeListenerArray, getVetoableChangeListenerArray, removeVetoableChangeListener, removeVetoableChangeListenergetAuthor, getBuild, getClassName, getCompany, getCompanyInternetAddress, getCopyright, getCreationDate, getCreationDate, getDateFormatString, getDescription, getIcon, getIcon, getIconKey, getIconKey, getName, getPresentationString, getPresentationString, getSupportEMail, getTitle, getTitleName, setAuthor, setBuild, setClassName, setCompany, setCompanyInternetAddress, setCopyright, setCreationDate, setCreationDate, setDateFormatString, setDescription, setDescriptor, setIcon, setIcon, setIconKey, setIconKey, setName, setSupportEMail, setTitleNamegetTransferData, getTransferDataFlavors, isDataFlavorSupportedaddCommand, addCommand, addToGroup, addToGroup, clearCommands, commandsAvailable, deleteGroup, getCommand, getGroup, groupExists, removeCommand, removeFromGroup, setCommandsgetPresentationString, getPresentationStringreleaseaddInfoBusPropertyListener, addInfoBusVetoableListener, getInfoBus, removeInfoBusPropertyListener, removeInfoBusVetoableListener, setInfoBusgetName, setPropertypublic static final java.lang.String version
protected static final FwkDescriptionInterface descriptor
public P2DMarkerGroup(java.lang.String name)
name - The name of the grouppublic P2DMarkerGroup(java.lang.String name,
double lower,
double upper)
name - The name of the grouplower - the lower value.upper - the upper value.public java.lang.String getVersion()
FwkInterfacegetVersion in interface FwkInterfacegetVersion in class FwkInfoBusMemberpublic static FwkDescriptionInterface getDescriptor()
public void unregister()
unregister in interface P2DMarkerGroupInterfacepublic java.lang.String getValueAsString()
getValueAsString in interface javax.infobus.ImmediateAccesspublic void setValue(java.lang.Object col)
throws javax.infobus.InvalidDataException,
FwkException
setValue in interface javax.infobus.ImmediateAccessvalue - the new value.javax.infobus.InvalidDataExceptionFwkExceptionpublic boolean hasValidValues()
hasValidValues in interface FwkInfoBusImmediateAccessInterfacehasValidValues in interface P2DMarkerGroupInterfacepublic void setValidValues(boolean flag)
setValidValues in interface FwkInfoBusImmediateAccessInterfaceflag - true if the values should be valid.public java.lang.Object getValueAsObject()
getValueAsObject in interface javax.infobus.ImmediateAccesspublic int getChildrenCount(boolean recursive)
getChildrenCount in interface FwkInfoBusItemGroupInterfacerecursive - if true the counter will parse the child groups.public FwkArrayInterface getChildren()
getChildren in interface FwkInfoBusItemGroupInterfacepublic FwkArrayInterface getChildren(FwkArrayInterface array)
getChildren in interface FwkInfoBusItemGroupInterfacearray - An array to store the children.
If this parameter is null the routine must create it.
The parameter or the newly created array will be returned.public FwkArrayInterface getAllChildren()
getAllChildren in interface FwkInfoBusItemGroupInterfacepublic FwkArrayInterface getAllChildren(FwkArrayInterface arr)
getAllChildren in interface FwkInfoBusItemGroupInterfacearray - An array to store the recursive children.
If this parameter is null the routine must create it.
The parameter or the newly created array will be returned.public boolean hasChildren()
hasChildren in interface FwkInfoBusItemGroupInterfacepublic void setChildren(FwkArrayInterface array)
setChildren in interface FwkInfoBusItemGroupInterfacearray - An array containing the names of children of the group.public boolean addChild(FwkInfoBusItemGroupInterface child)
addChild in interface FwkInfoBusItemGroupInterfacechild - The new child.public boolean containsChild(FwkInfoBusItemGroupInterface child)
containsChild in interface FwkInfoBusItemGroupInterfacechild - the child to be checked.public void removeChild(FwkInfoBusItemGroupInterface child)
removeChild in interface FwkInfoBusItemGroupInterfacechild - The new child.protected int findChild(java.lang.String name)
name - The name of the component.public void removeChild(FwkInfoBusItemGroupInterface child, boolean recursive)
removeChild in interface FwkInfoBusItemGroupInterfacechild - The new child.public void removeAllChildren()
removeAllChildren in interface FwkInfoBusItemGroupInterfacepublic void addChildListener(FwkChildListenerInterface l)
addChildListener in interface FwkInfoBusItemGroupInterfacel - The listener to be added.public void removeChildListener(FwkChildListenerInterface l)
removeChildListener in interface FwkInfoBusItemGroupInterfacel - The listener to be removed.public boolean isGroup()
isGroup in interface FwkInfoBusImmediateAccessInterfacepublic double getLowerLimit()
getLowerLimit in interface P2DRangeInterfacepublic double getUpperLimit()
getUpperLimit in interface P2DRangeInterfacepublic long getLowerIndex()
getLowerIndex in interface P2DMarkerGroupInterfacepublic long getUpperIndex()
getUpperIndex in interface P2DMarkerGroupInterfacepublic long getLowerIndex(java.lang.String colName)
getLowerIndex in interface P2DMarkerGroupInterfacecolName - The name of the column to that the relative index should be returned.
If the column with the specified name was not found then the
internal bound column name is used.public long getUpperIndex(java.lang.String colName)
getUpperIndex in interface P2DMarkerGroupInterfacecolName - The name of the column to that the relative index should be returned.
If the column with the specified name was not found then the
internal bound column name is used.public long[] getRangeIndex()
getRangeIndex in interface P2DMarkerGroupInterfacepublic long[] getRangeIndex(java.lang.String colName)
getRangeIndex in interface P2DMarkerGroupInterfacecolName - The name of the column to that the relative index should be returned.public void setArea(double lower,
double upper)
setArea in interface P2DMarkerGroupInterfacelower - the lower coordinate of the marker.upper - the upper coordinate of the marker.public void setLowerLimit(double lower)
setLowerLimit in interface P2DRangeInterfacelower - the lower value of the marker.public void setUpperLimit(double upper)
setUpperLimit in interface P2DRangeInterfaceupper - the upper value of the marker.public void set(double value)
set in interface P2DMarkerGroupInterfacevalue. - public void setMarker(int marker)
setMarker in interface P2DMarkerGroupInterfacemarker - Use the predefined value from interface or null
to erase the marker flag.marker - The marker flag.public int getMarker()
getMarker in interface P2DMarkerGroupInterfacepublic void setValid(boolean flag)
flag - if false the value will be invalid.public P2DRange1DInterface getRange()
getRange in interface P2DMarkerGroupInterfacegetRange in interface P2DRangeInterfacepublic void setRange(P2DRange1DInterface range)
setRange in interface P2DMarkerGroupInterfacesetRange in interface P2DRangeInterfaceRange1D - The new axis range.public void setRange(double lower,
double upper)
setRange in interface P2DMarkerGroupInterfacelower - The lower limit.upper - The upper limit.public P2DMarkerGroupInterface findMarkerGroup(double value, java.lang.String bColumn, double tolerance)
findMarkerGroup in interface P2DMarkerGroupInterfacevalue - The value that should be contained by the marker.bColumn - The name of the bound column.tolerance - The tolerance value.public java.lang.String getUnit()
getUnit in interface P2DMarkerGroupInterfacepublic void setColor(java.awt.Color c)
setColor in interface P2DMarkerGroupInterfacec - The new color.public java.awt.Color getColor()
getColor in interface P2DMarkerGroupInterfacepublic FwkCommandInterface[] getCommands()
getCommands in interface FwkInstructionInterfacegetCommands in class FwkPersistencepublic void propertyChange(java.beans.PropertyChangeEvent ev)
propertyChange in interface java.beans.PropertyChangeListenerev - the property change event.public void setBoundColumn(java.lang.String columnName)
setBoundColumn in interface P2DMarkerGroupInterfacecolumn - The name of the column to that the marker should be bound.public java.lang.String getBoundColumn()
getBoundColumn in interface P2DMarkerGroupInterface