engine.AboutWindow Class Reference

To create an about window. More...

Inheritance diagram for engine.AboutWindow:

Inheritance graph
[legend]
Collaboration diagram for engine.AboutWindow:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 AboutWindow ()
 create the Window
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)

Package Attributes

Font font = new Font("Arial", Font.BOLD, 48)
 Some fonts.
Font fonts = new Font("Arial", Font.BOLD, 24)
 Some fonts.
Font fontxs = new Font("Arial", Font.PLAIN, 18)
 Some fonts.
AttributedString text = new AttributedString("SolidJavaTetris")
 The Strings.
String code = "coded by: "
 The Strings.
String name1 = "Thorsten Engesser"
 The Strings.
String name2 = "FranzDietrich"
 The Strings.

Private Attributes

JFrame frame
 A new Subwindow.
JPanel comp
 The JPanel.


Detailed Description

To create an about window.

Author:
Team Solid Sun

Constructor & Destructor Documentation

engine.AboutWindow.AboutWindow (  ) 

create the Window

References engine.AboutWindow.code, engine.AboutWindow.comp, engine.AboutWindow.font, engine.AboutWindow.fonts, engine.AboutWindow.fontxs, engine.AboutWindow.frame, engine.AboutWindow.name1, engine.AboutWindow.name2, and engine.AboutWindow.text.

00071                              {
00072                 frame = new JFrame("About SolidJavaTetris");
00073 
00074                 text.addAttribute(TextAttribute.FOREGROUND, new GradientPaint(0, 0,
00075                                 Color.black, 0, 48, Color.red, true));
00076                 text.addAttribute(TextAttribute.FONT, font);
00077 
00078                 comp = new JPanel() {
00079                         private static final long serialVersionUID = -7503584594887895025L;
00080 
00081                         @Override
00082                         public void paint(Graphics g) {
00083                                 g.drawString(text.getIterator(), 30, 100);
00084                                 g.setFont(fonts);
00085                                 g.drawString(code, 30, 150);
00086                                 g.drawString(name1, 130, 200);
00087                                 g.drawString(name2, 130, 230);
00088                                 g.setFont(fontxs);
00089                                 g.drawString(
00090                                                 "Website: http://solidjavatetris.sourceforge.net/", 30,
00091                                                 400);
00092                                 return;
00093                         }
00094                 };
00095                 frame.setSize(450, 450);
00096                 frame.setResizable(false);
00097                 frame.addWindowListener(this);
00098                 frame.add(comp);
00099 
00100                 frame.setVisible(true);
00101 
00102                 comp.getGraphics().drawString(text.getIterator(), 30, 100);
00103                 ;
00104                 frame.validate();
00105 
00106         }


Member Function Documentation

void engine.AboutWindow.windowActivated ( WindowEvent  e  ) 

Parameters:
e 
See also:
java.awt.event.WindowListener.windowActivated(java.awt.event.WindowEvent)
00112                                                    {
00113         }

void engine.AboutWindow.windowClosed ( WindowEvent  e  ) 

Parameters:
e 
See also:
java.awt.event.WindowListener.windowClosed(java.awt.event.WindowEvent)

References engine.AboutWindow.frame.

00119                                                 {
00120                 frame.setVisible(false);
00121         }

void engine.AboutWindow.windowClosing ( WindowEvent  e  ) 

Parameters:
e 
See also:
java.awt.event.WindowListener.windowClosing(java.awt.event.WindowEvent)

References engine.AboutWindow.frame.

00127                                                  {
00128                 frame.setVisible(false);
00129         }

void engine.AboutWindow.windowDeactivated ( WindowEvent  e  ) 

Parameters:
e 
See also:
java.awt.event.WindowListener.windowDeactivated(java.awt.event.WindowEvent)

References engine.AboutWindow.frame.

00135                                                      {
00136                 frame.setVisible(false);
00137         }

void engine.AboutWindow.windowDeiconified ( WindowEvent  e  ) 

Parameters:
e 
See also:
java.awt.event.WindowListener.windowDeiconified(java.awt.event.WindowEvent)
00143                                                      {
00144         }

void engine.AboutWindow.windowIconified ( WindowEvent  e  ) 

Parameters:
e 
See also:
java.awt.event.WindowListener.windowIconified(java.awt.event.WindowEvent)

References engine.AboutWindow.frame.

00150                                                    {
00151                 frame.setVisible(false);
00152 
00153         }

void engine.AboutWindow.windowOpened ( WindowEvent  e  ) 

Parameters:
e 
See also:
java.awt.event.WindowListener.windowOpened(java.awt.event.WindowEvent)
00159                                                 {
00160         }


Member Data Documentation

JFrame engine.AboutWindow.frame [private]

JPanel engine.AboutWindow.comp [private]

The JPanel.

Referenced by engine.AboutWindow.AboutWindow().

Font engine.AboutWindow.font = new Font("Arial", Font.BOLD, 48) [package]

Some fonts.

Referenced by engine.AboutWindow.AboutWindow().

Font engine.AboutWindow.fonts = new Font("Arial", Font.BOLD, 24) [package]

Some fonts.

Referenced by engine.AboutWindow.AboutWindow().

Font engine.AboutWindow.fontxs = new Font("Arial", Font.PLAIN, 18) [package]

Some fonts.

Referenced by engine.AboutWindow.AboutWindow().

AttributedString engine.AboutWindow.text = new AttributedString("SolidJavaTetris") [package]

The Strings.

Referenced by engine.AboutWindow.AboutWindow().

String engine.AboutWindow.code = "coded by: " [package]

The Strings.

Referenced by engine.AboutWindow.AboutWindow().

String engine.AboutWindow.name1 = "Thorsten Engesser" [package]

The Strings.

Referenced by engine.AboutWindow.AboutWindow().

String engine.AboutWindow.name2 = "FranzDietrich" [package]

The Strings.

Referenced by engine.AboutWindow.AboutWindow().


The documentation for this class was generated from the following file:

Generated on Mon Jul 28 19:03:03 2008 for SolidJavaTetris by  doxygen 1.5.5