|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--java.awt.Window
|
+--java.awt.Frame
|
+--dog.gui.DFrame
A frame container for displaying lightweight components.
| Inner classes inherited from class java.awt.Frame |
java.awt.Frame.AccessibleAWTFrame |
| Inner classes inherited from class java.awt.Window |
java.awt.Window.AccessibleAWTWindow |
| Inner classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
| Inner classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent |
| Field Summary | |
protected java.awt.Image |
backgroundImage
The image to use as the background. |
protected DButton |
cancelButton
The cancel button in this container. |
protected DButton |
defaultButton
The default button in this container. |
protected int |
mode
The rendering mode for the background image. |
| Fields inherited from class java.awt.Frame |
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface dog.gui.DRootPane |
CENTER, CENTER_TILE, INTEGER_TILE, MAXIMIZE, MAXIMIZE_ASPECT, MAXIMIZE_HORIZONTAL, MAXIMIZE_VERTICAL, TILE |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
DFrame()
Constructs a frame with no background image. |
|
DFrame(java.lang.String title)
Constructs a frame with the specified title and no background image. |
|
DFrame(java.lang.String title,
java.awt.Image backgroundImage)
Constructs a frame with the specified title and background image. |
|
DFrame(java.lang.String title,
java.lang.String backgroundImage)
Constructs a frame with the specified title and background image. |
|
DFrame(java.lang.String title,
java.net.URL backgroundImage)
Constructs a frame with the specified title and background image. |
|
| Method Summary | |
java.awt.Component |
add(java.awt.Component component)
Adds the specified component to this pane. |
protected void |
addImpl(java.awt.Component component,
java.lang.Object constraints,
int index)
Overrides addImpl to manage lightweight popups. |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener l)
Adds a property change listener to receive notification of changes to this component. |
void |
centre()
Centres the frame in the screen. |
void |
doLayout()
Lays out the frame. |
java.awt.Image |
getBackgroundImage()
Returns the background image. |
DButton |
getCancelButton()
Returns the cancel button in this container. |
DContainer |
getContentPane()
Returns the content pane. |
DButton |
getDefaultButton()
Returns the default button in this container. |
java.awt.Frame |
getFrame()
Returns the frame this root pane represents or is part of. |
DContainer |
getGlassPane()
Returns the glass pane. |
java.awt.LayoutManager |
getLayout()
Returns the layout manager for this pane. |
java.awt.Dimension |
getMaximumSize()
Returns the maximum size for a gui frame. |
java.awt.Dimension |
getMinimumSize()
Returns the minimum size for a gui frame. |
int |
getMode()
Returns the rendering mode for the background image. |
java.awt.Dimension |
getPreferredSize()
Returns the preferred size for a gui frame. |
boolean |
imageUpdate(java.awt.Image image,
int flags,
int x,
int y,
int w,
int h)
The background image has arrived... |
void |
invalidate()
Flushes the offscreen buffer as part of invalidation. |
void |
paint(java.awt.Graphics gPrime)
Paints the children into an offscreen buffer, then copies the entire image into the graphics context. |
protected void |
paintImpl(java.awt.Graphics g)
This method can be overridden to paint onto the frame. |
void |
processCancelAction(java.awt.event.ActionEvent event)
Activates the cancel button in the container. |
void |
processDefaultAction(java.awt.event.ActionEvent event)
Activates the default button in the container. |
protected void |
processKeyEvent(java.awt.event.KeyEvent event)
|
void |
remove(java.awt.Component component)
Removes the specified component from this pane. |
void |
removeAll()
Removes all components from this pane. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener l)
Removes a property change listener so it no longer receives notification of changes to this component. |
void |
setBackgroundImage(java.awt.Image image)
Sets the background image. |
void |
setBackgroundImage(java.lang.String file)
Sets the background image from a file. |
void |
setBackgroundImage(java.net.URL url)
Sets the background image from a URL. |
void |
setCancelButton(DButton button)
Sets the cancel button in this container. |
void |
setDefaultButton(DButton button)
Sets the default button in this container. |
void |
setLayout(java.awt.LayoutManager layout)
Sets the layout manager for this pane. |
void |
setMode(int mode)
Sets the rendering mode for the background image. |
void |
update(java.awt.Graphics g)
Update does not erase the background before painting (why bother?). |
| Methods inherited from class java.awt.Frame |
addNotify, finalize, getAccessibleContext, getCursorType, getFrames, getIconImage, getMenuBar, getState, getTitle, isResizable, paramString, remove, removeNotify, setCursor, setIconImage, setMenuBar, setResizable, setState, setTitle |
| Methods inherited from class java.awt.Window |
addWindowListener, applyResourceBundle, applyResourceBundle, dispose, getFocusOwner, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getOwnedWindows, getOwner, getToolkit, getWarningString, hide, isShowing, pack, postEvent, processEvent, processWindowEvent, removeWindowListener, setCursor, show, toBack, toFront |
| Methods inherited from class java.awt.Container |
add, add, add, add, addContainerListener, countComponents, deliverEvent, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getInsets, insets, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeContainerListener, setFont, validate, validateTree |
| Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputMethodRequests, getLocation, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, inside, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, 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, processMouseEvent, processMouseMotionEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface dog.gui.DRootPane |
getFont, getFontMetrics, getInsets, getSize, getTitle, setCursor, setTitle |
| Methods inherited from interface java.awt.MenuContainer |
getFont, postEvent |
| Field Detail |
protected int mode
protected java.awt.Image backgroundImage
protected DButton defaultButton
protected DButton cancelButton
| Constructor Detail |
public DFrame()
public DFrame(java.lang.String title)
public DFrame(java.lang.String title,
java.awt.Image backgroundImage)
public DFrame(java.lang.String title,
java.lang.String backgroundImage)
public DFrame(java.lang.String title,
java.net.URL backgroundImage)
| Method Detail |
public DContainer getContentPane()
public DContainer getGlassPane()
public int getMode()
getMode in interface DRootPanesetMode(int)public void setMode(int mode)
setMode in interface DRootPanemode - one of CENTER, TILE, INTEGER_TILE, CENTER_TILE, MAXIMIZE, MAXIMIZE_ASPECT, MAXIMIZE_VERTICAL, or MAXIMIZE_HORIZONTALgetMode()public java.awt.Image getBackgroundImage()
getBackgroundImage in interface DRootPanesetBackgroundImage(java.awt.Image)public void setBackgroundImage(java.awt.Image image)
setBackgroundImage in interface DRootPaneimage - the background image.getBackgroundImage()public void setBackgroundImage(java.lang.String file)
setBackgroundImage in interface DRootPanefile - the image file.getBackgroundImage()public void setBackgroundImage(java.net.URL url)
setBackgroundImage in interface DRootPaneurl - the image URL.getBackgroundImage()public DButton getDefaultButton()
getDefaultButton in interface DRootPanepublic void setDefaultButton(DButton button)
setDefaultButton in interface DRootPanepublic void processDefaultAction(java.awt.event.ActionEvent event)
processDefaultAction in interface DRootPanepublic DButton getCancelButton()
getCancelButton in interface DRootPanepublic void setCancelButton(DButton button)
setCancelButton in interface DRootPanepublic void processCancelAction(java.awt.event.ActionEvent event)
processCancelAction in interface DRootPanepublic java.awt.Frame getFrame()
getFrame in interface DRootPanepublic java.awt.LayoutManager getLayout()
getLayout in class java.awt.Containerpublic void setLayout(java.awt.LayoutManager layout)
setLayout in class java.awt.Containerpublic java.awt.Component add(java.awt.Component component)
add in interface DRootPaneadd in class java.awt.Containercomponent - the component to be added.
protected void addImpl(java.awt.Component component,
java.lang.Object constraints,
int index)
addImpl in class java.awt.Containerpublic void remove(java.awt.Component component)
remove in interface DRootPaneremove in class java.awt.Containercomponent - the component to be removedadd(java.awt.Component)public void removeAll()
removeAll in class java.awt.Containerpublic void centre()
public java.awt.Dimension getMinimumSize()
getMinimumSize in class java.awt.Containerpublic java.awt.Dimension getPreferredSize()
getPreferredSize in class java.awt.Containerpublic java.awt.Dimension getMaximumSize()
getMaximumSize in class java.awt.Container
public boolean imageUpdate(java.awt.Image image,
int flags,
int x,
int y,
int w,
int h)
imageUpdate in class java.awt.Componentpublic void doLayout()
doLayout in class java.awt.Containerpublic void invalidate()
invalidate in class java.awt.Containerpublic void update(java.awt.Graphics g)
update in class java.awt.Containerpublic void paint(java.awt.Graphics gPrime)
paint in class java.awt.Containerprotected void paintImpl(java.awt.Graphics g)
public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
addPropertyChangeListener in class java.awt.Componentl - the listenerpublic void removePropertyChangeListener(java.beans.PropertyChangeListener l)
removePropertyChangeListener in class java.awt.Componentl - the listenerprotected void processKeyEvent(java.awt.event.KeyEvent event)
processKeyEvent in class java.awt.Component
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||