ilog.views.appframe.swing
Class IlvSplashWindow

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by java.awt.Window
              extended by ilog.views.appframe.swing.IlvSplashWindow
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class IlvSplashWindow
extends Window

This window is used as a display while the application is initializing.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.awt.Window
Window.AccessibleAWTWindow
 
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
 
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
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.
 
Method Summary
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.
 
Methods inherited from class java.awt.Window
addNotify, addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, finalize, getAccessibleContext, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, postEvent, processEvent, processWindowEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setAlwaysOnTop, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationByPlatform, setLocationRelativeTo, show, toBack, toFront
 
Methods inherited from class java.awt.Container
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, paint, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, setLayout, transferFocusBackward, 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, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, 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, isOpaque, 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, reshape, resize, resize, setBackground, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IlvSplashWindow

public IlvSplashWindow(JFrame frame)
Constructs a new IlvSplashWindow.

Parameters:
frame - The parent frame.

IlvSplashWindow

public IlvSplashWindow(JFrame frame,
                       URL imageURL)
Constructs a new IlvSplashWindow that displays an image defined with the specified URL.

Parameters:
frame - The parent frame.
imageURL - The URL of the image displayed by the splash window.
See Also:
setImage(URL)

IlvSplashWindow

public IlvSplashWindow(JFrame frame,
                       Image image)
Constructs a new IlvSplashWindow displaying the specified image.

Parameters:
frame - The parent frame.
image - The image displayed by the splash window.
See Also:
setImage(Image)
Method Detail

setImage

public void setImage(URL imageURL)
Sets the image displayed by the splash window. The size of the window fits the size of the new image.

Parameters:
imageURL - The URL of the new image displayed by the splash window.
See Also:
setImage(Image)

setImage

public void setImage(Image image)
Sets the image displayed by the splash window. The size of the window fits the size of the new image.

Parameters:
image - The new image displayed by the splash window.
See Also:
setImage(URL)

initialize

protected void initialize()
Initializes the splash window. This method is automatically invoked before starting the display of the splash window. The image component is added to the window with the addImageComponent(java.awt.Component, javax.swing.ImageIcon) method and the position of the window is set with the locateWindow() method.


start

public void start()
Invoked by the application after the window has been initialized.


addImageComponent

protected void addImageComponent(Component component,
                                 ImageIcon imageIcon)
Invoked by the 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.

Parameters:
component - The component to add.
imageIcon - The image icon to display.

isStarted

public boolean isStarted()
Determines whether the splash window has been started.

Returns:
true if the splash window has been started with the method start(); false otherwise.

stop

public void stop()
Stops the display of the splash window.


locateWindow

protected void locateWindow()
This method is invoked by the initialize() method to initialize the bounds of the splash window. By default, the window is centered on the screen.


getImageComponent

public Component getImageComponent()
Gets the component that displays the image of the splash window.


getImage

public Image getImage()
Returns the image displayed by the splash window.

See Also:
initialize()


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.