public class P2DMarkerGroup extends FwkInfoBusMember implements P2DMarkerGroupInterface
Modifier and Type | Field and Description |
---|---|
protected static FwkDescriptionInterface |
descriptor |
static java.lang.String |
version |
infoBusMemberSupport
changeManager, properties, 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
CENTER, LOWER, UPPER
INFOBUS_SOURCE
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
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, setName
addDataItemChangeListener, fireItemAdded, fireItemDeleted, fireItemRevoked, fireItemValueChanged, getName, getProperty, getPropertyGroup, getSource, isChangeManagerSuspended, release, removeDataItemChangeListener, setProperty, 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, 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, getTransferData, getTransferDataFlavors, isDataFlavorSupported, lostOwnership, setClassName, setCreationDate, toString
getNiceVersion
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getInfoBusName, getMemberName, isConnected, setInfoBusName, setMemberName
fireItemAdded, fireItemDeleted, fireItemRevoked, fireItemValueChanged, getProperty, getPropertyGroup, setProperty, setPropertyGroup, suspendChangeManager
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
getAuthor, 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, setTitleName
getTransferData, getTransferDataFlavors, isDataFlavorSupported
addCommand, addCommand, addToGroup, addToGroup, clearCommands, commandsAvailable, deleteGroup, getCommand, getGroup, groupExists, removeCommand, removeFromGroup, setCommands
getPresentationString, getPresentationString
release
addInfoBusPropertyListener, addInfoBusVetoableListener, getInfoBus, removeInfoBusPropertyListener, removeInfoBusVetoableListener, setInfoBus
getName, setProperty
public 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()
FwkInterface
getVersion
in interface FwkInterface
getVersion
in class FwkInfoBusMember
public static FwkDescriptionInterface getDescriptor()
public void unregister()
unregister
in interface P2DMarkerGroupInterface
public java.lang.String getValueAsString()
getValueAsString
in interface javax.infobus.ImmediateAccess
public void setValue(java.lang.Object col) throws javax.infobus.InvalidDataException, FwkException
setValue
in interface javax.infobus.ImmediateAccess
value
- the new value.javax.infobus.InvalidDataException
FwkException
public boolean hasValidValues()
hasValidValues
in interface FwkInfoBusImmediateAccessInterface
hasValidValues
in interface P2DMarkerGroupInterface
public void setValidValues(boolean flag)
setValidValues
in interface FwkInfoBusImmediateAccessInterface
flag
- true if the values should be valid.public java.lang.Object getValueAsObject()
getValueAsObject
in interface javax.infobus.ImmediateAccess
public int getChildrenCount(boolean recursive)
getChildrenCount
in interface FwkInfoBusItemGroupInterface
recursive
- if true the counter will parse the child groups.public FwkArrayInterface getChildren()
getChildren
in interface FwkInfoBusItemGroupInterface
public FwkArrayInterface getChildren(FwkArrayInterface array)
getChildren
in interface FwkInfoBusItemGroupInterface
array
- 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 FwkInfoBusItemGroupInterface
public FwkArrayInterface getAllChildren(FwkArrayInterface arr)
getAllChildren
in interface FwkInfoBusItemGroupInterface
array
- 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 FwkInfoBusItemGroupInterface
public void setChildren(FwkArrayInterface array)
setChildren
in interface FwkInfoBusItemGroupInterface
array
- An array containing the names of children of the group.public boolean addChild(FwkInfoBusItemGroupInterface child)
addChild
in interface FwkInfoBusItemGroupInterface
child
- The new child.public boolean containsChild(FwkInfoBusItemGroupInterface child)
containsChild
in interface FwkInfoBusItemGroupInterface
child
- the child to be checked.public void removeChild(FwkInfoBusItemGroupInterface child)
removeChild
in interface FwkInfoBusItemGroupInterface
child
- 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 FwkInfoBusItemGroupInterface
child
- The new child.public void removeAllChildren()
removeAllChildren
in interface FwkInfoBusItemGroupInterface
public void addChildListener(FwkChildListenerInterface l)
addChildListener
in interface FwkInfoBusItemGroupInterface
l
- The listener to be added.public void removeChildListener(FwkChildListenerInterface l)
removeChildListener
in interface FwkInfoBusItemGroupInterface
l
- The listener to be removed.public boolean isGroup()
isGroup
in interface FwkInfoBusImmediateAccessInterface
public double getLowerLimit()
getLowerLimit
in interface P2DRangeInterface
public double getUpperLimit()
getUpperLimit
in interface P2DRangeInterface
public long getLowerIndex()
getLowerIndex
in interface P2DMarkerGroupInterface
public long getUpperIndex()
getUpperIndex
in interface P2DMarkerGroupInterface
public long getLowerIndex(java.lang.String colName)
getLowerIndex
in interface P2DMarkerGroupInterface
colName
- 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 P2DMarkerGroupInterface
colName
- 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 P2DMarkerGroupInterface
public long[] getRangeIndex(java.lang.String colName)
getRangeIndex
in interface P2DMarkerGroupInterface
colName
- The name of the column to that the relative index should be returned.public void setArea(double lower, double upper)
setArea
in interface P2DMarkerGroupInterface
lower
- the lower coordinate of the marker.upper
- the upper coordinate of the marker.public void setLowerLimit(double lower)
setLowerLimit
in interface P2DRangeInterface
lower
- the lower value of the marker.public void setUpperLimit(double upper)
setUpperLimit
in interface P2DRangeInterface
upper
- the upper value of the marker.public void set(double value)
set
in interface P2DMarkerGroupInterface
value.
- public void setMarker(int marker)
setMarker
in interface P2DMarkerGroupInterface
marker
- Use the predefined value from interface or null
to erase the marker flag.marker
- The marker flag.public int getMarker()
getMarker
in interface P2DMarkerGroupInterface
public void setValid(boolean flag)
flag
- if false the value will be invalid.public P2DRange1DInterface getRange()
getRange
in interface P2DMarkerGroupInterface
getRange
in interface P2DRangeInterface
public void setRange(P2DRange1DInterface range)
setRange
in interface P2DMarkerGroupInterface
setRange
in interface P2DRangeInterface
Range1D
- The new axis range.public void setRange(double lower, double upper)
setRange
in interface P2DMarkerGroupInterface
lower
- The lower limit.upper
- The upper limit.public P2DMarkerGroupInterface findMarkerGroup(double value, java.lang.String bColumn, double tolerance)
findMarkerGroup
in interface P2DMarkerGroupInterface
value
- 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 P2DMarkerGroupInterface
public void setColor(java.awt.Color c)
setColor
in interface P2DMarkerGroupInterface
c
- The new color.public java.awt.Color getColor()
getColor
in interface P2DMarkerGroupInterface
public FwkCommandInterface[] getCommands()
getCommands
in interface FwkInstructionInterface
getCommands
in class FwkPersistence
public void propertyChange(java.beans.PropertyChangeEvent ev)
propertyChange
in interface java.beans.PropertyChangeListener
ev
- the property change event.public void setBoundColumn(java.lang.String columnName)
setBoundColumn
in interface P2DMarkerGroupInterface
column
- The name of the column to that the marker should be bound.public java.lang.String getBoundColumn()
getBoundColumn
in interface P2DMarkerGroupInterface