Class InfoPanel

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--javax.swing.JPanel
                          |
                          +--InfoPanel
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable

public class InfoPanel
extends javax.swing.JPanel

Descripción:
Clase que contiene la información sobre los elementos del progra, desde la posición del cursor, su valor, banda y frame en el que nos encontramos etc

See Also:
Serialized Form

Inner classes inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Inner classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent, javax.swing.JComponent.ActionStandin, javax.swing.JComponent.IntVector, javax.swing.JComponent.KeyboardState
 
Inner classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Inner classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.AWTTreeLock
 
Field Summary
(package private)  javax.swing.JComboBox bandSel
          Desplegable de la Banda Seleccionada
(package private)  CanvasGeo canvas
          El Canvas
(package private)  float escala
          Escala
(package private)  javax.swing.JLabel finSel
          Etiqueta de Fin de Selección
(package private)  javax.swing.JComboBox frameSel
          Desplegable del Frame Seleccionado
(package private)  javax.swing.JLabel Geometria
          Etiqueta de Geometría
(package private)  javax.swing.JLabel iniSel
          Etiqueta de Inicio de Selección
(package private)  javax.swing.JLabel longitud
          Etiqueta de la longitud Actual
(package private)  javax.swing.JLabel longSel
          Etiqueta de Longitud del Segmento
(package private)  java.text.NumberFormat nf
          Formato de Número
(package private)  javax.swing.JLabel nombreSec
          Nombre de la Secuencia
(package private)  int nSegment
          Número de Segmenos
(package private)  javax.swing.JLabel Poligonos
          Etiqueta de Polígonos
(package private)  javax.swing.JLabel Posicion
          Etiqueta dePosición
(package private)  javax.swing.JLabel Puntos
          Etiqueta de Puntos
(package private)  javax.swing.JLabel Segmentos
          Etiqueta de Segmentos
(package private)  JIPSequence seq
          Secuencia
(package private)  javax.swing.JLabel tamFrame
          Etiqueta de tamaño del Frame
(package private)  javax.swing.JLabel tipoSel
          Etiqueta del tipo de Selección
(package private)  java.lang.String unidad
          Cadena que indica las unidades
(package private)  javax.swing.JLabel valor
          Etiqueta de Valor Actual
(package private)  int xini
          X Inicial
(package private)  int yini
          Y Inicial
 
Fields inherited from class javax.swing.JPanel
defaultLayout, uiClassID
 
Fields inherited from class javax.swing.JComponent
_bounds, accessibleContext, actionMap, ACTIONMAP_CREATED, alignmentX, alignmentY, ANCESTOR_INPUTMAP_CREATED, ANCESTOR_USING_BUFFER, ancestorInputMap, ancestorNotifier, autoscroller, border, changeSupport, clientProperties, CREATED_DOUBLE_BUFFER, flags, FOCUS_INPUTMAP_CREATED, focusInputMap, HAS_FOCUS, htmlKey, htmlView, inputVerifier, IS_DOUBLE_BUFFERED, IS_OPAQUE, IS_PAINTING_TILE, IS_PRINTING, IS_PRINTING_ALL, KEY_EVENTS_ENABLED, KEYBOARD_BINDINGS_KEY, listenerList, maximumSize, minimumSize, NEXT_FOCUS, paintImmediatelyClip, paintingChild, preferredSize, readObjectCallbacks, REQUEST_FOCUS_DISABLED, tmpRect, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, verifyInputWhenFocusTarget, vetoableChangeSupport, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW, WHEN_IN_FOCUSED_WINDOW_BINDINGS, WIF_INPUTMAP_CREATED, windowInputMap
 
Fields inherited from class java.awt.Container
component, containerListener, containerSerializedDataVersion, dbg, dispatcher, layoutMgr, listeningBoundsChildren, listeningChildren, maxSize, ncomponents, printing, printingThreads, serialVersionUID
 
Fields inherited from class java.awt.Component
actionListenerK, adjustmentListenerK, appContext, background, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, componentListener, componentListenerK, componentOrientation, componentSerializedDataVersion, containerListenerK, cursor, dropTarget, enabled, eventMask, focusListener, focusListenerK, font, foreground, graphicsConfig, hasFocus, height, hierarchyBoundsListener, hierarchyBoundsListenerK, hierarchyListener, hierarchyListenerK, incRate, inputMethodListener, inputMethodListenerK, isInc, isPacked, itemListenerK, keyListener, keyListenerK, LEFT_ALIGNMENT, locale, LOCK, metrics, minSize, mouseListener, mouseListenerK, mouseMotionListener, mouseMotionListenerK, name, nameExplicitlySet, newEventsOnly, ownedWindowK, parent, peer, peerFont, popups, prefSize, privateKey, RIGHT_ALIGNMENT, textListenerK, TOP_ALIGNMENT, valid, visible, width, windowClosingException, windowListenerK, x, y
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
InfoPanel(CanvasGeo c)
           Descripción:
