java.lang.Object
|
+--java.awt.Component
A component is an object having a graphical representation that can be displayed on the screen and that can interact with the user. Examples of components are the buttons, checkboxes, and scrollbars of a typical graphical user interface.
The Component class is the abstract superclass of
the nonmenu-related Abstract Window Toolkit components. Class
Component can also be extended directly to create a
lightweight component. A lightweight component is a component that is
not associated with a native opaque window.
| Inner Class Summary | |
protected class |
Component.AccessibleAWTComponent
Component.AccessibleAWTComponent
|
| Field Summary | |
static float |
BOTTOM_ALIGNMENT
copy-> BOTTOM_ALIGNMENT
|
static float |
CENTER_ALIGNMENT
copy-> CENTER_ALIGNMENT
|
static float |
LEFT_ALIGNMENT
copy-> LEFT_ALIGNMENT
|
static float |
RIGHT_ALIGNMENT
copy-> RIGHT_ALIGNMENT
|
static float |
TOP_ALIGNMENT
copy-> TOP_ALIGNMENT
|
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
protected |
Component
copy-> new Component()copy-> <Component var> = new Component();
|
| Method Summary | |
boolean |
action(Event evt,
Object what)
copy-> .action(, )copy-> <boolean var>=<Component>.action(<Event evt>, <Object what>);
|
void |
add(PopupMenu popup)
copy-> .add( )copy-> <Component>.add(<PopupMenu popup>);
|
void |
addComponentListener(ComponentListener l)
copy-> .addComponentListener( )copy-> <Component>.addComponentListener(<ComponentListener l>);
|
void |
addFocusListener(FocusListener l)
copy-> .addFocusListener( )copy-> <Component>.addFocusListener(<FocusListener l>);
|
void |
addHierarchyBoundsListener(HierarchyBoundsListener l)
copy-> .addHierarchyBoundsListener( )copy-> <Component>.addHierarchyBoundsListener(<HierarchyBoundsListener l>);
|
void |
addHierarchyListener(HierarchyListener l)
copy-> .addHierarchyListener( )copy-> <Component>.addHierarchyListener(<HierarchyListener l>);
|
void |
addInputMethodListener(InputMethodListener l)
copy-> .addInputMethodListener( )copy-> <Component>.addInputMethodListener(<InputMethodListener l>);
|
void |
addKeyListener(KeyListener l)
copy-> .addKeyListener( )copy-> <Component>.addKeyListener(<KeyListener l>);
|
void |
addMouseListener(MouseListener l)
copy-> .addMouseListener( )copy-> <Component>.addMouseListener(<MouseListener l>);
|
void |
addMouseMotionListener(MouseMotionListener l)
copy-> .addMouseMotionListener( )copy-> <Component>.addMouseMotionListener(<MouseMotionListener l>);
|
void |
addNotify()
copy-> .addNotify()copy-> <Component>.addNotify();
|
void |
addPropertyChangeListener(PropertyChangeListener listener)
copy-> .addPropertyChangeListener( )copy-> <Component>.addPropertyChangeListener(<PropertyChangeListener listener>);
|
void |
addPropertyChangeListener(String propertyName,
PropertyChangeListener listener)
copy-> .addPropertyChangeListener(, )copy-> <Component>.addPropertyChangeListener(<String propertyName>, <PropertyChangeListener listener>);
|
Rectangle |
bounds()
copy-> .bounds()copy-> <Rectangle var>=<Component>.bounds();
|
int |
checkImage(Image image,
ImageObserver observer)
copy-> .checkImage(, )copy-> <int var>=<Component>.checkImage(<Image image>, <ImageObserver observer>);
|
int |
checkImage(Image image,
int width,
int height,
ImageObserver observer)
copy-> .checkImage(, , , )copy-> <int var>=<Component>.checkImage(<Image image>, <int width>, <int height>, <ImageObserver observer>);
|
protected AWTEvent |
coalesceEvents(AWTEvent existingEvent,
AWTEvent newEvent)
copy-> .coalesceEvents(, )copy-> <AWTEvent var>=<Component>.coalesceEvents(<AWTEvent existingEvent>, <AWTEvent newEvent>);
|
boolean |
contains(int x,
int y)
copy-> .contains(, )copy-> <boolean var>=<Component>.contains(<int x>, <int y>);
|
boolean |
contains(Point p)
copy-> .contains( )copy-> <boolean var>=<Component>.contains(<Point p>);
|
Image |
createImage(ImageProducer producer)
copy-> .createImage( )copy-> <Image var>=<Component>.createImage(<ImageProducer producer>);
|
Image |
createImage(int width,
int height)
copy-> .createImage(, )copy-> <Image var>=<Component>.createImage(<int width>, <int height>);
|
void |
deliverEvent(Event e)
copy-> .deliverEvent( )copy-> <Component>.deliverEvent(<Event e>);
|
void |
disable()
copy-> .disable()copy-> <Component>.disable();
|
protected void |
disableEvents(long eventsToDisable)
copy-> .disableEvents( )copy-> <Component>.disableEvents(<long eventsToDisable>);
|
void |
dispatchEvent(AWTEvent e)
copy-> .dispatchEvent( )copy-> <Component>.dispatchEvent(<AWTEvent e>);
|
void |
doLayout()
copy-> .doLayout()copy-> <Component>.doLayout();
|
void |
enable()
copy-> .enable()copy-> <Component>.enable();
|
void |
enable(boolean b)
copy-> .enable( )copy-> <Component>.enable(<boolean b>);
|
protected void |
enableEvents(long eventsToEnable)
copy-> .enableEvents( )copy-> <Component>.enableEvents(<long eventsToEnable>);
|
void |
enableInputMethods(boolean enable)
copy-> .enableInputMethods( )copy-> <Component>.enableInputMethods(<boolean enable>);
|
protected void |
firePropertyChange(String propertyName,
Object oldValue,
Object newValue)
copy-> .firePropertyChange(, , )copy-> <Component>.firePropertyChange(<String propertyName>, <Object oldValue>, <Object newValue>);
|
AccessibleContext |
getAccessibleContext()
copy-> .getAccessibleContext()copy-> <AccessibleContext var>=<Component>.getAccessibleContext();
|
float |
getAlignmentX()
copy-> .getAlignmentX()copy-> <float var>=<Component>.getAlignmentX();
|
float |
getAlignmentY()
copy-> .getAlignmentY()copy-> <float var>=<Component>.getAlignmentY();
|
Color |
getBackground()
copy-> .getBackground()copy-> <Color var>=<Component>.getBackground();
|
Rectangle |
getBounds()
copy-> .getBounds()copy-> <Rectangle var>=<Component>.getBounds();
|
Rectangle |
getBounds(Rectangle rv)
copy-> .getBounds( )copy-> <Rectangle var>=<Component>.getBounds(<Rectangle rv>);
|
ColorModel |
getColorModel()
copy-> .getColorModel()copy-> <ColorModel var>=<Component>.getColorModel();
|
Component |
getComponentAt(int x,
int y)
copy-> .getComponentAt(, )copy-> <Component var>=<Component>.getComponentAt(<int x>, <int y>);
|
Component |
getComponentAt(Point p)
copy-> .getComponentAt( )copy-> <Component var>=<Component>.getComponentAt(<Point p>);
|
ComponentOrientation |
getComponentOrientation()
copy-> .getComponentOrientation()copy-> <ComponentOrientation var>=<Component>.getComponentOrientation();
|
Cursor |
getCursor()
copy-> .getCursor()copy-> <Cursor var>=<Component>.getCursor();
|
DropTarget |
getDropTarget()
copy-> .getDropTarget()copy-> <DropTarget var>=<Component>.getDropTarget();
|
Font |
getFont()
copy-> .getFont()copy-> <Font var>=<Component>.getFont();
|
FontMetrics |
getFontMetrics(Font font)
copy-> .getFontMetrics( )copy-> <FontMetrics var>=<Component>.getFontMetrics(<Font font>);
|
Color |
getForeground()
copy-> .getForeground()copy-> <Color var>=<Component>.getForeground();
|
Graphics |
getGraphics()
copy-> .getGraphics()copy-> <Graphics var>=<Component>.getGraphics();
|
GraphicsConfiguration |
getGraphicsConfiguration()
copy-> .getGraphicsConfiguration()copy-> <GraphicsConfiguration var>=<Component>.getGraphicsConfiguration();
|
int |
getHeight()
copy-> .getHeight()copy-> <int var>=<Component>.getHeight();
|
InputContext |
getInputContext()
copy-> .getInputContext()copy-> <InputContext var>=<Component>.getInputContext();
|
InputMethodRequests |
getInputMethodRequests()
copy-> .getInputMethodRequests()copy-> <InputMethodRequests var>=<Component>.getInputMethodRequests();
|
EventListener[] |
getListeners(Class listenerType)
copy-> .getListeners( )copy-> <EventListener var>=<Component>.getListeners(<Class listenerType>);
|
Locale |
getLocale()
copy-> .getLocale()copy-> <Locale var>=<Component>.getLocale();
|
Point |
getLocation()
copy-> .getLocation()copy-> <Point var>=<Component>.getLocation();
|
Point |
getLocation(Point rv)
copy-> .getLocation( )copy-> <Point var>=<Component>.getLocation(<Point rv>);
|
Point |
getLocationOnScreen()
copy-> .getLocationOnScreen()copy-> <Point var>=<Component>.getLocationOnScreen();
|
Dimension |
getMaximumSize()
copy-> .getMaximumSize()copy-> <Dimension var>=<Component>.getMaximumSize();
|
Dimension |
getMinimumSize()
copy-> .getMinimumSize()copy-> <Dimension var>=<Component>.getMinimumSize();
|
String |
getName()
copy-> .getName()copy-> <String var>=<Component>.getName();
|
Container |
getParent()
copy-> .getParent()copy-> <Container var>=<Component>.getParent();
|
java.awt.peer.ComponentPeer |
getPeer()
copy-> .getPeer()copy-> <ComponentPeer var>=<Component>.getPeer();
|
Dimension |
getPreferredSize()
copy-> .getPreferredSize()copy-> <Dimension var>=<Component>.getPreferredSize();
|
Dimension |
getSize()
copy-> .getSize()copy-> <Dimension var>=<Component>.getSize();
|
Dimension |
getSize(Dimension rv)
copy-> .getSize( )copy-> <Dimension var>=<Component>.getSize(<Dimension rv>);
|
Toolkit |
getToolkit()
copy-> .getToolkit()copy-> <Toolkit var>=<Component>.getToolkit();
|
Object |
getTreeLock()
copy-> .getTreeLock()copy-> <Object var>=<Component>.getTreeLock();
|
int |
getWidth()
copy-> .getWidth()copy-> <int var>=<Component>.getWidth();
|
int |
getX()
copy-> .getX()copy-> <int var>=<Component>.getX();
|
int |
getY()
copy-> .getY()copy-> <int var>=<Component>.getY();
|
boolean |
gotFocus(Event evt,
|