dog.gui
Class DContainer

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--dog.gui.DContainer
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, Referential, java.io.Serializable
Direct Known Subclasses:
DFolder, DFrameset, DGroup, DList, DPopup, DScrollPane, DTextComponent

public class DContainer
extends java.awt.Container
implements Referential

The base class for lightweight containers.

All DContainers are beans, and property change listeners can register themselves for property changes. All DContainers can have a tooltip set, which will be managed by its root pane. Also you can set an arbitrary object reference for any component.

See Also:
Serialized Form

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  DButton cancelButton
          The cancel button in this container.
static int CENTER
          The centre alignment.
protected  DButton defaultButton
          The default button in this container.
static int EAST
          The east alignment.
static int NORTH
          The north alignment.
static int NORTHEAST
          The northeast alignment.
static int NORTHWEST
          The northwest alignment.
protected  java.lang.Object reference
           
static int SOUTH
          The south alignment.
static int SOUTHEAST
          The southeast alignment.
static int SOUTHWEST
          The southwest alignment.
protected  java.lang.String tooltip
           
static int WEST
          The west alignment.
 
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
DContainer()
          Constructs a new container with no layout manager.
DContainer(java.awt.LayoutManager layout)
          Constructs a new container with the specified layout manager.
 
Method Summary
protected  void addImpl(java.awt.Component component, java.lang.Object constraints, int index)
          Allow DRootPane access to addImpl
 void addPropertyChangeListener(java.beans.PropertyChangeListener l)
          Adds a property change listener to receive notification of changes to this component.
protected  java.lang.String alignParamString(int align)
          Returns a description of alignment for debugging.
protected static void drawActiveButtonBorder(java.awt.Graphics g, java.awt.Rectangle r, java.awt.Color ds, java.awt.Color h, java.awt.Color c, java.awt.Color pc, java.awt.Color pcds)
          Draws a border for active buttons.
protected static void drawActiveOptionBorder(java.awt.Graphics g, java.awt.Rectangle r, java.awt.Color ds, java.awt.Color h, java.awt.Color c, java.awt.Color cs, java.awt.Color pc, java.awt.Color pcds)
          Draws a border for active options.
protected static void drawArrow(java.awt.Graphics g, java.awt.Rectangle r, boolean active, int orientation, java.awt.Color ds, java.awt.Color h, java.awt.Color pc)
          Draws an arrow inside the specified bounds rectangle.
protected static void drawBorder(java.awt.Graphics g, java.awt.Rectangle r, java.awt.Color ds, java.awt.Color h, java.awt.Color c)
          Draws a border inside the specified bounds rectangle.
protected static void drawButtonBorder(java.awt.Graphics g, java.awt.Rectangle r, boolean active, java.awt.Color ds, java.awt.Color h, java.awt.Color c, java.awt.Color pc, java.awt.Color pcds)
          Draws a border for buttons.
protected static void drawCheckbox(java.awt.Graphics g, java.awt.Rectangle r, boolean active, boolean value, java.awt.Color ds, java.awt.Color h, java.awt.Color c, java.awt.Color cs, java.awt.Color pc, java.awt.Color pcds, java.awt.Color f)
          Draws a checkbox inside the specified bounds rectangle.
protected static void drawDarkBorder(java.awt.Graphics g, java.awt.Rectangle r, java.awt.Color ds, java.awt.Color h, java.awt.Color c, java.awt.Color cs)
          Draws a dark border for things like sticky buttons.
protected static void drawDefaultButtonBorder(java.awt.Graphics g, java.awt.Rectangle r, boolean active, java.awt.Color ds, java.awt.Color h, java.awt.Color c, java.awt.Color pc, java.awt.Color pcds)
          Draws a border for the default button in a pane.
protected static void drawDisabledBorder(java.awt.Graphics g, java.awt.Rectangle r, java.awt.Color d)
          Draws a disabled border inside the specified bounds rectangle.
protected static void drawDisabledCheckbox(java.awt.Graphics g, java.awt.Rectangle r, boolean value, java.awt.Color d)
          Draws a disabled checkbox inside the specified bounds rectangle.
protected static void drawDisabledOption(java.awt.Graphics g, java.awt.Rectangle r, boolean value, java.awt.Color d)
          Draws a disabled option inside the specified bounds rectangle.
