gui
Class POSTerminal
- public class POSTerminal
- extends javax.swing.JFrame
hints
private static java.lang.Object hints
- Rendering Hints to make graphics nicer
dimSize
private static java.awt.Dimension dimSize
- The dimension of the program
imgBackground
private java.awt.Image imgBackground
- The background image object
lblTime
private javax.swing.JLabel lblTime
- Editable Components of POSGUITerminal
contentPane
private javax.swing.JPanel contentPane
- Components for GUI Layouting
POSTerminal
public POSTerminal()
- Constructs a POSTerminal Object
computeLayerBounds
private static java.awt.Rectangle computeLayerBounds(int iLayer)
- This function does the computation of all layers within the frame to support multiple sizes of screen.
- Parameters:
iLayer - - The layer to computer [0 - 7]
- Returns:
- rectDimension
jinit
private void jinit()
- Initializes the POSTerminal Object
loadImages
private void loadImages()
- Loads the Images
setSize
public void setSize(java.awt.Dimension dimSize)
- Parameters:
dimSize - - size
- See Also:
- setSize
setupLayers
private void setupLayers()
- Sets up the 8 layers of the POSTerminal gui
setupLayerComponents
private void setupLayerComponents(int iLayer)
- Sets up the components of given layers
- Parameters:
iLayer - - current layer
renderComponents
private void renderComponents(java.awt.Graphics g)
- Renders the Components
- Parameters:
g - - graphics object
paint
public void paint(java.awt.Graphics g)
- Parameters:
g - - graphics object
- See Also:
- paint
getInputField
public javax.swing.JTextField getInputField()
- Gets the Input Field of POSGuiTerminal
- Returns:
- tfInput