Package fr.esrf.tangoatk.widget.jdraw
Class TangoSynopticHandler
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
fr.esrf.tangoatk.widget.util.jdraw.JDrawEditor
fr.esrf.tangoatk.widget.jdraw.TangoSynopticHandler
- All Implemented Interfaces:
fr.esrf.tangoatk.core.IAttributeStateListener,fr.esrf.tangoatk.core.IBooleanScalarListener,fr.esrf.tangoatk.core.IDevStateScalarListener,fr.esrf.tangoatk.core.IDevStateSpectrumListener,fr.esrf.tangoatk.core.IEnumScalarListener,fr.esrf.tangoatk.core.IErrorListener,fr.esrf.tangoatk.core.INumberScalarListener,fr.esrf.tangoatk.core.IStateListener,fr.esrf.tangoatk.core.IStatusListener,DropTargetListener,ActionListener,ComponentListener,KeyListener,MouseListener,MouseMotionListener,WindowListener,ImageObserver,MenuContainer,Serializable,EventListener
- Direct Known Subclasses:
SynopticFileViewer
public class TangoSynopticHandler
extends JDrawEditor
implements fr.esrf.tangoatk.core.IStateListener, fr.esrf.tangoatk.core.IStatusListener, fr.esrf.tangoatk.core.INumberScalarListener, fr.esrf.tangoatk.core.IEnumScalarListener, fr.esrf.tangoatk.core.IDevStateScalarListener, fr.esrf.tangoatk.core.IBooleanScalarListener, fr.esrf.tangoatk.core.IDevStateSpectrumListener, WindowListener
TangoSynopticHandler is the base class used to display and animate any
tango synoptic drawing made with the JDraw drawing tool "JDraw".
The drawing file is browsed and a behaviour is attached to each drawing
component according to the tango object which is associated with.
While brawsing the drawing file the name of the graphical component
determines the associated tango object:
For example if inside the synoptic drawing a simple rectangle is given
the name "eas/test-api/1" it will be associated to the tango device
eas/test-api/1.
The animation on the graphical component depends on the type of the
Tango object (device, attribute, command) and the type of JDraw graphical
component (simple graphical component, multi-state JDraw object, interactive JDraw object)
Here are the default (state) animations provided :
- Tango device or Tango state attribute - simple graphical component : the colour of the graphical component represents the state of the tango device (on, off, alarm, fault...)
- Tango device or Tango state attribute - Dynamic JDraw object (Dyno) : the Dyno is a group of JDobject where each of them represents the drawing which should be visible for one or more tango state. This way to each state (on, off, alarm, fault, ...) is associated a different form.
- Tango device command - interactive JDraw object : no state animation
- Tool Tip : A tooltip can be associated to any tango device. The tooltip can display either the name of the device or it's state according to the tooltip mode used.
In addition to the animation a default interaction behaviour is provided (reaction to mouse clicks). Here are the default interactions :
- Tango device or Tango state attribute - simple graphical component : Click on the graphical component will launch a java class whose name has been specified during the drawing phase. If this class name is missing, the generic tool atkpanel is launched. If the class name is set to the predefined string "noPanel" the atkpanel is not launched.
- Tango device - multi-state JDraw object : the same interaction model
- Tango device command - interactive JDraw object : Click on the JDraw object will display an "input / output argument window" if the input is required or execute the associated command on the tango device if no input is required.
- className: If the Jdraw component is asscoiated to a Tango device or to a Tango state attribute this extension (className) represents the name of the java class to instantiate when the Jdraw object is clicked. This allows to give the name of the panel to be launched when the object is clicked. If the className is not specified the default panel (atkpanel read-only) is launched. If the className is set to "noPanel" nothing is launched.
- classParam: first argument (always a string) to be passed to the java panel. If classParam is not specified the name associated to the JD component (device name or state attribute name is passed as the String argument to the constructor.
- valueList: used by NumberScalarComboEditor and StringScalarComboEditor swing objects to acquire the values list
- shellCommand(*):It allows to launch any shell command or application (dir, xterm, jive, firefox, etc ...) from the synoptic. If a JDObject is interactive and has the shellCommand extension its content will be executed at each valueExceedBounds event The command is always executed in background. Streams redirection is not allowed (should be done inside an script). Arguments can be passed to the shell command.
- qualityFactor: If the Jdraw component is asscoiated to a NumberScalarAttribute and if this extension (qualityFactor) is set to "true" then the qualityFactor of the attribute will be used to change the background color.
- Since:
- ATKWidget-1.9.7
- Author:
- Faranguiss PONCET
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponentNested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainerNested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected fr.esrf.tangoatk.core.AttributeListprotected Stringstatic final intDisplays the attribute name within tooltipstatic final intDoes not display tooltipstatic final intDisplays device state within tooltip only for Device objectsstatic final intDisplays device status within tooltip only for Device objectsFields inherited from class fr.esrf.tangoatk.widget.util.jdraw.JDrawEditor
CREATE_AXIS, CREATE_BAR, CREATE_CLIPBOARD, CREATE_ELLIPSE, CREATE_IMAGE, CREATE_LABEL, CREATE_LINE, CREATE_POLYLINE, CREATE_RECTANGLE, CREATE_ROTATABLELABEL, CREATE_RRECTANGLE, CREATE_SLIDER, CREATE_SPLINE, CREATE_SWINGOBJECT, MODE_EDIT, MODE_EDIT_GROUP, MODE_LIB, MODE_PLAYFields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWFields inherited from class java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTFields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH -
Constructor Summary
ConstructorsConstructorDescriptionConstruct a TangoSynopticHandler (A JDrawEditor in MODE_PLAY).TangoSynopticHandler(String jdFileName) Construct a TangoSynopticHandler (A JDrawEditor in MODE_PLAY).TangoSynopticHandler(String jdFileName, int ttMode) Construct a TangoSynopticHandler (A JDrawEditor in MODE_PLAY).TangoSynopticHandler(String jdFileName, ErrorHistory errh) Construct a TangoSynopticHandler (A JDrawEditor in MODE_PLAY). -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddAttribute(JDObject jddg, String s) voidaddMetaName(String metaName, String realName) Add a meta name.voidbooleanScalarChange(fr.esrf.tangoatk.core.BooleanScalarEvent evt) voidvoidvoiddevStateScalarChange(fr.esrf.tangoatk.core.DevStateScalarEvent event) voiddevStateSpectrumChange(fr.esrf.tangoatk.core.DevStateSpectrumEvent evt) voidenumScalarChange(fr.esrf.tangoatk.core.EnumScalarEvent evt) voiderrorChange(fr.esrf.tangoatk.core.ErrorEvent event) fr.esrf.tangoatk.core.AttributeListintprotected booleanprotected booleanprotected booleanprotected booleanvoidLoad a jdraw grpahics input stream into the drawing area.The JLoox and Loox files formats are not supported.static voidvoidnumberScalarChange(fr.esrf.tangoatk.core.NumberScalarEvent evt) protected voidParses JDraw components , detects tango entity name and attatch a model.voidrefreshDisabled(Color disabledColor) Update background color of disabled objects, it restore the state color if the JDObject is no longer disabled.voidSets the current error history window.voidSets the loading progress listenervoidsetSynopticFileName(String jdFileName) Reads the Jdraw file, browses and parses the synoptic components.voidsetToolTipMode(int ttMode) Sets the current tooltip mode (device object only)voidstateChange(fr.esrf.tangoatk.core.AttributeStateEvent evt) change the color of the jdobj (bg or fg) according to the quality factor of the attribute If and Only If the JDobject is not a JDBar, or JDSlider and no color mapper is set for the JDobject and the "extension" QualityFactor is truevoidstateChange(fr.esrf.tangoatk.core.StateEvent event) voidstatusChange(fr.esrf.tangoatk.core.StatusEvent event) voidvoidvoidvoidvoidvoidvoidMethods inherited from class fr.esrf.tangoatk.widget.util.jdraw.JDrawEditor
actionPerformed, addEditorListener, addObject, addToMenu, alignbottomSelection, alignleftSelection, alignrightSelection, aligntopSelection, backSelection, canPaste, canRedo, canUndo, clearEditorListener, clearObjects, clearUndo, componentHidden, componentMoved, componentResized, componentShown, computePreferredSize, convertToPolyline, copySelection, create, create, cutSelection, deleteSelection, dragEnter, dragExit, dragOver, drop, dropActionChanged, frontSelection, generateJavaClasses, getFileName, getGridSize, getInteractiveObjects, getLastActionName, getMinimumSize, getMode, getNeedToSaveState, getNextActionName, getObjectAt, getObjectNumber, getObjects, getObjectsByName, getObjectsOfClass, getPreferredSize, getRootPaths, getSaveString, getSelectedObjects, getSelectionLength, getZoomFactor, getZoomFactorPercent, groupSelection, initPlayer, instantSave, isAlignToGrid, isAutoZoom, isAutoZoomAsked, isGridVisible, isSelected, keyPressed, keyReleased, keyTyped, loadFile, loadFile, loadFromStream, lowerObject, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mousePressedEditorB1, mousePressedEditorB3, mousePressedPlayerB1, mousePressedPlayerB3, mouseReleased, paint, paintObjects, paintSelection, pasteClipboard, raiseObject, redo, removeEditorListener, repaint, resetNeedToSave, saveFile, scaleSelection, selectAll, selectNotVisible, selectObject, selectObjects, setAlignToGrid, setAutoZoom, setAutoZoomFactor, setGridSize, setGridVisible, setPreferredSize, setRootPaths, setStatusLabel, setTranslation, setZoomFactor, showBrowserWindow, showGroupEditorWindow, showGroupJavaWindow, showOpenDialog, showPropertyWindow, showSaveDialog, showTransformWindow, translateSelection, undo, ungroupSelection, unselectAll, unselectObject, zoomIn, zoomOutMethods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUI, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUIMethods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTreeMethods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
Field Details
-
TOOL_TIP_NONE
public static final int TOOL_TIP_NONEDoes not display tooltip- See Also:
-
TOOL_TIP_STATE
public static final int TOOL_TIP_STATEDisplays device state within tooltip only for Device objects- See Also:
-
TOOL_TIP_STATUS
public static final int TOOL_TIP_STATUSDisplays device status within tooltip only for Device objects- See Also:
-
TOOL_TIP_NAME
public static final int TOOL_TIP_NAMEDisplays the attribute name within tooltip- See Also:
-
jdrawFileFullName
-
allAttributes
protected fr.esrf.tangoatk.core.AttributeList allAttributes -
jdHash
-
stateCashHash
-
metaNames
-
-
Constructor Details
-
TangoSynopticHandler
public TangoSynopticHandler()Construct a TangoSynopticHandler (A JDrawEditor in MODE_PLAY).- See Also:
-
TangoSynopticHandler
public TangoSynopticHandler(String jdFileName) throws MissingResourceException, FileNotFoundException, IllegalArgumentException Construct a TangoSynopticHandler (A JDrawEditor in MODE_PLAY).- Parameters:
jdFileName- Filename of the JDraw (jdw) synptic to load.- Throws:
FileNotFoundException- Exception when the input file cannot be accessed.MissingResourceException- when the "jdraw" inputStream cannot be parsed.IllegalArgumentException- Illegal argument- See Also:
-
TangoSynopticHandler
public TangoSynopticHandler(String jdFileName, ErrorHistory errh) throws MissingResourceException, FileNotFoundException, IllegalArgumentException Construct a TangoSynopticHandler (A JDrawEditor in MODE_PLAY).- Parameters:
jdFileName- Filename of the JDraw (jdw) synptic to load.errh- ErrorHistory window which will receive errors.- Throws:
FileNotFoundException- Exception when the input file cannot be accessed.MissingResourceException- when the "jdraw" inputStream cannot be parsed.IllegalArgumentException- Illegal argument- See Also:
-
TangoSynopticHandler
public TangoSynopticHandler(String jdFileName, int ttMode) throws MissingResourceException, FileNotFoundException, IllegalArgumentException Construct a TangoSynopticHandler (A JDrawEditor in MODE_PLAY).- Parameters:
jdFileName- Filename of the JDraw (jdw) synptic to load.ttMode- Tooltip mode- Throws:
FileNotFoundException- Exception when the input file cannot be accessed.MissingResourceException- when the "jdraw" inputStream cannot be parsed.IllegalArgumentException- Illegal argument- See Also:
-
-
Method Details
-
setProgressListener
Sets the loading progress listener- Parameters:
p- Handle to the progress listener
-
getToolTipMode
public int getToolTipMode()- Returns:
- the current Tooltip Mode
- See Also:
-
setToolTipMode
public void setToolTipMode(int ttMode) Sets the current tooltip mode (device object only)- Parameters:
ttMode- Tooltip mode- See Also:
-
getErrorHistoryWindow
- Returns:
- the current error history window
- See Also:
-
setErrorHistoryWindow
Sets the current error history window. Note that the error history window should be set before the jdraw file is parsed (before the call to the setSynopticFileName)- Parameters:
errh- ErrorHistory window which will receive errors.
-
getSynopticFileName
- Returns:
- the current synoptic filename.
- See Also:
-
addMetaName
Add a meta name. All JDObject name which contains the meta name will be replaced by real name before initialising Tango entities.- Parameters:
metaName- Original stringrealName- String which will appear after loading the synoptic
-
getAttributeList
public fr.esrf.tangoatk.core.AttributeList getAttributeList()- Returns:
- a Handle to the global attribute list which is used internaly to monitor attributes. This list is filled after setSynopticFileName() is called. To add an error listener to this list, you have to register it before loading a synoptic.
- See Also:
-
loadSynopticFromStream
public void loadSynopticFromStream(InputStreamReader inp) throws IOException, MissingResourceException Load a jdraw grpahics input stream into the drawing area.The JLoox and Loox files formats are not supported. This method allows to load a synoptic which is not necessarily a file on disk. This method is particularly used when the synoptic jdraw file is pakaged into the application jarfile and cannot be accessed as a separate file on the disk.- Parameters:
inp- An InputStreamReader should be created by the application and passed to this method- Throws:
IOException- Exception when the inputStream cannot be accessed.MissingResourceException- when the "jdraw" inputStream cannot be parsed.
-
setSynopticFileName
public void setSynopticFileName(String jdFileName) throws MissingResourceException, FileNotFoundException, IllegalArgumentException Reads the Jdraw file, browses and parses the synoptic components. The main purpose of this function is to attach Tango entity model to JDraw component.- Parameters:
jdFileName- Filename of the JDraw (jdw) synptic to load.- Throws:
FileNotFoundException- Exception when the input file cannot be accessed.MissingResourceException- when the "jdraw" inputStream cannot be parsed.IllegalArgumentException- Illegal argument
-
clearAllPanels
public void clearAllPanels() -
clearSynopticFileModel
public void clearSynopticFileModel() -
parseJdrawComponents
protected void parseJdrawComponents()Parses JDraw components , detects tango entity name and attatch a model. This method does not recurse group and use isDevice() , isAttribute() and isDevice() to detect entity name. -
isAttribute
- Parameters:
s- Attribute name- Returns:
- true only if the given name matches a Tango attribute name.
Attribute name allowed syntax ( Can be preceded by tango: ):
Full syntax: //hostName:portNumber/domain/family/member/attName Full syntax: //ipAddress:portNumber/domain/family/member/attName Short syntax: domain/family/member/attName
-
isSpectrumAttElement
- Parameters:
s- Spectrum Attribute element- Returns:
- true only if the given name matches a Tango attribute name followed by [index].
Spectrum Attribute element allowed syntax ( Can be preceded by tango: ):
Full syntax: //hostName:portNumber/domain/family/member/attName[xx] Full syntax: //ipAddress:portNumber/domain/family/member/attName[xx] Short syntax: domain/family/member/attName[xx]
-
isCommand
- Parameters:
s- Command name- Returns:
- true only if the given name matches a Tango command name.
Command name allowed syntax ( Can be preceded by tango: ):
Full syntax: //hostName:portNumber/domain/family/member/cmdName Full syntax: //ipAddress:portNumber/domain/family/member/cmdName Short syntax: domain/family/member/cmdName
-
isDevice
- Parameters:
devName- Device name- Returns:
- true only if the given name matches a Tango device name.
Device name allowed syntax ( Can be preceded by tango: ):
Full syntax: //hostName:portNumber/domain/family/member Full syntax: //ipAddress:portNumber/domain/family/member Short syntax: domain/family/member
-
windowClosed
- Specified by:
windowClosedin interfaceWindowListener
-
windowOpened
- Specified by:
windowOpenedin interfaceWindowListener
-
windowClosing
- Specified by:
windowClosingin interfaceWindowListener
-
windowIconified
- Specified by:
windowIconifiedin interfaceWindowListener
-
windowDeiconified
- Specified by:
windowDeiconifiedin interfaceWindowListener
-
windowActivated
- Specified by:
windowActivatedin interfaceWindowListener
-
windowDeactivated
- Specified by:
windowDeactivatedin interfaceWindowListener
-
addAttribute
-
numberScalarChange
public void numberScalarChange(fr.esrf.tangoatk.core.NumberScalarEvent evt) - Specified by:
numberScalarChangein interfacefr.esrf.tangoatk.core.INumberScalarListener
-
enumScalarChange
public void enumScalarChange(fr.esrf.tangoatk.core.EnumScalarEvent evt) - Specified by:
enumScalarChangein interfacefr.esrf.tangoatk.core.IEnumScalarListener
-
booleanScalarChange
public void booleanScalarChange(fr.esrf.tangoatk.core.BooleanScalarEvent evt) - Specified by:
booleanScalarChangein interfacefr.esrf.tangoatk.core.IBooleanScalarListener
-
devStateSpectrumChange
public void devStateSpectrumChange(fr.esrf.tangoatk.core.DevStateSpectrumEvent evt) - Specified by:
devStateSpectrumChangein interfacefr.esrf.tangoatk.core.IDevStateSpectrumListener
-
stateChange
public void stateChange(fr.esrf.tangoatk.core.AttributeStateEvent evt) change the color of the jdobj (bg or fg) according to the quality factor of the attribute If and Only If the JDobject is not a JDBar, or JDSlider and no color mapper is set for the JDobject and the "extension" QualityFactor is true- Specified by:
stateChangein interfacefr.esrf.tangoatk.core.IAttributeStateListener- Parameters:
evt- AttributeState event
-
errorChange
public void errorChange(fr.esrf.tangoatk.core.ErrorEvent event) - Specified by:
errorChangein interfacefr.esrf.tangoatk.core.IErrorListener
-
refreshDisabled
Update background color of disabled objects, it restore the state color if the JDObject is no longer disabled.- Parameters:
disabledColor- Disabled color
-
devStateScalarChange
public void devStateScalarChange(fr.esrf.tangoatk.core.DevStateScalarEvent event) - Specified by:
devStateScalarChangein interfacefr.esrf.tangoatk.core.IDevStateScalarListener
-
stateChange
public void stateChange(fr.esrf.tangoatk.core.StateEvent event) - Specified by:
stateChangein interfacefr.esrf.tangoatk.core.IStateListener
-
statusChange
public void statusChange(fr.esrf.tangoatk.core.StatusEvent event) - Specified by:
statusChangein interfacefr.esrf.tangoatk.core.IStatusListener
-
main
-