public class MED extends FwkApplication implements MEDInterface
This object used 5 command containers. The following table describes the container functionality and the name of the property group to configure the commands located inside these containers.
| Title | Name of the PropertyGroup | Description |
|---|---|---|
| Data Generation | MED.DataGenerator | This container hold command to generate data. |
| Data Manipulation | MED.DataManipulator | This container hold command to manipulate data. |
| Marker Generation | MED.MarkerGeneration | This container hold command to generate markers. |
| Mouse Behavior | MED.MouseBehavior | This container hold command to control the mouse behavior. |
| Plot Control | MED.PlotControl | This container hold command to control the plot. |
| Property Keyword | Datatype | Default | Description |
|---|---|---|---|
| MED.Text.Title | String | MED.Text.Title | The title string of the measurement editor application. |
| Icon.MED | String | com/highqsoft/fwk/images/MED.gif | The icon of the application. |
| Icon.DataManager | String | com/highqsoft/fwk/images/DataManager.gif | The icon of the data manager application. |
| Text.Help | String | Text.Help | The text key for the string Help |
| MED.Text.File | String | MED.Text.File | The text string for the file menu. |
| MED.Text.Data | String | MED.Text.Data | The text string for the data menu. |
| Text.DataManager | String | Text.DataManager | The text string for the data manager menu. |
| MED.Alias.* | String | empty | The aliases for the default selected columns. |
| MED.os_name.File.DataManipulators | String | empty | The filename of a xml file that define the
data manipulators. Replace os_name with the java internal os.name property and replace with spaces with underscores. Via the system info, you are able to detect the java internal string. |
| MED.Class.DataManipulators | String | empty | The name of the Data Manipulator class. The MED tries to read the XML file specified via the keyword MED.os_name.File.DataManipulators first. |
| MED.os_name.File.DataGenerators | String | empty | The filename of a xml file that define the
data generators. Replace os_name with the java internal os.name property and replace with spaces with underscores. Via the system info, you are able to detect the java internal string. |
| MED.Class.DataGenerators | String | empty | The name of the Data Generator class. The MED tries to read the XML file specified via the keyword MED.os_name.File.DataGenerators first. |
| MED.os_name.File.MarkerGenerators | String | empty | The filename of a xml file that define the
marker generators. Replace os_name with the java internal os.name property and replace with spaces with underscores. Via the system info, you are able to detect the java internal string. |
| MED.Class.MarkerGenerators | String | empty | The name of the Marker Generator class. The MED tries to read the XML file specified via the keyword MED.os_name.File.MarkerGenerators first. |
| MED.os_name.File.MouseBehaviors | String | empty | The filename of a xml file that define the
mouse behaviors. Replace os_name with the java internal os.name property and replace with spaces with underscores. Via the system info, you are able to detect the java internal string. |
| MED.Class.MouseBehaviors | String | empty | The name of the Mouse Behaviors class. The MED tries to read the XML file specified via the keyword MED.os_name.File.MouseBehaviors first. |
| MED.os_name.File.PlotControls | String | empty | The filename of a xml file that define the
plot controls. Replace os_name with the java internal os.name property and replace with spaces with underscores. Via the system info, you are able to detect the java internal string. |
| MED.Class.PlotControls | String | empty | The name of the Plot Control class. The MED tries to read the XML file specified via the keyword MED.os_name.File.PlotControls first. |
,
Serialized Form| Modifier and Type | Class and Description |
|---|---|
class |
MED.LayouterConsumer
The consumer class that listens to layouter applications.
|
class |
MED.MouseListener
The mouse listener to find the marker.
|
| Modifier and Type | Field and Description |
|---|---|
protected java.util.HashMap |
containerMap |
protected static FwkDescriptionInterface |
descriptor |
protected MEDInfoBusController |
infoBusController |
protected MED.LayouterConsumer |
layouterConsumer |
protected javax.swing.event.EventListenerList |
listenerList |
protected javax.swing.event.MouseInputListener |
plotMouseListener |
protected javax.swing.JLabel |
statusLabel |
protected boolean |
updateStatusLabel |
static java.lang.String |
version |
applicationThread, args, controller, eternal, executeStateListeners, pageFormat, panel, port, readingDOM, serviceControlManager, statusPanelinfoBusMemberSupportchangeManager, 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, titleNameDATA_GENERATORS, DATA_MANIPULATORS, MARKER_GENERATORS, MOUSE_BEHAVIORS, PLOT_CONTROLSINFOBUS_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 |
|---|
MED() |
| Modifier and Type | Method and Description |
|---|---|
CommandContainerInterface |
addCommandContainer(CommandContainerInterface container)
Add a command container.
|
boolean |
exit()
Exit the application.
|
P2DMarkerGroupInterface |
findMarker(java.awt.geom.Point2D point)
Find a marker.
|
protected void |
fireCommandContainerEvent(int flag,
CommandContainerInterface old,
CommandContainerInterface newC)
Fire the command container event.
|
CommandContainerInterface |
getCommandContainer(java.lang.String name)
Get the command container.
|
FwkCommandInterface[] |
getCommands()
Retrieve the command array.
|
static FwkDescriptionInterface |
getDescriptor() |
boolean |
getHorizontalTile()
Get the horizontal tile flag.
|
P2DLayouterInterface |
getLayouter()
Get a layouter.
|
P2DCanvasInterface |
getP2DCanvas()
Get the P2D canvas.
|
FwkPanelInterface |
getPanel()
Get the panel of this application.
|
P2DPlotInterface |
getPlot()
Get the plot of the canvas.
|
javax.swing.JLabel |
getStatusLabel()
get the status label of the MED.
|
FwkPanelInterface |
getStatusPanel()
Return the status panel.
|
P2DComponentInterface |
getTopLevelComponent()
Get the top level component of the layoutable object.
|
java.lang.String |
getVersion()
Return the version string of the FWK component.
|
boolean |
getVerticalTile()
Get the vertical tile flag.
|
static void |
main(java.lang.String[] args)
Main module of this application.
|
void |
readFromDOM(org.w3c.dom.Document doc,
org.w3c.dom.Element element)
Read from DOM
|
CommandContainerInterface |
removeCommandContainer(CommandContainerInterface container)
Remove a command container.
|
void |
run()
Run the application.
|
void |
setHorizontalTile(boolean flag)
Set the horizontal tile flag.
|
void |
setPlotMouseListener(javax.swing.event.MouseInputListener listener)
Set the plot mouse listener
|
void |
setVerticalTile(boolean flag)
Set the vertical tile flag.
|
void |
unregister()
Unregister the application.
|
void |
updateStatusLabel(boolean flag)
Update the status label permamently.
|
org.w3c.dom.Element |
writeToDOM(org.w3c.dom.Document document,
FwkXmlDtdInterface dtd,
org.w3c.dom.Node node,
java.util.Map classProperties)
Write the container as child to the given DOM node.
|
addExecuteStateListener, destroyController, fireExecuteStateEvent, getController, getFwkPort, getNumberOfPages, getPageFormat, getPrintable, getPrintJobName, getPriority, hasFwkPort, init, isEternal, isInterrupted, isRegistered, print, readConstructor, readingDOM, readingDOM, register, register, register, removeExecuteStateListener, setArguments, setController, setEternal, setPageFormat, setPanel, setPriority, setServiceControlManager, start, stop, writeConstructor, writeToXMLaddInfoBusPropertyListener, 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, 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, waitaddExecuteStateListener, fireExecuteStateEvent, getFwkPort, hasFwkPort, init, isEternal, isRegistered, register, register, register, removeExecuteStateListener, setArguments, setEternal, setPanel, setServiceControlManagergetInfoBusName, getMemberName, isConnected, setInfoBusName, setMemberNameaddInfoBusPropertyListener, addInfoBusVetoableListener, getInfoBus, removeInfoBusPropertyListener, removeInfoBusVetoableListener, setInfoBusgetCompany, readConstructor, readingDOM, readingDOM, writeConstructor, writeToXMLgetController, setControllergetPrintJobName, setPageFormatfireItemAdded, 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, 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, getPresentationStringreleasegetNumberOfPages, getPageFormat, getPrintablegetPriority, isInterrupted, setPriority, start, stoppublic static final java.lang.String version
protected static final FwkDescriptionInterface descriptor
protected java.util.HashMap containerMap
protected javax.swing.event.EventListenerList listenerList
protected MEDInfoBusController infoBusController
protected javax.swing.JLabel statusLabel
protected boolean updateStatusLabel
protected MED.LayouterConsumer layouterConsumer
protected javax.swing.event.MouseInputListener plotMouseListener
public java.lang.String getVersion()
FwkInterfacegetVersion in interface FwkInterfacegetVersion in class FwkApplicationpublic static FwkDescriptionInterface getDescriptor()
public void unregister()
unregister in interface FwkApplicationInterfaceunregister in class FwkApplicationpublic boolean exit()
exit in interface FwkApplicationInterfaceexit in class FwkApplicationpublic FwkCommandInterface[] getCommands()
getCommands in interface FwkInstructionInterfacegetCommands in class FwkPersistencepublic FwkPanelInterface getPanel()
getPanel in interface FwkApplicationInterfacegetPanel in class FwkApplicationpublic FwkPanelInterface getStatusPanel()
getStatusPanel in interface FwkApplicationInterfacegetStatusPanel in class FwkApplicationpublic P2DPlotInterface getPlot()
getPlot in interface MEDInterfacepublic P2DComponentInterface getTopLevelComponent()
getTopLevelComponent in interface P2DLayoutableInterfacepublic P2DCanvasInterface getP2DCanvas()
getP2DCanvas in interface MEDInterfacepublic CommandContainerInterface getCommandContainer(java.lang.String name)
getCommandContainer in interface MEDInterfacename - the name of the container. Use predefined constants.public CommandContainerInterface addCommandContainer(CommandContainerInterface container)
container - the command container.public CommandContainerInterface removeCommandContainer(CommandContainerInterface container)
container - the command container.protected void fireCommandContainerEvent(int flag,
CommandContainerInterface old,
CommandContainerInterface newC)
public org.w3c.dom.Element writeToDOM(org.w3c.dom.Document document,
FwkXmlDtdInterface dtd,
org.w3c.dom.Node node,
java.util.Map classProperties)
writeToDOM in interface FwkDOMHandlerInterfacewriteToDOM in class FwkApplicationdocument - The documnent Object Model.node - The parent node.classProperties - Map the contains the writable object properties.
May be null.public void readFromDOM(org.w3c.dom.Document doc,
org.w3c.dom.Element element)
readFromDOM in interface FwkDOMHandlerInterfacereadFromDOM in class FwkApplicationdoc - The document object model.element - The object element node of the asam commander.public void run()
run in interface java.lang.Runnablerun in class FwkApplicationpublic P2DLayouterInterface getLayouter()
getLayouter in interface MEDInterfacepublic javax.swing.JLabel getStatusLabel()
getStatusLabel in interface MEDInterfacepublic void setPlotMouseListener(javax.swing.event.MouseInputListener listener)
setPlotMouseListener in interface MEDInterfacelistener - the new listener. The old one will be removed.
If the listener is null, then the internal plot mouse listener
will be used.public P2DMarkerGroupInterface findMarker(java.awt.geom.Point2D point)
findMarker in interface MEDInterfacepoint - the point to that a marker should be found.public void updateStatusLabel(boolean flag)
updateStatusLabel in interface MEDInterfaceflag - if true the status will be updated permanently.public boolean getHorizontalTile()
getHorizontalTile in interface MEDInterfacepublic void setHorizontalTile(boolean flag)
setHorizontalTile in interface MEDInterfaceflag - if public boolean getVerticalTile()
getVerticalTile in interface MEDInterfacepublic void setVerticalTile(boolean flag)
setVerticalTile in interface MEDInterfaceflag - if public static void main(java.lang.String[] args)