Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

Class uk.co.ist.mwt.ImageArea

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Canvas
              |
              +--uk.co.ist.mwt.ImageArea

public class ImageArea
extends java.awt.Canvas
The ImageArea is a space which knows how to display an image.

See Also:
Serialized Form

Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Method Summary
java.awt.Image getDisabledImage()
          Method to get the image displayed in the area when it has been disabled
java.awt.Image getImage()
          Method to get the image displayed in the area
boolean imageUpdate(java.awt.Image img, int flags, int x, int y, int w, int h)
          Routine to repaint the image when it changes; we ask the parent to relayout if our idea of its size has changed.
java.awt.Dimension minimumSize()
          Gets the minimum size of the ImageArea.
void paint(java.awt.Graphics g)
          Method to paint the area
java.awt.Dimension preferredSize()
          Gets the preferred size of the ImageArea.
void setDisabledImage(java.awt.Image i)
          Method to specify the image to display in the area when it has been disabled
void setImage(java.awt.Image i)
          Method to specify the image to display in the area
 
Methods inherited from class java.awt.Canvas
addNotify, paint
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, deliverEvent, disable, dispatchEvent, doLayout, enable, enable, enableInputMethods, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getName, getParent, getPeer, getPreferredSize, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, 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, paint, postEvent, preferredSize, prepareImage, prepareImage, printAll, print, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFont, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, update, validate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait
 

Method Detail

setImage

public void setImage(java.awt.Image i)
Method to specify the image to display in the area
Parameters:
i - the image to display

getImage

public java.awt.Image getImage()
Method to get the image displayed in the area

setDisabledImage

public void setDisabledImage(java.awt.Image i)
Method to specify the image to display in the area when it has been disabled
Parameters:
i - the image to display

getDisabledImage

public java.awt.Image getDisabledImage()
Method to get the image displayed in the area when it has been disabled

paint

public void paint(java.awt.Graphics g)
Method to paint the area
Parameters:
g - the graphics context into which we should draw
Overrides:
paint in class java.awt.Canvas

preferredSize

public java.awt.Dimension preferredSize()
Gets the preferred size of the ImageArea. This is the same as its minimum size, and is large enough to hold the image.
Overrides:
preferredSize in class java.awt.Component
See Also:
minimumSize

minimumSize

public java.awt.Dimension minimumSize()
Gets the minimum size of the ImageArea. This is the same as its preferred size, and is large enough to hold the image.
Overrides:
minimumSize in class java.awt.Component
See Also:
preferredSize

imageUpdate

public boolean imageUpdate(java.awt.Image img,
                           int flags,
                           int x,
                           int y,
                           int w,
                           int h)
Routine to repaint the image when it changes; we ask the parent to relayout if our idea of its size has changed.
Overrides:
imageUpdate in class java.awt.Component

Class | Tree | Deprecated | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD