Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.trapezium.chisel.gui
Class AboutPanel  view AboutPanel download AboutPanel.java

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Panel
              extended bycom.trapezium.chisel.gui.AboutPanel
All Implemented Interfaces:
javax.accessibility.Accessible, java.util.EventListener, java.awt.image.ImageObserver, java.awt.event.KeyListener, java.awt.MenuContainer, java.io.Serializable

public class AboutPanel
extends java.awt.Panel
implements java.awt.event.KeyListener

information panel for about box and splash screen


Nested Class Summary
 
Nested classes inherited from class java.awt.Panel
java.awt.Panel.AccessibleAWTPanel
 
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)  boolean border
           
private  java.lang.String[] copyInfo
           
(package private)  java.awt.FontMetrics fmBody
           
(package private)  java.awt.FontMetrics fmCopy
           
(package private)  java.awt.FontMetrics fmReport
           
(package private)  java.awt.FontMetrics fmSubtitle
           
(package private)  java.awt.FontMetrics fmTitle
           
(package private)  java.awt.FontMetrics fmVersion
           
(package private) static int hmargin
           
private  java.lang.String homeURL
           
private  java.lang.String[] info
           
(package private)  java.lang.String javaInfo1
           
(package private)  java.lang.String javaInfo2
           
(package private) static float MB
           
(package private)  java.lang.String memReport
           
private  com.trapezium.chisel.DialogOwner owner
           
(package private)  java.lang.String progtitle
           
(package private)  java.lang.String subtitle
           
(package private) static int titlevmargin
           
(package private)  java.lang.String version
           
(package private) static int vmargin
           
 
Fields inherited from class java.awt.Panel
 
Fields inherited from class java.awt.Container
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
AboutPanel(com.trapezium.chisel.DialogOwner owner, java.lang.String progtitle, java.lang.String version)
           
AboutPanel(com.trapezium.chisel.DialogOwner owner, java.lang.String progtitle, java.lang.String version, boolean border)
           
 
Method Summary
private  void dispose()
           
 void drawBorder(java.awt.Graphics g, int x, int y, int width, int height)
           
 void drawBorder(java.awt.Graphics g, int x, int y, int width, int height, java.awt.Color bg, boolean indented, boolean thick)
           
private  java.awt.Font getBodyFont()
           
private  java.awt.Font getCopyrightFont()
           
 java.awt.Dimension getMinimumSize()
          determine the minimum size
 java.awt.Dimension getPreferredSize()
          determine the preferred size
private  java.awt.Font getReportFont()
           
private  java.awt.Font getSubtitleFont()
           
private  java.awt.Font getTitleFont()
           
private  java.awt.Font getVersionFont()
           
 void keyPressed(java.awt.event.KeyEvent e)
          This method is called when a key is pressed.
 void keyReleased(java.awt.event.KeyEvent e)
          This method is called when a key is released.
 void keyTyped(java.awt.event.KeyEvent e)
          This method is called when a key is typed.
 void paint(java.awt.Graphics g)
          draw the image and the label in a specified rectangle.
 
Methods inherited from class java.awt.Panel
addNotify, getAccessibleContext
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, setLayout, transferFocusDownCycle, update, 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, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

owner

private com.trapezium.chisel.DialogOwner owner

copyInfo

private final java.lang.String[] copyInfo

info

private final java.lang.String[] info

homeURL

private final java.lang.String homeURL
See Also:
Constant Field Values

progtitle

java.lang.String progtitle

subtitle

java.lang.String subtitle

version

java.lang.String version

border

boolean border

fmTitle

java.awt.FontMetrics fmTitle

fmSubtitle

java.awt.FontMetrics fmSubtitle

fmVersion

java.awt.FontMetrics fmVersion

fmReport

java.awt.FontMetrics fmReport

fmBody

java.awt.FontMetrics fmBody

fmCopy

java.awt.FontMetrics fmCopy

hmargin

static final int hmargin
See Also:
Constant Field Values

vmargin

static final int vmargin
See Also:
Constant Field Values

titlevmargin

static final int titlevmargin
See Also:
Constant Field Values

javaInfo1

java.lang.String javaInfo1

javaInfo2

java.lang.String javaInfo2

memReport

java.lang.String memReport

MB

static final float MB
See Also:
Constant Field Values
Constructor Detail

AboutPanel

public AboutPanel(com.trapezium.chisel.DialogOwner owner,
                  java.lang.String progtitle,
                  java.lang.String version)

AboutPanel

public AboutPanel(com.trapezium.chisel.DialogOwner owner,
                  java.lang.String progtitle,
                  java.lang.String version,
                  boolean border)
Method Detail

getTitleFont

private java.awt.Font getTitleFont()

getSubtitleFont

private java.awt.Font getSubtitleFont()

getVersionFont

private java.awt.Font getVersionFont()

getReportFont

private java.awt.Font getReportFont()

getCopyrightFont

private java.awt.Font getCopyrightFont()

getBodyFont

private java.awt.Font getBodyFont()

getMinimumSize

public java.awt.Dimension getMinimumSize()
determine the minimum size


getPreferredSize

public java.awt.Dimension getPreferredSize()
determine the preferred size


drawBorder

public void drawBorder(java.awt.Graphics g,
                       int x,
                       int y,
                       int width,
                       int height)

drawBorder

public void drawBorder(java.awt.Graphics g,
                       int x,
                       int y,
                       int width,
                       int height,
                       java.awt.Color bg,
                       boolean indented,
                       boolean thick)

paint

public void paint(java.awt.Graphics g)
draw the image and the label in a specified rectangle.


keyTyped

public void keyTyped(java.awt.event.KeyEvent e)
Description copied from interface: java.awt.event.KeyListener
This method is called when a key is typed. A key is considered typed when it and all modifiers have been pressed and released, mapping to a single virtual key.

Specified by:
keyTyped in interface java.awt.event.KeyListener

keyReleased

public void keyReleased(java.awt.event.KeyEvent e)
Description copied from interface: java.awt.event.KeyListener
This method is called when a key is released.

Specified by:
keyReleased in interface java.awt.event.KeyListener

keyPressed

public void keyPressed(java.awt.event.KeyEvent e)
Description copied from interface: java.awt.event.KeyListener
This method is called when a key is pressed.

Specified by:
keyPressed in interface java.awt.event.KeyListener

dispose

private void dispose()