org.mdanderson.biostat.util
public class DefaultAboutPanel extends AbstractAboutPanel implements DefaultAboutPanelKeys
JPanel.AccessibleJPanel
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
Modifier and Type | Field and Description |
---|---|
protected JLabel |
appNameVersionLine |
protected JLabel |
bannerLine |
protected JLabel |
copyrightLine |
protected ImageIcon |
imageIcon |
protected JLabel |
legalitiesLine |
protected JLabel |
releaseDateLine |
protected JLabel |
splashLabel |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
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
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
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
|
Modifier and Type | Method and Description |
---|---|
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
|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
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, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, 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, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
protected JLabel bannerLine
protected JLabel appNameVersionLine
protected JLabel copyrightLine
protected JLabel legalitiesLine
protected JLabel releaseDateLine
protected JLabel splashLabel
protected ImageIcon imageIcon
public DefaultAboutPanel()
public DefaultAboutPanel(byte[] imageBuffer)
imageBuffer
- array of bytes specifying image bufferpublic DefaultAboutPanel(String imageFileName)
imageFileName
- name of file containing imagepublic DefaultAboutPanel(URL imageURL)
imageURL
- url of imagepublic DefaultAboutPanel(ImageIcon imageIcon)
imageIcon
- image iconpublic void setAppVersionLine(String appName, String appVersion)
setAppVersionLine
in interface AboutPanel
appName
- string specifying application name to be displayedappVersion
- string specifying application version to be displayedpublic void setBannerLine(String banner)
setBannerLine
in interface AboutPanel
banner
- string specifying banner text to be displayedpublic void setCopyrightLine(String copyright)
setCopyrightLine
in interface AboutPanel
copyright
- string specifying banner text to be displayedpublic void setCopyrightVisible(boolean visible)
setCopyrightVisible
in interface AboutPanel
visible
- if true, shows copyright information; otherwise, hides itpublic void setLegalitiesLine(String legalities)
setLegalitiesLine
in interface AboutPanel
legalities
- string specifying legal text to be displayedpublic void setLegalitiesVisible(boolean visible)
setLegalitiesVisible
in interface AboutPanel
visible
- if true, shows legal information; otherwise, hides itpublic void setReleaseDateLine(Date date)
setReleaseDateLine
in interface AboutPanel
date
- Date
specifying release date to be displayedpublic void setReleaseDateLine(String date)
setReleaseDateLine
in interface AboutPanel
date
- string specifying release date to be displayedprotected void addAboutPanelItems()
addAboutPanelItems
in class AbstractAboutPanel
protected JPanel createBannerPanel()
JPanel
representing banner panelprotected JPanel createImagePanel()
JPanel
representing image panelprotected JPanel createInfoPanel()
JPanel
representing application information panelCopyright © 2002 M.D. Anderson Cancer Center. All Rights Reserved.