MDACC
Biostatistics

org.mdanderson.biostat.util
Class DefaultAboutPanel

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.JPanel
                  extended byorg.mdanderson.biostat.util.AbstractAboutPanel
                      extended byorg.mdanderson.biostat.util.DefaultAboutPanel
All Implemented Interfaces:
AboutPanel, Accessible, DefaultAboutPanelKeys, ImageObserver, MenuContainer, Serializable
Direct Known Subclasses:
GCAboutPanel

public class DefaultAboutPanel
extends AbstractAboutPanel
implements DefaultAboutPanelKeys

DefaultAboutPanel - Creates a generic ABOUT panel

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.JPanel
JPanel.AccessibleJPanel
 
Nested classes inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
 
Nested classes inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
protected  JLabel appNameVersionLine
           
protected  JLabel bannerLine
           
protected  JLabel copyrightLine
           
protected  ImageIcon imageIcon
           
protected  JLabel legalitiesLine
           
protected  JLabel releaseDateLine
           
protected  JLabel splashLabel
           
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface org.mdanderson.biostat.util.DefaultAboutPanelKeys
ABOUT_PANEL_APP_NAME_VERSION_DESCRIPTION, ABOUT_PANEL_APP_NAME_VERSION_LABEL, ABOUT_PANEL_BANNER_DESCRIPTION, ABOUT_PANEL_BANNER_LABEL, ABOUT_PANEL_COPYRIGHT_DESCRIPTION, ABOUT_PANEL_COPYRIGHT_LABEL, ABOUT_PANEL_LEGALITIES_DESCRIPTION, ABOUT_PANEL_LEGALITIES_LABEL, ABOUT_PANEL_RELEASE_DATE_DESCRIPTION, ABOUT_PANEL_RELEASE_DATE_LABEL
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
DefaultAboutPanel()
          Class constructor
DefaultAboutPanel(byte[] imageBuffer)
          Class constructor specifying image buffer
DefaultAboutPanel(ImageIcon imageIcon)
          Class constructor specifying image icon
DefaultAboutPanel(String imageFileName)
          Class constructor specifying image file name
DefaultAboutPanel(URL imageURL)
          Class constructor specifying image URL
 
Method Summary
protected  void addAboutPanelItems()
          Adds items to about panel.
protected  JPanel createBannerPanel()
          Creates a pane for displaying banner
protected  JPanel createImagePanel()
          Creates a pane for displaying image
protected  JPanel createInfoPanel()
          Creates a pane for displaying application information
protected  String enhanceBanner(String banner)
          Enhances the original banner string.
 void setAppVersionLine(String appName, String appVersion)
          Sets the application name and version to be displayed
 void setBannerLine(String banner)
          Sets the banner to be displayed
 void setCopyrightLine(String copyright)
          Sets the copyright to be displayed
 void setCopyrightVisible(boolean visible)
          Shows or hides the copyright information depending on the value of parameter
 void setLegalitiesLine(String legalities)
          Sets the legal text to be displayed
 void setLegalitiesVisible(boolean visible)
          Shows or hides the legal information depending on the value of parameter
 void setReleaseDateLine(Date date)
          Sets the release date to be displayed
 void setReleaseDateLine(String date)
          Sets the release date to be displayed
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, 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, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

bannerLine

protected JLabel bannerLine

appNameVersionLine

protected JLabel appNameVersionLine

copyrightLine

protected JLabel copyrightLine

legalitiesLine

protected JLabel legalitiesLine

releaseDateLine

protected JLabel releaseDateLine

splashLabel

protected JLabel splashLabel

imageIcon

protected ImageIcon imageIcon
Constructor Detail

DefaultAboutPanel

public DefaultAboutPanel()
Class constructor


DefaultAboutPanel

public DefaultAboutPanel(byte[] imageBuffer)
Class constructor specifying image buffer

Parameters:
imageBuffer - array of bytes specifying image buffer

DefaultAboutPanel

public DefaultAboutPanel(String imageFileName)
Class constructor specifying image file name

Parameters:
imageFileName - name of file containing image

DefaultAboutPanel

public DefaultAboutPanel(URL imageURL)
Class constructor specifying image URL

Parameters:
imageURL - url of image

DefaultAboutPanel

public DefaultAboutPanel(ImageIcon imageIcon)
Class constructor specifying image icon

Parameters:
imageIcon - image icon
Method Detail

setAppVersionLine

public void setAppVersionLine(String appName,
                              String appVersion)
Sets the application name and version to be displayed

Specified by:
setAppVersionLine in interface AboutPanel
Parameters:
appName - string specifying application name to be displayed
appVersion - string specifying application version to be displayed

setBannerLine

public void setBannerLine(String banner)
Sets the banner to be displayed

Specified by:
setBannerLine in interface AboutPanel
Parameters:
banner - string specifying banner text to be displayed

setCopyrightLine

public void setCopyrightLine(String copyright)
Sets the copyright to be displayed

Specified by:
setCopyrightLine in interface AboutPanel
Parameters:
copyright - string specifying banner text to be displayed

setCopyrightVisible

public void setCopyrightVisible(boolean visible)
Shows or hides the copyright information depending on the value of parameter

Specified by:
setCopyrightVisible in interface AboutPanel
Parameters:
visible - if true, shows copyright information; otherwise, hides it

setLegalitiesLine

public void setLegalitiesLine(String legalities)
Sets the legal text to be displayed

Specified by:
setLegalitiesLine in interface AboutPanel
Parameters:
legalities - string specifying legal text to be displayed

setLegalitiesVisible

public void setLegalitiesVisible(boolean visible)
Shows or hides the legal information depending on the value of parameter

Specified by:
setLegalitiesVisible in interface AboutPanel
Parameters:
visible - if true, shows legal information; otherwise, hides it

setReleaseDateLine

public void setReleaseDateLine(Date date)
Sets the release date to be displayed

Specified by:
setReleaseDateLine in interface AboutPanel
Parameters:
date - Date specifying release date to be displayed

setReleaseDateLine

public void setReleaseDateLine(String date)
Sets the release date to be displayed

Specified by:
setReleaseDateLine in interface AboutPanel
Parameters:
date - string specifying release date to be displayed

addAboutPanelItems

protected void addAboutPanelItems()
Adds items to about panel. This implementation adds a banner panel at the top, an info panel at the bottom, and an image panel in the middle.

Specified by:
addAboutPanelItems in class AbstractAboutPanel

createBannerPanel

protected JPanel createBannerPanel()
Creates a pane for displaying banner

Returns:
JPanel representing banner panel

createImagePanel

protected JPanel createImagePanel()
Creates a pane for displaying image

Returns:
JPanel representing image panel

createInfoPanel

protected JPanel createInfoPanel()
Creates a pane for displaying application information

Returns:
JPanel representing application information panel

enhanceBanner

protected String enhanceBanner(String banner)
Enhances the original banner string.

Parameters:
banner - string containing banner text
Returns:
string containing HTML version of banner text

MDACC
Biostatistics

Copyright © 2002 M.D. Anderson Cancer Center. All Rights Reserved.