|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
br.uerj.petrinetanalyzer.gui.MainWindow
public class MainWindow
Define a Janela Principal para o Editor/Simulador de Redes de Petri Toda a parte gráfica
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JFrame |
|---|
javax.swing.JFrame.AccessibleJFrame |
| Nested classes/interfaces inherited from class java.awt.Frame |
|---|
java.awt.Frame.AccessibleAWTFrame |
| Nested classes/interfaces inherited from class java.awt.Window |
|---|
java.awt.Window.AccessibleAWTWindow |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
java.awt.Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
AnalyzerAction |
anAction
|
ArcActionListener |
arcAction
|
javax.swing.JComboBox |
boxTransCurvaDensidade
|
ButtonActionListener |
btAction
|
javax.swing.JButton |
btEditArc
|
javax.swing.JButton |
btEditDelete
|
javax.swing.JButton |
btEditLabel
|
javax.swing.JButton |
btEditPlace
|
javax.swing.JButton |
btEditSeta
|
javax.swing.JButton |
btEditTrans
|
javax.swing.JButton |
btSimBack
|
javax.swing.JButton |
btSimStart
|
javax.swing.JButton |
btSimStop
|
private com.jgoodies.forms.builder.DefaultFormBuilder |
builder
|
private com.jgoodies.forms.layout.CellConstraints |
cc
|
private java.awt.Container |
cp
|
PetriNetEditorCanvas |
editor
|
javax.swing.JTextField |
fieldArcPlace
|
javax.swing.JTextField |
fieldArcTrans
|
javax.swing.JTextField |
fieldPlaceNome
|
JTextFieldExtended |
fieldStatus
|
javax.swing.JTextField |
fieldTransName
|
javax.swing.JTextField |
fieldTransSeft
|
javax.swing.JTextField |
fieldTransSlft
|
private com.jgoodies.forms.layout.FormLayout |
layout
|
private javax.swing.JLabel |
lbArcInfo
|
private javax.swing.JLabel |
lbArcPeso
|
private javax.swing.JLabel |
lbArcPlace
|
private javax.swing.JLabel |
lbArcTrans
|
private javax.swing.JLabel |
lbPlaceFichas
|
private javax.swing.JLabel |
lbPlaceInfo
|
private javax.swing.JLabel |
lbPlaceName
|
private javax.swing.JLabel |
lbTransCurvaDensidade
|
private javax.swing.JLabel |
lbTransInfo
|
private javax.swing.JLabel |
lbTransName
|
private javax.swing.JLabel |
lbTransSeft
|
private javax.swing.JLabel |
lbTransSlft
|
javax.swing.JMenuItem |
m1English
|
javax.swing.JMenuItem |
m1Exit
|
private javax.swing.JMenu |
m1Language
|
javax.swing.JMenuItem |
m1New
|
javax.swing.JMenuItem |
m1Open
|
javax.swing.JMenuItem |
m1Portugues
|
javax.swing.JMenuItem |
m1Save
|
javax.swing.JMenuItem |
m1SaveAs
|
javax.swing.JMenuItem |
m2Back
|
javax.swing.JMenuItem |
m2Start
|
javax.swing.JMenuItem |
m2Stop
|
javax.swing.JMenuItem |
m3Geral
|
javax.swing.JMenuItem |
m4About
|
private javax.swing.JMenu |
menu1File
|
private javax.swing.JMenu |
menu2Simulator
|
private javax.swing.JMenu |
menu3Analisys
|
private javax.swing.JMenu |
menu4About
|
MenuActionListener |
menuAction
|
private javax.swing.JMenuBar |
menuBar
|
PlaceActionListener |
placeAction
|
PetriNetGraph |
pn
Rede de Petri |
(package private) static long |
serialVersionUID
Variável requisitada na herança de JFrame |
SimulationAction |
simAction
|
javax.swing.JSpinner |
spinnerArcPeso
|
javax.swing.JSpinner |
spinnerPlaceFichas
|
TransActionListener |
transAction
|
| 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 br.uerj.petrinetanalyzer.gui.interfaces.IntfMainConstants |
|---|
DRAW_ARC, EDIT_ARC, EDIT_DELETE, EDIT_LABEL, EDIT_LUGAR, EDIT_MOUSE, EDIT_TRANS, FILE_SAVE, MODO_ANALISE, MODO_EDICAO, MODO_SIMULACAO, PROP_LANGUAGE_FILE_DEFAULT, PROP_LANGUAGE_FILE_ENGLISH, PROP_LANGUAGE_FILE_PORT_BR, SIM_BACK, SIM_START, SIM_STOP |
| 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 | |
|---|---|
MainWindow()
Construtor da Classe, monta a janela principal. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent evt)
Implementação da Interface ActionListener. |
private void |
createArcPanel()
Cria os objetos do painel de informações de Arco |
private void |
createButtons()
Método que cria os botões da janela principal |
private void |
createEditorPanel()
Cria os objetos referentes ao Painel de desenho de Redes de Petri |
private javax.swing.JButton |
createJButton(java.lang.String strKey,
java.lang.String strLabel)
Cria um JButton com a chave passada como parâmetro e o adiciona a uma Map. |
static javax.swing.JLabel |
createJLabelDefault(java.lang.String strKey,
java.lang.String strLabel)
Cria um JLabel com configuração default. |
static javax.swing.JLabel |
createJLabelTitle(java.lang.String strKey,
java.lang.String strLabel)
Cria um JLabel com configuração de default para título. |
javax.swing.JTextField |
createJTextFieldDefault(java.lang.String strKey)
Cria JTextField com configuração default. |
private void |
createPlaceInfoPanel()
Cria os objetos do painel de informações da Lugar |
private void |
createStatusBar()
Método que cria a Barra de Status |
private void |
createTransitionPanel()
Cria os objetos do painel de informações de Transição |
void |
focusGained(java.awt.event.FocusEvent evt)
Implementa a interface FocusListener. |
void |
focusLost(java.awt.event.FocusEvent evt)
Implementa a interface FocusListener. |
private void |
montaMenu()
Monta o Menu da Janela Principal |
private java.awt.Component |
montaPainel()
Método que desenha a janela principal |
void |
refreshText()
Atualiza os rótulos de todos os textos que aparecem na Janela Principal. |
private void |
setNameButon(javax.swing.JButton bt)
Seta o rótulo do Botão recebido como parâmetro. |
private void |
setNameJLabel(javax.swing.JLabel lb)
Seta o rótulo do Label recebido como parâmetro. |
| 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 |
|---|
static final long serialVersionUID
public PetriNetGraph pn
private javax.swing.JMenuBar menuBar
private javax.swing.JMenu menu1File
public javax.swing.JMenuItem m1New
public javax.swing.JMenuItem m1Open
public javax.swing.JMenuItem m1Save
public javax.swing.JMenuItem m1SaveAs
public javax.swing.JMenuItem m1Exit
private javax.swing.JMenu m1Language
public javax.swing.JMenuItem m1Portugues
public javax.swing.JMenuItem m1English
private javax.swing.JMenu menu2Simulator
public javax.swing.JMenuItem m2Start
public javax.swing.JMenuItem m2Stop
public javax.swing.JMenuItem m2Back
private javax.swing.JMenu menu3Analisys
public javax.swing.JMenuItem m3Geral
private javax.swing.JMenu menu4About
public javax.swing.JMenuItem m4About
private java.awt.Container cp
private com.jgoodies.forms.builder.DefaultFormBuilder builder
private com.jgoodies.forms.layout.FormLayout layout
private com.jgoodies.forms.layout.CellConstraints cc
public javax.swing.JButton btEditSeta
public javax.swing.JButton btEditPlace
public javax.swing.JButton btEditTrans
public javax.swing.JButton btEditDelete
public javax.swing.JButton btEditArc
public javax.swing.JButton btEditLabel
public javax.swing.JButton btSimStart
public javax.swing.JButton btSimStop
public javax.swing.JButton btSimBack
private javax.swing.JLabel lbPlaceInfo
private javax.swing.JLabel lbPlaceName
private javax.swing.JLabel lbPlaceFichas
public javax.swing.JTextField fieldPlaceNome
public javax.swing.JSpinner spinnerPlaceFichas
private javax.swing.JLabel lbTransInfo
private javax.swing.JLabel lbTransName
private javax.swing.JLabel lbTransSeft
private javax.swing.JLabel lbTransSlft
private javax.swing.JLabel lbTransCurvaDensidade
public javax.swing.JTextField fieldTransName
public javax.swing.JTextField fieldTransSeft
public javax.swing.JTextField fieldTransSlft
public javax.swing.JComboBox boxTransCurvaDensidade
private javax.swing.JLabel lbArcInfo
private javax.swing.JLabel lbArcPlace
private javax.swing.JLabel lbArcTrans
private javax.swing.JLabel lbArcPeso
public javax.swing.JTextField fieldArcPlace
public javax.swing.JTextField fieldArcTrans
public javax.swing.JSpinner spinnerArcPeso
public PetriNetEditorCanvas editor
public JTextFieldExtended fieldStatus
public ArcActionListener arcAction
public PlaceActionListener placeAction
public TransActionListener transAction
public ButtonActionListener btAction
public MenuActionListener menuAction
public SimulationAction simAction
public AnalyzerAction anAction
| Constructor Detail |
|---|
MainWindow()
| Method Detail |
|---|
private void montaMenu()
private void createButtons()
private void createPlaceInfoPanel()
private void createTransitionPanel()
private void createArcPanel()
private void createStatusBar()
private void createEditorPanel()
private java.awt.Component montaPainel()
public void refreshText()
private void setNameButon(javax.swing.JButton bt)
bt - Botãoprivate void setNameJLabel(javax.swing.JLabel lb)
lb - Rótulo
public static javax.swing.JLabel createJLabelDefault(java.lang.String strKey,
java.lang.String strLabel)
strKey - Chave a ser usada pelo JLabel
public static javax.swing.JLabel createJLabelTitle(java.lang.String strKey,
java.lang.String strLabel)
strKey - Chave a ser usada pelo JLabel
public javax.swing.JTextField createJTextFieldDefault(java.lang.String strKey)
strKey - Chave a ser usada pelo JTextField
private javax.swing.JButton createJButton(java.lang.String strKey,
java.lang.String strLabel)
strKey - Chave a ser usada no botão criadostrLabel - Rótulo default a ser usado no botãopublic void actionPerformed(java.awt.event.ActionEvent evt)
actionPerformed in interface java.awt.event.ActionListenerevt - EventoActionListener.actionPerformed(java.awt.event.ActionEvent)public void focusGained(java.awt.event.FocusEvent evt)
focusGained in interface java.awt.event.FocusListenerevt - FocusListener.focusGained(java.awt.event.FocusEvent)public void focusLost(java.awt.event.FocusEvent evt)
focusLost in interface java.awt.event.FocusListenerevt - FocusListener.focusLost(java.awt.event.FocusEvent)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||