protected static void drawExpander(java.awt.Graphics g, java.awt.Rectangle r, boolean active, boolean collapsed, java.awt.Color pc, java.awt.Color pch, java.awt.Color pcs, java.awt.Color pcds, java.awt.Color f)
          Draws an expansion symbol.
protected static void drawFocusBorder(java.awt.Graphics g, java.awt.Rectangle r, java.awt.Color f)
          Draws a focus border inside the specified bounds rectangle.
protected static void drawImage(java.awt.Graphics g, java.awt.Rectangle r, java.awt.Image image, java.awt.image.ImageObserver observer, int align)
          Draws an image into the specified bounds rectangle, rescaling it if necessary.
protected static void drawLabel(java.awt.Graphics g, java.awt.Rectangle r, java.awt.FontMetrics fm, java.lang.String label, int align, java.awt.Color f)
          Draws a multiline label in the specified bounds rectangle.
protected static void drawOption(java.awt.Graphics g, java.awt.Rectangle r, boolean active, boolean value, java.awt.Color ds, java.awt.Color h, java.awt.Color c, java.awt.Color cs, java.awt.Color pc, java.awt.Color pcds, java.awt.Color f)
          Draws an option inside the specified bounds rectangle.
protected static void drawOptionBorder(java.awt.Graphics g, java.awt.Rectangle r, java.awt.Color ds, java.awt.Color h, java.awt.Color c)
          Draws a border for options.
protected static void drawPressedBorder(java.awt.Graphics g, java.awt.Rectangle r, java.awt.Color ds, java.awt.Color h, java.awt.Color c, java.awt.Color cs)
          Draws a pressed border inside the specified bounds rectangle.
 DButton getCancelButton()
          Returns the cancel button in this container.
 java.awt.Component getComponent(java.lang.Object reference)
          Returns the component in this container with the specified reference, or null if no such component exists (or is not Referential).
 DButton getDefaultButton()
          Returns the default button in this container.
static java.awt.Toolkit getDefaultToolkit()
          Returns the default toolkit.
static java.awt.Image getImage(java.awt.Image image, java.awt.image.ImageObserver observer)
          Returns images for observers.
static java.awt.Image getImage(java.lang.String file, java.awt.image.ImageObserver observer)
          Returns images for observers.
static java.awt.Image getImage(java.net.URL url, java.awt.image.ImageObserver observer)
          Returns images for observers.
 java.lang.Object getReference()
          Returns the object reference.
 DRootPane getRootPane()
          Returns the root pane for this component.
 java.lang.String getTooltip()
          Returns the tooltip label for this component.
static boolean isPreloadImages()
          Indicates whether to preload images from files or URLs.
protected  java.lang.String paramString()
          Returns additional parameters about the component.
 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 processEvent(java.awt.AWTEvent event)
           
protected  void processMouseEvent(java.awt.event.MouseEvent event)
           
protected  void processMouseMotionEvent(java.awt.event.MouseEvent event)
           
 void removePropertyChangeListener(java.beans.PropertyChangeListener l)
          Removes a property change listener so it no longer receives notification of changes to this component.
 void setCancelButton(DButton button)
          Sets the cancel button in this container.
 void setDefaultButton(DButton button)
          Sets the default button in this container.
 void setEnabled(boolean flag)
          Overrides setEnabled to repaint the component.
static void setPreloadImages(boolean flag)
          Sets whether to preload images from files or URLs.
 void setReference(java.lang.Object reference)
          Sets the object reference.
 void setTooltip(java.lang.String tooltip)
          Sets the tooltip label for this component.
 java.lang.String toString()
          Returns a string description of this component.
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addNotify, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setFont, setLayout, update, 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, getAccessibleContext, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, 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, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CENTER

public static final int CENTER
The centre alignment.

NORTH

public static final int NORTH
The north alignment.

EAST

public static final int EAST
The east alignment.

SOUTH

public static final int SOUTH
The south alignment.

WEST

public static final int WEST
The west alignment.

NORTHEAST

public static final int NORTHEAST
The northeast alignment.

SOUTHEAST

public static final int SOUTHEAST
The southeast alignment.

SOUTHWEST

public static final int SOUTHWEST
The southwest alignment.

NORTHWEST

public static final int NORTHWEST
The northwest alignment.

defaultButton

protected DButton defaultButton
The default button in this container.

cancelButton

protected DButton cancelButton
The cancel button in this container.

reference

protected java.lang.Object reference

