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 FormModifier 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, statusPanel
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
DATA_GENERATORS, DATA_MANIPULATORS, MARKER_GENERATORS, MOUSE_BEHAVIORS, PLOT_CONTROLS
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 |
---|
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, writeToXML
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, 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
addExecuteStateListener, fireExecuteStateEvent, getFwkPort, hasFwkPort, init, isEternal, isRegistered, register, register, register, removeExecuteStateListener, setArguments, setEternal, setPanel, setServiceControlManager
getInfoBusName, getMemberName, isConnected, setInfoBusName, setMemberName
addInfoBusPropertyListener, addInfoBusVetoableListener, getInfoBus, removeInfoBusPropertyListener, removeInfoBusVetoableListener, setInfoBus
getCompany, readConstructor, readingDOM, readingDOM, writeConstructor, writeToXML
getController, setController
getPrintJobName, setPageFormat
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, 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
getNumberOfPages, getPageFormat, getPrintable
getPriority, isInterrupted, setPriority, start, stop
public 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()
FwkInterface
getVersion
in interface FwkInterface
getVersion
in class FwkApplication
public static FwkDescriptionInterface getDescriptor()
public void unregister()
unregister
in interface FwkApplicationInterface
unregister
in class FwkApplication
public boolean exit()
exit
in interface FwkApplicationInterface
exit
in class FwkApplication
public FwkCommandInterface[] getCommands()
getCommands
in interface FwkInstructionInterface
getCommands
in class FwkPersistence
public FwkPanelInterface getPanel()
getPanel
in interface FwkApplicationInterface
getPanel
in class FwkApplication
public FwkPanelInterface getStatusPanel()
getStatusPanel
in interface FwkApplicationInterface
getStatusPanel
in class FwkApplication
public P2DPlotInterface getPlot()
getPlot
in interface MEDInterface
public P2DComponentInterface getTopLevelComponent()
getTopLevelComponent
in interface P2DLayoutableInterface
public P2DCanvasInterface getP2DCanvas()
getP2DCanvas
in interface MEDInterface
public CommandContainerInterface getCommandContainer(java.lang.String name)
getCommandContainer
in interface MEDInterface
name
- 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 FwkDOMHandlerInterface
writeToDOM
in class FwkApplication
document
- 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 FwkDOMHandlerInterface
readFromDOM
in class FwkApplication
doc
- The document object model.element
- The object element node of the asam commander.public void run()
run
in interface java.lang.Runnable
run
in class FwkApplication
public P2DLayouterInterface getLayouter()
getLayouter
in interface MEDInterface
public javax.swing.JLabel getStatusLabel()
getStatusLabel
in interface MEDInterface
public void setPlotMouseListener(javax.swing.event.MouseInputListener listener)
setPlotMouseListener
in interface MEDInterface
listener
- 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 MEDInterface
point
- the point to that a marker should be found.public void updateStatusLabel(boolean flag)
updateStatusLabel
in interface MEDInterface
flag
- if true the status will be updated permanently.public boolean getHorizontalTile()
getHorizontalTile
in interface MEDInterface
public void setHorizontalTile(boolean flag)
setHorizontalTile
in interface MEDInterface
flag
- if public boolean getVerticalTile()
getVerticalTile
in interface MEDInterface
public void setVerticalTile(boolean flag)
setVerticalTile
in interface MEDInterface
flag
- if public static void main(java.lang.String[] args)