public class IlvSplashWindow extends Window
Window.AccessibleAWTWindow, Window.Type
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
IlvSplashWindow(JFrame frame)
Constructs a new
IlvSplashWindow . |
IlvSplashWindow(JFrame frame,
Image image)
Constructs a new
IlvSplashWindow displaying the
specified image . |
IlvSplashWindow(JFrame frame,
URL imageURL)
Constructs a new
IlvSplashWindow that displays an image
defined with the specified URL. |
Modifier and Type | Method and Description |
---|---|
protected void |
addImageComponent(Component component,
ImageIcon imageIcon)
Invoked by the
initialize() method to insert the specified
component displaying the image of the specified
imageIcon . |
Image |
getImage()
Returns the image displayed by the splash window.
|
Component |
getImageComponent()
Gets the component that displays the image of the splash window.
|
protected void |
initialize()
Initializes the splash window.
|
boolean |
isStarted()
Determines whether the splash window has been started.
|
protected void |
locateWindow()
This method is invoked by the
initialize() method to initialize
the bounds of the splash window. |
void |
setImage(Image image)
Sets the image displayed by the splash window.
|
void |
setImage(URL imageURL)
Sets the image displayed by the splash window.
|
void |
start()
Invoked by the application after the window has been initialized.
|
void |
stop()
Stops the display of the splash window.
|
addNotify, addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getAccessibleContext, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowEvent, processWindowFocusEvent, processWindowStateEvent, removeNotify, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBackground, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImage, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setOpacity, setShape, setSize, setSize, setType, setVisible, show, toBack, toFront
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, setLayout, transferFocusDownCycle, update, validate, validateTree
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, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, 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, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public IlvSplashWindow(JFrame frame)
IlvSplashWindow
.frame
- The parent frame.public IlvSplashWindow(JFrame frame, URL imageURL)
IlvSplashWindow
that displays an image
defined with the specified URL.frame
- The parent frame.imageURL
- The URL of the image displayed by the splash window.setImage(URL)
public IlvSplashWindow(JFrame frame, Image image)
IlvSplashWindow
displaying the
specified image
.frame
- The parent frame.image
- The image displayed by the splash window.setImage(Image)
public void setImage(URL imageURL)
imageURL
- The URL of the new image displayed by the splash window.setImage(Image)
public void setImage(Image image)
image
- The new image displayed by the splash window.setImage(URL)
protected void initialize()
addImageComponent(java.awt.Component, javax.swing.ImageIcon)
method and the position of the window is
set with the locateWindow()
method.public void start()
protected void addImageComponent(Component component, ImageIcon imageIcon)
initialize()
method to insert the specified
component
displaying the image of the specified
imageIcon
.
By default, the component is added at the center of the frame.
This method can be overridden to insert the component in a user-specific
hierarchy of panels.component
- The component to add.imageIcon
- The image icon to display.public boolean isStarted()
true
if the splash window has been started with the
method start()
; false
otherwise.public void stop()
protected void locateWindow()
initialize()
method to initialize
the bounds of the splash window.
By default, the window is centered on the screen.public Component getImageComponent()
public Image getImage()
initialize()
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.