Package org.tn5250j.gui
Class TN5250jSplashScreen
- java.lang.Object
-
- java.awt.Component
-
- java.awt.Canvas
-
- org.tn5250j.gui.TN5250jSplashScreen
-
- All Implemented Interfaces:
java.awt.image.ImageObserver,java.awt.MenuContainer,java.io.Serializable,javax.accessibility.Accessible
public class TN5250jSplashScreen extends java.awt.CanvasUses an Icon or the location of an image to create an application's introductory screen.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TN5250jSplashScreen(java.lang.String image_location)Creates a splash screen given the location of the image.TN5250jSplashScreen(javax.swing.ImageIcon image)Creates a splash screen given an Icon image.
-
Method Summary
Modifier and Type Method Description protected voidinitialize(javax.swing.ImageIcon iimage)Creates the Splash screen window and configures it.voidpaint(java.awt.Graphics g)voidsetSteps(int step)voidsetVisible(boolean show)This method will show or hide the splash screen.voidupdate(java.awt.Graphics g)voidupdateProgress(int prog)-
Methods inherited from class java.awt.Canvas
addNotify, createBufferStrategy, createBufferStrategy, getAccessibleContext, getBufferStrategy
-
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAlignmentX, getAlignmentY, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setMixingCutoutShape, setName, setPreferredSize, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, validate
-
-
-
-
Constructor Detail
-
TN5250jSplashScreen
public TN5250jSplashScreen(java.lang.String image_location)
Creates a splash screen given the location of the image. The image location is the package path of the image and must be in the classpath. For example, if an image was located in /test/examples/image.gif, and the classpath specified contains /test, the constructor should be passed "/examples/image.gif".- Parameters:
image_location- an image location
-
TN5250jSplashScreen
public TN5250jSplashScreen(javax.swing.ImageIcon image)
Creates a splash screen given an Icon image.- Parameters:
image- an icon
-
-
Method Detail
-
initialize
protected void initialize(javax.swing.ImageIcon iimage)
Creates the Splash screen window and configures it.- Parameters:
iimage- an icon
-
setSteps
public void setSteps(int step)
-
updateProgress
public void updateProgress(int prog)
-
update
public void update(java.awt.Graphics g)
- Overrides:
updatein classjava.awt.Canvas
-
paint
public void paint(java.awt.Graphics g)
- Overrides:
paintin classjava.awt.Canvas
-
setVisible
public void setVisible(boolean show)
This method will show or hide the splash screen. Once the splash screen is hidden, the splash screen window will be disposed. This means the splash screen cannot become visible again.- Overrides:
setVisiblein classjava.awt.Component- Parameters:
show- flag
-
-