progprincomp
Class ProcessPanelPrinComp

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Panel
                    |
                    +--progprincomp.PanelPrinComp
                          |
                          +--progprincomp.ProcessPanelPrinComp
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.event.ActionListener, java.util.EventListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.awt.event.MouseListener, java.io.Serializable

public class ProcessPanelPrinComp
extends PanelPrinComp
implements java.awt.event.ActionListener, java.awt.event.MouseListener

Da funcionalidad a la interfaz grafica para calcular los componentes principales y el histograma de frecuencias con interpolacion spline cubico.

Version:
1.0, 09/01/2002
Author:
Omar Posada Villarreal
See Also:
Serialized Form

Inner classes inherited from class java.awt.Panel
java.awt.Panel.AccessibleAWTPanel
 
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
private  int bins
          Comunicar con el mouseevent.
private  BiplotPos biplot
          Grafica en el canvas.
private  double maxRelFreq
          Comunicar con el mouseevent.
private  PrinCompPos pcp
          Comunicar con el mouseevent.
private  java.lang.String SEPARATOR
          Separador de texto.
private  java.net.URL urlBase
          Ruta del CodeBase del programa.
private  URLTextReader utr
          Leer archivo.
 
Fields inherited from class progprincomp.PanelPrinComp
buttClean, buttStart, canvBiplot, gbCons, gbLay, labBins, labIterations, labMaxRelFreq, labMessage, labNumbVar, labTolerance, labURL, panCanv, panText, taMessage, tfBins, tfIterations, tfMaxRelFreq, tfNumbVar, tfTolerance, tfURL
 
Fields inherited from class java.awt.Panel
base, nameCounter, serialVersionUID
 
Fields inherited from class java.awt.Container
component, containerListener, containerSerializedDataVersion, dbg, dispatcher, layoutMgr, listeningBoundsChildren, listeningChildren, maxSize, ncomponents, printing, printingThreads
 
Fields inherited from class java.awt.Component
accessibleContext, actionListenerK, adjustmentListenerK, appContext, background, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, changeSupport, 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
ProcessPanelPrinComp(java.net.URL theURLBase)
          Constructor similar al "Applet.init()" pero no es "Applet".
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Escucha las acciones en los componentes del GUI.
private  void clickButtStart()
          Lee el archivo, parsea a los enteros, los introduce en un arbol y lo recorre en prefijo, infijo, y posfijo.
 void drawHistogram(int gx, int gy)
          Calcula la direccion de la proyeccion del histograma Cuenta la frecuencia.
 void mouseClicked(java.awt.event.MouseEvent e)
          Rastrear la posicion donde se dio click.
 void mouseEntered(java.awt.event.MouseEvent e)
           
 void mouseExited(java.awt.event.MouseEvent e)
           
 void mousePressed(java.awt.event.MouseEvent e)
           
 void mouseReleased(java.awt.event.MouseEvent e)
           
 
Methods inherited from class progprincomp.PanelPrinComp
addComponents, addToGridBag, addToGridBag, setGridBagConstraintsToDefault
 
Methods inherited from class java.awt.Panel
, addNotify, constructComponentName, getAccessibleContext
 
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, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents_NoClientCode, getComponents, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMouseEventTarget, getPreferredSize, getWindow, initIDs, insets, invalidate, invalidateTree, isAncestorOf, layout, lightweightPaint, lightweightPrint, list, list, locate, minimumSize, nextFocus, numListening, paint, paintComponents, paintHeavyweightComponents, paramString, postProcessKeyEvent, postsOldMouseEvents, preferredSize, preProcessKeyEvent, print, printComponents, printHeavyweightComponents, processContainerEvent, processEvent, proxyEnableEvents, proxyRequestFocus, readObject, remove, remove, removeAll, removeContainerListener, removeNotify, setFocusOwner, setFont, setLayout, transferFocus, update, validate, validateTree, writeObject
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, areInputMethodsEnabled, bounds, checkImage, checkImage, checkWindowClosingException, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getAccessibleIndexInParent, getAccessibleStateSet, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont_NoClientCode, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocation, getLocationOnScreen_NoTreeLock, getLocationOnScreen, getName, getNativeContainer, getParent_NoClientCode, getParent, getPeer, getSize, getSize, getToolkit, getToolkitImpl, getTreeLock, getWidth, getWindowForObject, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isEnabledImpl, isFocusTraversable, isLightweight, isOpaque, isRecursivelyVisible, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, resetGC, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, 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

utr

private URLTextReader utr
Leer archivo.

urlBase

private java.net.URL urlBase
Ruta del CodeBase del programa.

biplot

private BiplotPos biplot
Grafica en el canvas.

pcp

private PrinCompPos pcp
Comunicar con el mouseevent.

bins

private int bins
Comunicar con el mouseevent.

maxRelFreq

private double maxRelFreq
Comunicar con el mouseevent.

SEPARATOR

private final java.lang.String SEPARATOR
Separador de texto.
Constructor Detail

ProcessPanelPrinComp

public ProcessPanelPrinComp(java.net.URL theURLBase)
Constructor similar al "Applet.init()" pero no es "Applet". Usa los compponentes graficos del panel "PanelPrinComp".
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Escucha las acciones en los componentes del GUI.
Specified by:
actionPerformed in interface java.awt.event.ActionListener

clickButtStart

private void clickButtStart()
                     throws java.lang.Exception
Lee el archivo, parsea a los enteros, los introduce en un arbol y lo recorre en prefijo, infijo, y posfijo.
Throws:
java.lang.Exception - Problemas en la lectura de archivos.

drawHistogram

public void drawHistogram(int gx,
                          int gy)
Calcula la direccion de la proyeccion del histograma Cuenta la frecuencia. Dibuja la linea de proyeccion. Dibuja el histograma.
Parameters:
gx - Coordenada del mouse X
gy - Coordenada del mouse Y

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
Rastrear la posicion donde se dio click.
Specified by:
mouseClicked in interface java.awt.event.MouseListener

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
Specified by:
mousePressed in interface java.awt.event.MouseListener

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
Specified by:
mouseReleased in interface java.awt.event.MouseListener

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent e)
Specified by:
mouseEntered in interface java.awt.event.MouseListener

mouseExited

public void mouseExited(java.awt.event.MouseEvent e)
Specified by:
mouseExited in interface java.awt.event.MouseListener