Class IconNumberSpectrumViewer
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
fr.esrf.tangoatk.widget.attribute.IconNumberSpectrumViewer
- All Implemented Interfaces:
fr.esrf.tangoatk.core.IAttributeStateListener,fr.esrf.tangoatk.core.IErrorListener,fr.esrf.tangoatk.core.ISpectrumListener,ImageObserver,MenuContainer,Serializable,EventListener,Accessible
public class IconNumberSpectrumViewer
extends JPanel
implements fr.esrf.tangoatk.core.ISpectrumListener
- Author:
- root
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.JPanel
JPanel.AccessibleJPanelNested 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 Color[]protected intprotected Fontprotected intprotected Icon[]protected JLabel[]protected Iconprotected fr.esrf.tangoatk.core.INumberSpectrumprotected double[]protected intprotected intprotected String[][]Fields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiderrorChange(fr.esrf.tangoatk.core.ErrorEvent errorEvent) Color[]Get the value of colors.intGet the value of columns.getFont()intIcon[]getIcons()Get the value of icons.Get the value of invalidIcon.fr.esrf.tangoatk.core.INumberSpectrumgetModel()Get the value of model.intgetRows()Get the value of rows.String[][]getTexts()Get the value of texts.protected voidThis method is called from within the constructor to initialize the form.static voidvoidSet the value of colors.voidsetColumns(int v) Set the value of columns.voidvoidsetHorizontalAlignment(int horizontalAlignment) voidsetIconBorders(Border border) voidSet the value of icons.voidSet the value of invalidIcon.voidsetModel(fr.esrf.tangoatk.core.INumberSpectrum v) Set the value of model.voidsetRows(int v) Set the value of rows.voidSet the value of texts.voidspectrumChange(fr.esrf.tangoatk.core.NumberSpectrumEvent numberSpectrumEvent) voidstateChange(fr.esrf.tangoatk.core.AttributeStateEvent evt) protected voidupdateColor(JLabel icon, int val) protected voidupdateIcon(JLabel icon, int val) protected voidupdateText(JLabel icon, String[] texts, int val) Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIMethods 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, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, updateMethods 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, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, 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
-
iconViewers
-
colors
-
columns
protected int columns -
icons
-
invalidIcon
-
model
protected fr.esrf.tangoatk.core.INumberSpectrum model -
rows
protected int rows -
texts
-
oldValue
protected double[] oldValue -
horizontalAlignment
protected int horizontalAlignment -
font
-
spectrumDimension
protected int spectrumDimension
-
-
Constructor Details
-
IconNumberSpectrumViewer
public IconNumberSpectrumViewer()Creates new form IconNumberSpectrumViewer
-
-
Method Details
-
initComponents
protected void initComponents()This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. -
errorChange
public void errorChange(fr.esrf.tangoatk.core.ErrorEvent errorEvent) - Specified by:
errorChangein interfacefr.esrf.tangoatk.core.IErrorListener
-
stateChange
public void stateChange(fr.esrf.tangoatk.core.AttributeStateEvent evt) - Specified by:
stateChangein interfacefr.esrf.tangoatk.core.IAttributeStateListener
-
updateIcon
-
updateText
-
updateColor
-
spectrumChange
public void spectrumChange(fr.esrf.tangoatk.core.NumberSpectrumEvent numberSpectrumEvent) - Specified by:
spectrumChangein interfacefr.esrf.tangoatk.core.ISpectrumListener
-
getColors
Get the value of colors.- Returns:
- value of colors.
-
setColors
Set the value of colors.- Parameters:
v- Value to assign to colors.
-
getTexts
Get the value of texts.- Returns:
- value of texts.
-
setTexts
Set the value of texts.- Parameters:
v- Value to assign to texts.
-
getInvalidIcon
Get the value of invalidIcon.- Returns:
- value of invalidIcon.
-
setInvalidIcon
Set the value of invalidIcon.- Parameters:
v- Value to assign to invalidIcon.
-
getColumns
public int getColumns()Get the value of columns.- Returns:
- value of columns.
-
setColumns
public void setColumns(int v) Set the value of columns.- Parameters:
v- Value to assign to columns.
-
getRows
public int getRows()Get the value of rows.- Returns:
- value of rows.
-
setRows
public void setRows(int v) Set the value of rows.- Parameters:
v- Value to assign to rows.
-
getModel
public fr.esrf.tangoatk.core.INumberSpectrum getModel()Get the value of model.- Returns:
- value of model.
-
setModel
public void setModel(fr.esrf.tangoatk.core.INumberSpectrum v) Set the value of model.- Parameters:
v- Value to assign to model.
-
setIconBorders
-
getIconBorders
-
setFont
- Overrides:
setFontin classJComponent
-
getFont
- Specified by:
getFontin interfaceMenuContainer- Overrides:
getFontin classComponent
-
setHorizontalAlignment
public void setHorizontalAlignment(int horizontalAlignment) -
getHorizontalAlignment
public int getHorizontalAlignment() -
getIcons
Get the value of icons.- Returns:
- value of icons.
-
setIcons
Set the value of icons.- Parameters:
v- Value to assign to icons.
-
main
- Throws:
Exception
-