Constructor de la clase.
 
Method Summary
 void AsociaSecuencia(JIPSequence s)
           Descripción:
Método que coloca los la información de los valores de la nueva secuencia en el panel
 void BandasFrame(JIPImage img, int n)
           Descripción:
Método que actualiza el valor de las bandas
 void CambioEscala(float esc)
           Descripción:
Método que cambia la escala actual por la que recibe como parámetro
 void CambioUnidad(java.lang.String uni)
           Descripción:
Método que cambia las unidades actuales por las recibe como parámetro
 void SetFrame(int nFrame)
           Descripción:
Método que selecciona un frame, cuyo número pasamos por parámetro
 void UpdateGeo(int geoEst)
           Descripción:
Método que actualiza el estado de la geometría, que puede estar activada o desactivada
 void UpdateInfo(int w, int h, int x, int y, int numSeg, int numPoint, int numPoly, int xini, int yini, int xfin, int yfin, JIPImage img, int b)
           Descripción:
Método que actualiza la información del panel, como el ancho, el alto, numero de segmentos, imagen, bandas, etc..
 void UpdateSel(int x0, int y0, int x1, int y1, java.lang.String tipo)
           Descripción:
Método que actualiza el apartado del panel correspondiente a la selección.
 
Methods inherited from class javax.swing.JPanel
, getAccessibleContext, getUIClassID, paramString, updateUI, writeObject
 
Methods inherited from class javax.swing.JComponent
_paintImmediately, addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, adjustPaintFlags, alwaysOnTop, checkIfChildObscuredBySibling, clearFocusOwners, componentInputMapChanged, computeVisibleRect, computeVisibleRect, compWriteObjectNotify, contains, createToolTip, disable, enable, enableSerialization, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getActionMap, getAlignmentX, getAlignmentY, getAutoscrolls, getBorder, getBounds, getClientProperties, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getCreatedDoubleBuffer, getDebugGraphicsOptions, getFlag, getGraphics, getHeight, getInputMap, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getVerifyInputWhenFocusTarget, getVisibleRect, getWidth, getX, getY, grabFocus, hasFocus, hide, isDoubleBuffered, isFocusCycleRoot, isFocusTraversable, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paintWithBuffer, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processFocusEvent, processKeyBinding, processKeyBindings, processKeyBindingsForAllComponents, processKeyEvent, processMouseMotionEvent, putClientProperty, readObject, rectangleIsObscured, rectangleIsObscuredBySibling, registerKeyboardAction, registerKeyboardAction, registerWithKeyboardManager, registerWithKeyboardManager, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setCreatedDoubleBuffer, setDebugGraphicsOptions, setDoubleBuffered, setEnabled, setFlag, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPaintingChild, setPreferredSize, setRequestFocusEnabled, setToolTipText, setUI, setVerifyInputWhenFocusTarget, setVisible, shouldDebugGraphics, superProcessMouseMotionEvent, unregisterKeyboardAction, unregisterWithKeyboardManager, unregisterWithKeyboardManager, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, adjustListeningChildren, applyOrientation, checkGD, countComponents, createChildHierarchyEvents, createHierarchyEvents, deliverEvent, dispatchEventImpl, dispatchEventToSelf, doLayout, eventEnabled, findComponentAt, findComponentAt, findComponentAt, getAccessibleAt, getAccessibleChild, getAccessibleChildrenCount, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents_NoClientCode, getComponents, getLayout, getMouseEventTarget, getWindow, initIDs, insets, invalidate, invalidateTree, isAncestorOf, layout, lightweightPaint, lightweightPrint, list, list, locate, minimumSize, nextFocus, numListening, paintComponents, paintHeavyweightComponents, postProcessKeyEvent, postsOldMouseEvents, preferredSize, preProcessKeyEvent, printComponents, printHeavyweightComponents, processContainerEvent, processEvent, proxyEnableEvents, proxyRequestFocus, remove, remove, removeAll, removeContainerListener, setFocusOwner, setLayout, transferFocus, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, areInputMethodsEnabled, bounds, checkImage, checkImage, checkWindowClosingException, coalesceEvents, constructComponentName, contains, createImage, createImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getAccessibleIndexInParent, getAccessibleStateSet, getBackground, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont_NoClientCode, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocationOnScreen_NoTreeLock, getLocationOnScreen, getName, getNativeContainer, getParent_NoClientCode, getParent, getPeer, getSize, getToolkit, getToolkitImpl, getTreeLock, getWindowForObject, gotFocus, handleEvent, imageUpdate, inside, isDisplayable, isEnabled, isEnabledImpl, isLightweight, isRecursivelyVisible, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, repaint, repaint, repaint, resetGC, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

