public class BGeneric extends Object implements ScaleActionListener, gnu.io.SerialPortEventListener, WindowListener, WindowStateListener
Modifier and Type | Field and Description |
---|---|
protected JTabbedPane |
menu |
protected HashMap<String,JToolBar> |
menus |
protected JLabel |
outputLabel |
protected ScaleData |
sd |
protected ScaleReader |
sr |
protected JFrame |
window |
Constructor and Description |
---|
BGeneric() |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ScaleAction action) |
protected JToolBar |
addMenuBar(String name) |
ImageIcon |
createIcon(String icon) |
void |
grabSerialEvent(gnu.io.SerialPortEvent ev) |
void |
run() |
void |
serialEvent(gnu.io.SerialPortEvent ev) |
void |
setup(ScaleReader reader) |
void |
windowActivated(WindowEvent e) |
void |
windowClosed(WindowEvent e) |
void |
windowClosing(WindowEvent e) |
void |
windowDeactivated(WindowEvent e) |
void |
windowDeiconified(WindowEvent e) |
void |
windowIconified(WindowEvent e) |
void |
windowOpened(WindowEvent e) |
void |
windowStateChanged(WindowEvent e) |
protected JFrame window
protected JTabbedPane menu
protected ScaleReader sr
protected ScaleData sd
protected JLabel outputLabel
public void setup(ScaleReader reader)
public void run()
public void serialEvent(gnu.io.SerialPortEvent ev)
serialEvent
in interface gnu.io.SerialPortEventListener
public void grabSerialEvent(gnu.io.SerialPortEvent ev)
public void windowStateChanged(WindowEvent e)
windowStateChanged
in interface WindowStateListener
public void windowOpened(WindowEvent e)
windowOpened
in interface WindowListener
public void windowClosing(WindowEvent e)
windowClosing
in interface WindowListener
public void windowClosed(WindowEvent e)
windowClosed
in interface WindowListener
public void windowIconified(WindowEvent e)
windowIconified
in interface WindowListener
public void windowDeiconified(WindowEvent e)
windowDeiconified
in interface WindowListener
public void windowActivated(WindowEvent e)
windowActivated
in interface WindowListener
public void windowDeactivated(WindowEvent e)
windowDeactivated
in interface WindowListener
public void actionPerformed(ScaleAction action)
actionPerformed
in interface ScaleActionListener
Copyright © 2017 StarPhoenix Media. All rights reserved.