com.arsdigita.toolbox.rebop
Class GenericImage

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended bycom.arsdigita.toolbox.rebop.GenericComponent
              extended bycom.arsdigita.toolbox.rebop.GenericImage
All Implemented Interfaces:
EventListener, GenericDrawable, ImageObserver, MenuContainer, MouseListener, Serializable

public class GenericImage
extends GenericComponent
implements GenericDrawable

GenericImage.java Created: Fri Sep 21 06:54:02 2001

Version:
$Date: 2004/04/07 $
Author:
Gavin Doughtie
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes 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 com.arsdigita.toolbox.rebop.GenericDrawable
versionId
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
GenericImage()
           
GenericImage(Image image)
           
 
Method Summary
 void draw(Graphics g, int x, int y, int width, int height)
          This is the main GenericDrawable method implementors will define.
 Image getImage()
           
 Dimension getPreferredSize()
           
 boolean getTiled()
           
 int getXOffset()
           
 int getYOffset()
           
 void paint(Graphics g)
          paints the component by calling the draw method.
 void setImage(Image image)
           
 void setTiled(boolean tiled)
           
 void setUseOffset(boolean useOffset)
           
 void setXOffset(int xOffset)
          The X and Y offsets are used to offset a drawable from the location where it is told to draw.
 void setYOffset(int yOffset)
           
 
Methods inherited from class com.arsdigita.toolbox.rebop.GenericComponent
addNotify, componentReshape, draw, drawDebug, forceInvalid, getDebugPaint, getDoubleBuffered, getDrawable, mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased, reshape, setBounds, setDebugPaint, setDoubleBuffered, setDrawable, validateTree
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, update, validate
 
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, getAccessibleContext, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, 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, resize, resize, setBackground, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GenericImage

public GenericImage()

GenericImage

public GenericImage(Image image)
Method Detail

setImage

public void setImage(Image image)

getImage

public Image getImage()

setTiled

public void setTiled(boolean tiled)

getTiled

public boolean getTiled()

getPreferredSize

public Dimension getPreferredSize()

draw

public void draw(Graphics g,
                 int x,
                 int y,
                 int width,
                 int height)
Description copied from interface: GenericDrawable
This is the main GenericDrawable method implementors will define. The other methods can typically be inherited from AbstractDrawable.

Specified by:
draw in interface GenericDrawable
Overrides:
draw in class GenericComponent

setXOffset

public void setXOffset(int xOffset)
Description copied from interface: GenericDrawable
The X and Y offsets are used to offset a drawable from the location where it is told to draw. Offsets are typically used for drawables that are inside components that form the contents of a push-down button.

Specified by:
setXOffset in interface GenericDrawable
Overrides:
setXOffset in class GenericComponent

getXOffset

public int getXOffset()
Specified by:
getXOffset in interface GenericDrawable
Overrides:
getXOffset in class GenericComponent

getYOffset

public int getYOffset()
Specified by:
getYOffset in interface GenericDrawable
Overrides:
getYOffset in class GenericComponent

setYOffset

public void setYOffset(int yOffset)
Specified by:
setYOffset in interface GenericDrawable
Overrides:
setYOffset in class GenericComponent

setUseOffset

public void setUseOffset(boolean useOffset)

paint

public void paint(Graphics g)
Description copied from class: GenericComponent
paints the component by calling the draw method. Handles double-buffer and debug drawing logic. Subclasses should override draw if they wish to perform custom painting.

Overrides:
paint in class GenericComponent
Parameters:
g - Graphics to draw in


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 20 2004:2337 UTC