objectdraw
Class FrameCanvas

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Canvas
              |
              +--objectdraw.AWTDrawingCanvas
                    |
                    +--objectdraw.FrameCanvas
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.event.ComponentListener, DrawingCanvas, java.util.EventListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.awt.event.WindowListener

public class FrameCanvas
extends AWTDrawingCanvas
implements DrawingCanvas, java.awt.event.ComponentListener, java.awt.event.WindowListener

See Also:
Serialized Form

Inner classes inherited from class java.awt.Canvas
java.awt.Canvas.AccessibleAWTCanvas
 
Inner classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent
 
Field Summary
static java.awt.Dimension DEFAULT_PREFERRED_SIZE
           
 
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
FrameCanvas()
           
FrameCanvas(java.awt.Dimension size)
          Creates a new FrameCanvas.
FrameCanvas(int width, int height)
          Creates a new FrameCanvas.
 
Method Summary
 java.awt.Dimension getPreferredSize()
          Retrieves the object's preferred size.
 void setSize(java.awt.Dimension d)
           
 void setSize(int width, int height)
           
 void windowActivated(java.awt.event.WindowEvent e)
           
 void windowClosed(java.awt.event.WindowEvent e)
           
 void windowClosing(java.awt.event.WindowEvent e)
          Closes the Frame and kills all running ActiveObjects so they don't remain alive behind the scenes.
 void windowDeactivated(java.awt.event.WindowEvent e)
           
 void windowDeiconified(java.awt.event.WindowEvent e)
           
 void windowIconified(java.awt.event.WindowEvent e)
           
 void windowOpened(java.awt.event.WindowEvent e)
           
 
Methods inherited from class objectdraw.AWTDrawingCanvas
addToCanvas, clear, componentHidden, componentMoved, componentResized, componentShown, disableAutoRepaint, enableAutoRepaint, getCanvasContent, getHeight, getWidth, imageUpdate, paint, removeFromCanvas, repaint, update
 
Methods inherited from class java.awt.Canvas
addNotify, getAccessibleContext
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getInputContext, getInputMethodRequests, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getName, getParent, getPeer, getSize, getSize, getToolkit, getTreeLock, getX, getY, gotFocus, handleEvent, hasFocus, hide, inside, invalidate, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, 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, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFont, setForeground, setLocale, setLocation, setLocation, setName, setVisible, show, show, size, toString, transferFocus, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface objectdraw.DrawingCanvas
addComponentListener, addKeyListener, addMouseListener, addMouseMotionListener, addToCanvas, clear, createImage, disableAutoRepaint, enableAutoRepaint, getBackground, getCanvasContent, getForeground, getGraphics, getHeight, getSize, getWidth, prepareImage, removeFromCanvas, repaint, setBackground, setForeground
 
Methods inherited from interface java.awt.image.ImageObserver
imageUpdate
 
Methods inherited from interface java.awt.event.ComponentListener
componentHidden, componentMoved, componentResized, componentShown
 

Field Detail

DEFAULT_PREFERRED_SIZE

public static final java.awt.Dimension DEFAULT_PREFERRED_SIZE
Constructor Detail

FrameCanvas

public FrameCanvas()

FrameCanvas

public FrameCanvas(int width,
                   int height)
Creates a new FrameCanvas.
Parameters:
width - the canvas' preferred width
height - the canvas' preferred height

FrameCanvas

public FrameCanvas(java.awt.Dimension size)
Creates a new FrameCanvas.
Parameters:
size - the canvas' preferred dimensions
Method Detail

setSize

public void setSize(java.awt.Dimension d)
Overrides:
setSize in class java.awt.Component

setSize

public void setSize(int width,
                    int height)
Overrides:
setSize in class java.awt.Component

getPreferredSize

public java.awt.Dimension getPreferredSize()
Description copied from class: AWTDrawingCanvas
Retrieves the object's preferred size.
Overrides:
getPreferredSize in class AWTDrawingCanvas
Following copied from class: objectdraw.AWTDrawingCanvas
Returns:
the object's preferred size

windowOpened

public void windowOpened(java.awt.event.WindowEvent e)
Specified by:
windowOpened in interface java.awt.event.WindowListener

windowActivated

public void windowActivated(java.awt.event.WindowEvent e)
Specified by:
windowActivated in interface java.awt.event.WindowListener

windowClosed

public void windowClosed(java.awt.event.WindowEvent e)
Specified by:
windowClosed in interface java.awt.event.WindowListener

windowClosing

public void windowClosing(java.awt.event.WindowEvent e)
Closes the Frame and kills all running ActiveObjects so they don't remain alive behind the scenes.
Specified by:
windowClosing in interface java.awt.event.WindowListener
Parameters:
e - the WindowEvent telling the window to close

windowDeactivated

public void windowDeactivated(java.awt.event.WindowEvent e)
Specified by:
windowDeactivated in interface java.awt.event.WindowListener

windowDeiconified

public void windowDeiconified(java.awt.event.WindowEvent e)
Specified by:
windowDeiconified in interface java.awt.event.WindowListener

windowIconified

public void windowIconified(java.awt.event.WindowEvent e)
Specified by:
windowIconified in interface java.awt.event.WindowListener