tooltip

protected java.lang.String tooltip
Constructor Detail

DContainer

public DContainer()
Constructs a new container with no layout manager.

DContainer

public DContainer(java.awt.LayoutManager layout)
Constructs a new container with the specified layout manager.
Method Detail

getTooltip

public java.lang.String getTooltip()
Returns the tooltip label for this component.

setTooltip

public void setTooltip(java.lang.String tooltip)
Sets the tooltip label for this component.

getDefaultButton

public DButton getDefaultButton()
Returns the default button in this container.

setDefaultButton

public void setDefaultButton(DButton button)
Sets the default button in this container.

processDefaultAction

public void processDefaultAction(java.awt.event.ActionEvent event)
Activates the default button in the container.

getCancelButton

public DButton getCancelButton()
Returns the cancel button in this container.

setCancelButton

public void setCancelButton(DButton button)
Sets the cancel button in this container.

processCancelAction

public void processCancelAction(java.awt.event.ActionEvent event)
Activates the cancel button in the container.

setEnabled

public void setEnabled(boolean flag)
Overrides setEnabled to repaint the component.
Overrides:
setEnabled in class java.awt.Component

getDefaultToolkit

public static java.awt.Toolkit getDefaultToolkit()
Returns the default toolkit.

getImage

public static java.awt.Image getImage(java.awt.Image image,
                                      java.awt.image.ImageObserver observer)
Returns images for observers.

getImage

public static java.awt.Image getImage(java.lang.String file,
                                      java.awt.image.ImageObserver observer)
Returns images for observers.

getImage

public static java.awt.Image getImage(java.net.URL url,
                                      java.awt.image.ImageObserver observer)
Returns images for observers.

isPreloadImages

public static boolean isPreloadImages()
Indicates whether to preload images from files or URLs.

setPreloadImages

public static void setPreloadImages(boolean flag)
Sets whether to preload images from files or URLs.

addImpl

protected void addImpl(java.awt.Component component,
                       java.lang.Object constraints,
                       int index)
Allow DRootPane access to addImpl
Overrides:
addImpl in class java.awt.Container

getReference

public java.lang.Object getReference()
Returns the object reference.
Specified by:
getReference in interface Referential

setReference

public void setReference(java.lang.Object reference)
Sets the object reference.
Specified by:
setReference in interface Referential
Parameters:
reference - the object reference to store.

getComponent

public java.awt.Component getComponent(java.lang.Object reference)
Returns the component in this container with the specified reference, or null if no such component exists (or is not Referential).

getRootPane

public DRootPane getRootPane()
Returns the root pane for this component.
See Also:
DRootPane

toString

public java.lang.String toString()
Returns a string description of this component.
Overrides:
toString in class java.awt.Component

paramString

protected java.lang.String paramString()
Returns additional parameters about the component.
Overrides:
paramString in class java.awt.Container

alignParamString

protected java.lang.String alignParamString(int align)
Returns a description of alignment for debugging.

drawBorder

protected static void drawBorder(java.awt.Graphics g,
                                 java.awt.Rectangle r,
                                 java.awt.Color ds,
                                 java.awt.Color h,
                                 java.awt.Color c)
Draws a border inside the specified bounds rectangle.
Parameters:
g - the graphics context
r - the bounding rectangle of the border
ds - the control dark shadow colour to use
h - the control highlight colour to use
c - the control colour to use

drawFocusBorder

protected static void drawFocusBorder(java.awt.Graphics g,
                                      java.awt.Rectangle r,
                                      java.awt.Color f)
Draws a focus border inside the specified bounds rectangle.
Parameters:
g - the graphics context
r - the bounding rectangle of the border
f - the control focus to use

drawPressedBorder

protected static void drawPressedBorder(java.awt.Graphics g,
                                        java.awt.Rectangle r,
                                        java.awt.Color ds,
                                        java.awt.Color h,
                                        java.awt.Color c,
                                        java.awt.Color cs)
Draws a pressed border inside the specified bounds rectangle. Used for things like pressed buttons.
Parameters:
g - the graphics context
r - the bounding rectangle of the border
ds - the control dark shadow colour to use
h - the control highlight colour to use
c - the control colour to use
cs - the control shadow colour to use

drawDisabledBorder

protected static void drawDisabledBorder(java.awt.Graphics g,
                                         java.awt.Rectangle r,
                                         java.awt.Color d)
Draws a disabled border inside the specified bounds rectangle.
Parameters:
g - the graphics context
r - the bounding rectangle of the border
d - the control disabled colour to use

drawDarkBorder

protected static void drawDarkBorder(java.awt.Graphics g,
                                     java.awt.Rectangle r,
                                     java.awt.Color ds,
                                     java.awt.Color h,
                                     java.awt.Color c,
                                     java.awt.Color cs)
Draws a dark border for things like sticky buttons.
Parameters:
g - the graphics context
r - the bounding rectangle of the border
c - the control colour to use
cs - the control shadow colour to use

drawButtonBorder

protected static void drawButtonBorder(java.awt.Graphics g,
                                       java.awt.Rectangle r,
                                       boolean active,
                                       java.awt.Color ds,
                                       java.awt.Color h,
                                       java.awt.Color c,
                                       java.awt.Color pc,
                                       java.awt.Color pcds)
Draws a border for buttons.
Parameters:
g - the graphics context
r - the bounding rectangle of the border
active - whether the button is active
ds - the control dark shadow colour to use
h - the control highlight colour to use
c - the control colour to use
pc - the primary control colour to use
pcds - the primary control dark shadow colour to use

drawActiveButtonBorder

protected static void drawActiveButtonBorder(java.awt.Graphics g,
                                             java.awt.Rectangle r,
                                             java.awt.Color ds,
                                             java.awt.Color h,
                                             java.awt.Color c,
                                             java.awt.Color pc,
                                             java.awt.Color pcds)
Draws a border for active buttons.
Parameters:
g - the graphics context
r - the bounding rectangle of the border
ds - the control dark shadow colour to use
h - the control highlight colour to use
c - the control colour to use
pc - the primary control colour to use
pcds - the primary control dark shadow colour to use

drawDefaultButtonBorder

protected static void drawDefaultButtonBorder(java.awt.Graphics g,
                                              java.awt.Rectangle r,
                                              boolean active,
                                              java.awt.Color ds,
                                              java.awt.Color h,
                                              java.awt.Color c,
                                              java.awt.Color pc,
                                              java.awt.Color pcds)
Draws a border for the default button in a pane.
Parameters:
g - the graphics context
r - the bounding rectangle of the border
active - whether the button is active
ds - the control dark shadow colour to use
h - the control highlight colour to use
c - the control colour to use
pc - the primary control colour to use
pcds - the primary control dark shadow colour to use

drawArrow

protected static void drawArrow(java.awt.Graphics g,
                                java.awt.Rectangle r,
                                boolean active,
                                int orientation,
                                java.awt.Color ds,
                                java.awt.Color h,
                                java.awt.Color pc)
Draws an arrow inside the specified bounds rectangle.
Parameters:
g - the graphics context
r - the bounding rectangle of the arrow
active - if true, fills the arrow with the primary control colour
orientation - the orientation of the apex of the arrow (NORTH, EAST, SOUTH, or WEST)
ds - the control dark shadow colour to use
h - the control highlight colour to use
pc - the primary control colour to use

drawCheckbox

protected static void drawCheckbox(java.awt.Graphics g,
                                   java.awt.Rectangle r,
                                   boolean active,
                                   boolean value,
                                   java.awt.Color ds,
                                   java.awt.Color h,
                                   java.awt.Color c,
                                   java.awt.Color cs,
                                   java.awt.Color pc,
                                   java.awt.Color pcds,
                                   java.awt.Color f)
Draws a checkbox inside the specified bounds rectangle.
Parameters:
g - the graphics context
r - the bounding rectangle of the check
active - whether the checkbox is active
value - if true, draws a check mark
ds - the control dark shadow colour to use
h - the control highlight colour to use
c - the control colour to use
pc - the primary control colour to use
pcds - the primary control dark shadow colour to use
f - the colour to draw the check in

drawDisabledCheckbox

protected static void drawDisabledCheckbox(java.awt.Graphics g,
                                           java.awt.Rectangle r,
                                           boolean value,
                                           java.awt.Color d)
Draws a disabled checkbox inside the specified bounds rectangle.
Parameters:
g - the graphics context
r - the bounding rectangle of the check
value - if true, draws a check mark
d - the control disabled colour to use

drawOption

protected static void drawOption(java.awt.Graphics g,
                                 java.awt.Rectangle r,
                                 boolean active,
                                 boolean value,
                                 java.awt.Color ds,
                                 java.awt.Color h,
                                 java.awt.Color c,
                                 java.awt.Color cs,
                                 java.awt.Color pc,
                                 java.awt.Color pcds,
                                 java.awt.Color f)
Draws an option inside the specified bounds rectangle.
Parameters:
g - the graphics context
r - the bounding rectangle of the circle
active - whether the option is active
value - if true, draws a dot in the circle
ds - the control dark shadow colour to use
h - the control highlight colour to use
c - the control colour to use
pc - the primary control colour to use
pcds - the primary control dark shadow colour to use
f - the colour to draw the dot in

drawDisabledOption

protected static void drawDisabledOption(java.awt.Graphics g,
                                         java.awt.Rectangle r,
                                         boolean value,
                                         java.awt.Color d)
Draws a disabled option inside the specified bounds rectangle.
Parameters:
g - the graphics context
r - the bounding rectangle of the circle
value - if true, draws a dot in the circle
d - the control disabled colour to use

drawOptionBorder

protected static void drawOptionBorder(java.awt.Graphics g,
                                       java.awt.Rectangle r,
                                       java.awt.Color ds,
                                       java.awt.Color h,
                                       java.awt.Color c)
Draws a border for options.
Parameters:
g - the graphics context
r - the bounding rectangle of the border
ds - the control dark shadow colour to use
h - the control highlight colour to use
c - the control colour to use

drawActiveOptionBorder

protected static void drawActiveOptionBorder(java.awt.Graphics g,
                                             java.awt.Rectangle r,
                                             java.awt.Color ds,
                                             java.awt.Color h,
                                             java.awt.Color c,
                                             java.awt.Color cs,
                                             java.awt.Color pc,
                                             java.awt.Color pcds)
Draws a border for active options.
Parameters:
g - the graphics context
r - the bounding rectangle of the border
ds - the control dark shadow colour to use
h - the control highlight colour to use
c - the control colour to use
pc - the primary control colour to use
pcds - the primary control dark shadow colour to use

drawExpander

protected static void drawExpander(java.awt.Graphics g,
                                   java.awt.Rectangle r,
                                   boolean active,
                                   boolean collapsed,
                                   java.awt.Color pc,
                                   java.awt.Color pch,
                                   java.awt.Color pcs,
                                   java.awt.Color pcds,
                                   java.awt.Color f)
Draws an expansion symbol.
Parameters:
g - the graphics context
r - the bounding rectangle of the symbol
active - whether the symbol is active (pressed)
collapsed - whether the symbol is collapsed
pc - the primary control colour to use
pch - the primary control highlight colour to use
pcs - the primary control shadow colour to use
pcds - the primary control dark shadow colour to use
f - the foreground colour to use

drawLabel

protected static void drawLabel(java.awt.Graphics g,
                                java.awt.Rectangle r,
                                java.awt.FontMetrics fm,
                                java.lang.String label,
                                int align,
                                java.awt.Color f)
Draws a multiline label in the specified bounds rectangle.
Parameters:
g - the graphics context
r - the bounding rectangle of the label
fm - the font metrics to apply to the string
label - the label string
align - the alignment of the label within the bounds
f - the colour of the text

drawImage

protected static void drawImage(java.awt.Graphics g,
                                java.awt.Rectangle r,
                                java.awt.Image image,
                                java.awt.image.ImageObserver observer,
                                int align)
Draws an image into the specified bounds rectangle, rescaling it if necessary.
Parameters:
g - the graphics context
r - the bounding rectangle of the image
image - the image to draw
align - how to align the image within the bounds

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
Adds a property change listener to receive notification of changes to this component.
Overrides:
addPropertyChangeListener in class java.awt.Component
Parameters:
l - the listener

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
Removes a property change listener so it no longer receives notification of changes to this component.
Overrides:
removePropertyChangeListener in class java.awt.Component
Parameters:
l - the listener

processEvent

protected void processEvent(java.awt.AWTEvent event)
Overrides:
processEvent in class java.awt.Container

processMouseEvent

protected void processMouseEvent(java.awt.event.MouseEvent event)
Overrides:
processMouseEvent in class java.awt.Component

processMouseMotionEvent

protected void processMouseMotionEvent(java.awt.event.MouseEvent event)
Overrides:
processMouseMotionEvent in class java.awt.Component