|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container java.awt.Window java.awt.Frame javax.swing.JFrame entorno.grafo.GraphGUI
Clase: GraphGUI Funcion: Crea un GUI en donde se insertara la representacion de un grafo no dirigido
Nested Class Summary |
---|
Nested classes inherited from class javax.swing.JFrame |
---|
javax.swing.JFrame.AccessibleJFrame |
Nested classes inherited from class java.awt.Frame |
---|
java.awt.Frame.AccessibleAWTFrame |
Nested classes inherited from class java.awt.Window |
---|
java.awt.Window.AccessibleAWTWindow |
Nested classes inherited from class java.awt.Container |
---|
java.awt.Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary | |
---|---|
(package private) javax.swing.JRadioButton |
bClases
|
(package private) javax.swing.JButton |
bEx
|
(package private) javax.swing.JButton |
bFmod
|
(package private) javax.swing.JButton |
bFth
|
(package private) javax.swing.JButton |
bInc
|
(package private) javax.swing.JButton |
bMod
|
(package private) javax.swing.JButton |
bOmod
|
(package private) javax.swing.JButton |
bOth
|
(package private) javax.swing.JButton |
bPr
|
(package private) javax.swing.JButton |
bTh
|
(package private) javax.swing.JButton |
bTipo
|
(package private) javax.swing.JButton |
bTipoFlecha
|
(package private) javax.swing.JRadioButton |
bTipos
|
(package private) javax.swing.JComboBox |
cboxEscalas
|
DrawingArea |
drawingArea
donde dibujaré el grafo |
(package private) ClaseVentanaLog |
emuMaude
El emulador Maude |
private boolean |
esDeTipos
si la ventana es para mostrar los tipos |
(package private) GraphGUI |
frame
El frame de la aplicacion |
(package private) javax.swing.ButtonGroup |
grupoBotones
|
(package private) javax.swing.JLabel |
label
la etiqueta de la barra de estado |
private static java.lang.String[] |
listaPorcentajes
|
(package private) javax.swing.JLabel |
lTamaño
|
(package private) javax.swing.JMenuItem |
menuExit
|
(package private) javax.swing.JMenu |
menuFich
|
(package private) javax.swing.JMenuItem |
menuPage
|
(package private) javax.swing.JMenuItem |
menuPrint
|
(package private) javax.swing.JMenu |
menuView
|
(package private) javax.swing.JScrollPane |
scrollPane
la barra de desplazamiento del area de dibujo |
(package private) javax.swing.JMenu |
subMenu
|
javax.swing.JCheckBoxMenuItem |
vClases
|
javax.swing.JCheckBoxMenuItem |
vImp_BOOL
|
javax.swing.JCheckBoxMenuItem |
vImp_UP
|
javax.swing.JCheckBoxMenuItem |
vPredefFULL
|
javax.swing.JCheckBoxMenuItem |
vPredefinidos
|
javax.swing.JCheckBoxMenuItem |
vTipos
|
Fields inherited from class javax.swing.JFrame |
---|
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled |
Fields inherited from class java.awt.Frame |
---|
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.WindowConstants |
---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
GraphGUI(ClaseVentanaLog emuladorMaude,
boolean tipos)
Constructor del interfaz grafico. |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Acciones del menu |
private void |
exitProgram()
Para salir de la ventana |
java.awt.Point |
findPositionNode(int nodeIndex,
int numNodes)
Encuentra una posicion donde poner el nodo. |
DrawingArea |
getDrawingArea()
|
void |
itemStateChanged(java.awt.event.ItemEvent e)
|
void |
popupMenuCanceled(javax.swing.event.PopupMenuEvent evt)
|
void |
popupMenuWillBecomeInvisible(javax.swing.event.PopupMenuEvent evt)
|
void |
popupMenuWillBecomeVisible(javax.swing.event.PopupMenuEvent evt)
|
void |
setGraph(Graph g)
|
private void |
setLanguageSpanish()
Establece la ventana a español |
private void |
setSizeNodesAccion()
Cambia el tamaño del radio de los nodos |
void |
updateLabel(java.lang.String statusText)
Actualiza la barra de estado |
Methods inherited from class javax.swing.JFrame |
---|
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update |
Methods inherited from class java.awt.Frame |
---|
addNotify, finalize, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
Methods inherited from class java.awt.Window |
---|
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setAlwaysOnTop, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationByPlatform, setLocationRelativeTo, show, toBack, toFront |
Methods inherited from class java.awt.Container |
---|
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
Methods inherited from class java.awt.Component |
---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.awt.MenuContainer |
---|
getFont, postEvent |
Field Detail |
---|
final GraphGUI frame
javax.swing.JLabel label
javax.swing.JScrollPane scrollPane
public DrawingArea drawingArea
ClaseVentanaLog emuMaude
javax.swing.ButtonGroup grupoBotones
public javax.swing.JCheckBoxMenuItem vPredefinidos
public javax.swing.JCheckBoxMenuItem vTipos
public javax.swing.JCheckBoxMenuItem vClases
public javax.swing.JCheckBoxMenuItem vPredefFULL
public javax.swing.JCheckBoxMenuItem vImp_BOOL
public javax.swing.JCheckBoxMenuItem vImp_UP
javax.swing.JButton bMod
javax.swing.JButton bFmod
javax.swing.JButton bTh
javax.swing.JButton bFth
javax.swing.JButton bOmod
javax.swing.JButton bOth
javax.swing.JButton bInc
javax.swing.JButton bEx
javax.swing.JButton bPr
javax.swing.JButton bTipo
javax.swing.JButton bTipoFlecha
javax.swing.JRadioButton bTipos
javax.swing.JRadioButton bClases
javax.swing.JMenu menuFich
javax.swing.JMenu menuView
javax.swing.JMenu subMenu
javax.swing.JMenuItem menuPage
javax.swing.JMenuItem menuPrint
javax.swing.JMenuItem menuExit
javax.swing.JLabel lTamaño
javax.swing.JComboBox cboxEscalas
private static java.lang.String[] listaPorcentajes
private boolean esDeTipos
Constructor Detail |
---|
public GraphGUI(ClaseVentanaLog emuladorMaude, boolean tipos)
Method Detail |
---|
private void setLanguageSpanish()
public DrawingArea getDrawingArea()
public void setGraph(Graph g)
private void exitProgram()
private void setSizeNodesAccion()
public java.awt.Point findPositionNode(int nodeIndex, int numNodes)
public void popupMenuWillBecomeVisible(javax.swing.event.PopupMenuEvent evt)
popupMenuWillBecomeVisible
in interface javax.swing.event.PopupMenuListener
public void popupMenuWillBecomeInvisible(javax.swing.event.PopupMenuEvent evt)
popupMenuWillBecomeInvisible
in interface javax.swing.event.PopupMenuListener
public void popupMenuCanceled(javax.swing.event.PopupMenuEvent evt)
popupMenuCanceled
in interface javax.swing.event.PopupMenuListener
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
public void itemStateChanged(java.awt.event.ItemEvent e)
itemStateChanged
in interface java.awt.event.ItemListener
public void updateLabel(java.lang.String statusText)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |