Class ArrayDeBitInd
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
spgn.pgn.gui.cliente.graficos.gui.swing.PanelSpgn
spgn.pgn.gui.cliente.graficos.gui.swing.PanelSpgnAnimado
spgn.pgn.gui.cliente.graficos.cmp.indicadores.ArrayDeBitInd
- All Implemented Interfaces:
ComponentListener
,ImageObserver
,MenuContainer
,Serializable
,EventListener
,Accessible
,spgn.pgn.gui.cliente.graficos.ElementoAnimado
Clase que implementa un indicador de lamparas para indicar el estado de
los bits dentro de los bytes que resulta de procesar el valor de la tag
Las tag deben de ser del tipo bloque para otro tipo de tag el resultado
puede ser inexperado
- Author:
- Ruben Palomino
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
Nested classes/interfaces inherited from class java.awt.Component
Component.BaselineResizeBehavior
-
Field Summary
Fields inherited from class javax.swing.JComponent
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
-
Constructor Summary
ConstructorsConstructorDescriptionArrayDeBitInd
(int byteInicial, int cantidadBytes) Constructor en el cual le pasamos el byte inicial a partir del cual queremos mostrar los bits y la cantidad de bytes -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
int
Obtenemos el byte inicialint
Obtenemos los bytes que vamos a indicarDevuelve la fuente de las etiquetas del indicadorAjustamos el color de la fuente de las etiquetasDevuelve el icono a mostrar cuando el bit es falseDevuelve el icono a mostrar cuando el bit es truevoid
setFontEtiquetas
(Font fontEtiquetas) Ajustamos la fuente de las etiquetas del indicadorvoid
setForeGroundEtiquetas
(Color color) Ajustamos el color de la fuente de las etiquetasvoid
setIconoOff
(Icon iconoOff) Ajustamos el iconoOn de los indicadoresvoid
setIconoOn
(Icon iconoOn) Ajustamos el iconoOn de los indicadoresvoid
Metodo que asocia una tag a la funcion de mostrar ocultar el elementovoid
setTexEtiquetas
(String[] textos) Ajustamos el texto de las etiquetas en forma de arrayvoid
setTextValor
(String valor) Ajustamos en forma de string el valor de los bytes de este indicadorMethods inherited from class spgn.pgn.gui.cliente.graficos.gui.swing.PanelSpgnAnimado
err, errE, errI, getAlmacen, getComponente, getEscalaPosX1, getEscalaPosX2, getEscalaPosY1, getEscalaPosY2, getGestorGrafico, getMinutosLogin, getNivelLogin, getNumTags, getUserLogin, getVt, isTagMostrarDirecto, isTodoSincronizado, listo, log, logE, logI, lr, setAlmacen, setEscalaPosX1, setEscalaPosX2, setEscalaPosY1, setEscalaPosY2, setGestorGrafico, setLogin, setMostrar, setPosX, setPosY, setTagMostrar, setTagMostrarDirecto, setTagPosX, setTagPosY, setTodoSincronizado
Methods inherited from class spgn.pgn.gui.cliente.graficos.gui.swing.PanelSpgn
add, add, add, add, add, add, getIcon, isExpandido, isVerExpandido, setBounds, setBounds, setExpandido, setIcon, setLayout, setVerExpandido
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, setUI, updateUI
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, 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, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, 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, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
Methods inherited from class java.awt.Container
addContainerListener, 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, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, transferFocusDownCycle, validate
Methods inherited from class java.awt.Component
action, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, 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, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocusInWindow, resize, resize, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface spgn.pgn.gui.cliente.graficos.ElementoAnimado
getName, setName
-
Constructor Details
-
ArrayDeBitInd
public ArrayDeBitInd(int byteInicial, int cantidadBytes) Constructor en el cual le pasamos el byte inicial a partir del cual queremos mostrar los bits y la cantidad de bytes- Parameters:
byteInicial
- Byte a partir del cual vamos a mostrar los valorescantidadBytes
- cantidad de bytes a mostrar si cantidad es 1 se mostraran 8
-
-
Method Details
-
setTag
Metodo que asocia una tag a la funcion de mostrar ocultar el elemento- Parameters:
tagMostrarT
- El path de la tag que controlara el proceso Si tagMostrarT es true el elemento se muestra, y si es distinto de true se oculta
-
setTextValor
Ajustamos en forma de string el valor de los bytes de este indicador- Parameters:
valor
- 00x0 ... F5x00....
-
setTexEtiquetas
Ajustamos el texto de las etiquetas en forma de array- Parameters:
textos
- el array con las etiquetas
-
getByteInicial
public int getByteInicial()Obtenemos el byte inicial- Returns:
- the byteInicial
-
getCantidadBytes
public int getCantidadBytes()Obtenemos los bytes que vamos a indicar- Returns:
- the cantidadBytes
-
getIconoOn
Devuelve el icono a mostrar cuando el bit es true- Returns:
- the iconoOn
-
setIconoOn
Ajustamos el iconoOn de los indicadores- Parameters:
iconoOn
- the iconoOn to set
-
getIconoOff
Devuelve el icono a mostrar cuando el bit es false- Returns:
- the iconoOff
-
setIconoOff
Ajustamos el iconoOn de los indicadores- Parameters:
iconoOff
- the iconoOff to set
-
componentHidden
- Specified by:
componentHidden
in interfaceComponentListener
- Overrides:
componentHidden
in classPanelSpgnAnimado
-
componentMoved
- Specified by:
componentMoved
in interfaceComponentListener
- Overrides:
componentMoved
in classPanelSpgnAnimado
-
componentResized
- Specified by:
componentResized
in interfaceComponentListener
- Overrides:
componentResized
in classPanelSpgnAnimado
-
componentShown
- Specified by:
componentShown
in interfaceComponentListener
- Overrides:
componentShown
in classPanelSpgnAnimado
-
getFontEtiquetas
Devuelve la fuente de las etiquetas del indicador- Returns:
- the fontEtiquetas
-
setFontEtiquetas
Ajustamos la fuente de las etiquetas del indicador- Parameters:
fontEtiquetas
- the fontEtiquetas to set
-
getForeGroundEtiquetas
Ajustamos el color de la fuente de las etiquetas- Returns:
- the fontEtiquetas
-
setForeGroundEtiquetas
Ajustamos el color de la fuente de las etiquetas- Parameters:
color
- the color to set
-