canvas

CanvasGeo canvas
El Canvas

seq

JIPSequence seq
Secuencia

nSegment

int nSegment
Número de Segmenos

xini

int xini
X Inicial

yini

int yini
Y Inicial

Posicion

javax.swing.JLabel Posicion
Etiqueta dePosición

valor

javax.swing.JLabel valor
Etiqueta de Valor Actual

Segmentos

javax.swing.JLabel Segmentos
Etiqueta de Segmentos

Puntos

javax.swing.JLabel Puntos
Etiqueta de Puntos

Geometria

javax.swing.JLabel Geometria
Etiqueta de Geometría

Poligonos

javax.swing.JLabel Poligonos
Etiqueta de Polígonos

longitud

javax.swing.JLabel longitud
Etiqueta de la longitud Actual

nombreSec

javax.swing.JLabel nombreSec
Nombre de la Secuencia

tamFrame

javax.swing.JLabel tamFrame
Etiqueta de tamaño del Frame

iniSel

javax.swing.JLabel iniSel
Etiqueta de Inicio de Selección

finSel

javax.swing.JLabel finSel
Etiqueta de Fin de Selección

longSel

javax.swing.JLabel longSel
Etiqueta de Longitud del Segmento

tipoSel

javax.swing.JLabel tipoSel
Etiqueta del tipo de Selección

unidad

java.lang.String unidad
Cadena que indica las unidades

escala

float escala
Escala

frameSel

javax.swing.JComboBox frameSel
Desplegable del Frame Seleccionado

bandSel

javax.swing.JComboBox bandSel
Desplegable de la Banda Seleccionada

nf

java.text.NumberFormat nf
Formato de Número
Constructor Detail

InfoPanel

public InfoPanel(CanvasGeo c)

Descripción:
Constructor de la clase. Aqui se crea todo el panel de información que veremos en la parte izquierda de la ventana del programa principal

Parameters:
c - CanvasGeométrico
Method Detail

CambioEscala

public void CambioEscala(float esc)

Descripción:
Método que cambia la escala actual por la que recibe como parámetro

Parameters:
esc - Nuevo valor de la escala

CambioUnidad

public void CambioUnidad(java.lang.String uni)

Descripción:
Método que cambia las unidades actuales por las recibe como parámetro

Parameters:
uni - Nuevo valor de las unidades

AsociaSecuencia

public void AsociaSecuencia(JIPSequence s)

Descripción:
Método que coloca los la información de los valores de la nueva secuencia en el panel

Parameters:
s - Nueva secuencia

UpdateGeo

public void UpdateGeo(int geoEst)

Descripción:
Método que actualiza el estado de la geometría, que puede estar activada o desactivada

Parameters:
geoEst - Valor de la geometría (activada/desactivada)

BandasFrame

public void BandasFrame(JIPImage img,
                        int n)

Descripción:
Método que actualiza el valor de las bandas

Parameters:
img - Nueva Imagen
n - Número de bandas

UpdateInfo

public void UpdateInfo(int w,
                       int h,
                       int x,
                       int y,
                       int numSeg,
                       int numPoint,
                       int numPoly,
                       int xini,
                       int yini,
                       int xfin,
                       int yfin,
                       JIPImage img,
                       int b)

Descripción:
Método que actualiza la información del panel, como el ancho, el alto, numero de segmentos, imagen, bandas, etc..

Parameters:
w - Ancho
h - Alto
x - X actual
y - Y actual
numSeg - Número de Segmentos
numPoint - Número de Puntos
numPoly - Número de Polígonos
xini - X Inicial
yini - Y Inicial
xfin - X Final
yfin - Y Final
img - Imagen
b - Número de bandas

UpdateSel

public void UpdateSel(int x0,
                      int y0,
                      int x1,
                      int y1,
                      java.lang.String tipo)

Descripción:
Método que actualiza el apartado del panel correspondiente a la selección.

Parameters:
x0 - X Inicial
y0 - Y Inicial
x1 - X Final
y1 - Y Final
tipo - Tipo

SetFrame

public void SetFrame(int nFrame)

Descripción:
Método que selecciona un frame, cuyo número pasamos por parámetro

Parameters:
nframe - Número de Frame