|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Canvas
objectdraw.AWTDrawingCanvas
objectdraw.AWTFrameCanvas
AWTFrameCanvas is an extension of AWTDrawingCanvas that creates a Frame and puts an AWTDrawingCanvas inside. It is provided to make it possible to experiment with creating and manipulating graphical objects on a DrawingCanvas under environments like Dr. Java and BlueJ.
AWTDrawingCanvas
,
DrawingCanvas
,
Serialized FormField Summary | |
static java.awt.Dimension |
DEFAULT_PREFERRED_SIZE
|
Fields inherited from class objectdraw.AWTDrawingCanvas |
REPAINT_DELAY |
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 | |
AWTFrameCanvas()
|
|
AWTFrameCanvas(java.awt.Dimension size)
Creates a new FrameCanvas. |
|
AWTFrameCanvas(int width,
int height)
Creates a new FrameCanvas. |
Method Summary | |
java.awt.Dimension |
getPreferredSize()
Returns the preferred size of the Frame |
void |
setSize(java.awt.Dimension d)
Sets the size of the Frame to the given Dimension |
void |
setSize(int width,
int height)
Sets the size of the Frame to the given width and height |
void |
windowActivated(java.awt.event.WindowEvent e)
Empty method included to implement the WindowListener interface. |
void |
windowClosed(java.awt.event.WindowEvent e)
Empty method included to implement the WindowListener interface. |
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)
Empty method included to implement the WindowListener interface. |
void |
windowDeiconified(java.awt.event.WindowEvent e)
Empty method included to implement the WindowListener interface. |
void |
windowIconified(java.awt.event.WindowEvent e)
Empty method included to implement the WindowListener interface. |
void |
windowOpened(java.awt.event.WindowEvent e)
Empty method included to implement the WindowListener interface. |
Methods inherited from class objectdraw.AWTDrawingCanvas |
clear, componentHidden, componentMoved, componentResized, componentShown, disableAutoRepaint, enableAutoRepaint, getCanvasContent, getDrawableIterator, getHeight, getWidth, imageUpdate, paint, repaint, update |
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, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, dispatchEvent, doLayout, enable, enable, enableInputMethods, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getX, getY, gotFocus, handleEvent, hasFocus, hide, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, 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, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, validate |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface objectdraw.DrawingCanvas |
addComponentListener, addKeyListener, addMouseListener, addMouseMotionListener, clear, createImage, disableAutoRepaint, enableAutoRepaint, getCanvasContent, getDrawableIterator, getGraphics, getHeight, getSize, getWidth, prepareImage, repaint, requestFocus, requestFocusInWindow |
Methods inherited from interface java.awt.image.ImageObserver |
imageUpdate |
Methods inherited from interface java.awt.event.ComponentListener |
componentHidden, componentMoved, componentResized, componentShown |
Field Detail |
public static final java.awt.Dimension DEFAULT_PREFERRED_SIZE
Constructor Detail |
public AWTFrameCanvas()
public AWTFrameCanvas(int width, int height)
width
- the canvas' preferred widthheight
- the canvas' preferred heightpublic AWTFrameCanvas(java.awt.Dimension size)
size
- the canvas' preferred dimensionsMethod Detail |
public void setSize(java.awt.Dimension d)
d
- the dimension to change the Frame's size topublic void setSize(int width, int height)
width
- the size to change the Frame's width toheight
- the size to change the Frame's height topublic java.awt.Dimension getPreferredSize()
getPreferredSize
in class AWTDrawingCanvas
public void windowClosing(java.awt.event.WindowEvent e)
windowClosing
in interface java.awt.event.WindowListener
e
- the WindowEvent telling the window to closepublic void windowActivated(java.awt.event.WindowEvent e)
windowActivated
in interface java.awt.event.WindowListener
e
- an event that will be ignoredpublic void windowClosed(java.awt.event.WindowEvent e)
windowClosed
in interface java.awt.event.WindowListener
e
- an event that will be ignoredpublic void windowDeactivated(java.awt.event.WindowEvent e)
windowDeactivated
in interface java.awt.event.WindowListener
e
- an event that will be ignoredpublic void windowDeiconified(java.awt.event.WindowEvent e)
windowDeiconified
in interface java.awt.event.WindowListener
e
- an event that will be ignoredpublic void windowIconified(java.awt.event.WindowEvent e)
windowIconified
in interface java.awt.event.WindowListener
e
- an event that will be ignoredpublic void windowOpened(java.awt.event.WindowEvent e)
windowOpened
in interface java.awt.event.WindowListener
e
- an event that will be ignored
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |