|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Untamed:
Method Summary | |
void |
addFocusListener(FocusListener l)
Enabled: Adds the specified focus listener to receive focus events from this component. |
boolean |
contains(Point p)
Enabled: Checks whether the specified point is within this object's bounds, where the point's x and y coordinates are defined to be relative to the coordinate system of the object. |
Accessible |
getAccessibleAt(Point p)
Enabled: Returns the Accessible child, if one exists, contained at the local coordinate Point. |
Color |
getBackground()
Enabled: Gets the background color of this object. |
Rectangle |
getBounds()
Enabled: Gets the bounds of this object in the form of a Rectangle object. |
Cursor |
getCursor()
Enabled: Gets the Cursor of this object. |
Font |
getFont()
Enabled: Gets the Font of this object. |
FontMetrics |
getFontMetrics(Font f)
Enabled: Gets the FontMetrics of this object. |
Color |
getForeground()
Enabled: Gets the foreground color of this object. |
Point |
getLocation()
Enabled: Gets the location of the object relative to the parent in the form of a point specifying the object's top-left corner in the screen's coordinate space. |
Point |
getLocationOnScreen()
Enabled: Returns the location of the object on the screen. |
Dimension |
getSize()
Enabled: Returns the size of this object in the form of a Dimension object. |
boolean |
isEnabled()
Enabled: Determines if the object is enabled. |
boolean |
isFocusTraversable()
Enabled: Returns whether this object can accept focus or not. |
boolean |
isShowing()
Enabled: Determines if the object is showing. |
boolean |
isVisible()
Enabled: Determines if the object is visible. |
void |
removeFocusListener(FocusListener l)
Enabled: Removes the specified focus listener so it no longer receives focus events from this component. |
void |
requestFocus()
Enabled: Requests focus for this object. |
void |
setBackground(Color c)
Enabled: Sets the background color of this object. |
void |
setBounds(Rectangle r)
Enabled: Sets the bounds of this object in the form of a Rectangle object. |
void |
setCursor(Cursor cursor)
Enabled: Sets the Cursor of this object. |
void |
setEnabled(boolean b)
Enabled: Sets the enabled state of the object. |
void |
setFont(Font f)
Enabled: Sets the Font of this object. |
void |
setForeground(Color c)
Enabled: Sets the foreground color of this object. |
void |
setLocation(Point p)
Enabled: Sets the location of the object relative to the parent. |
void |
setSize(Dimension d)
Enabled: Resizes this object so that it has width and height. |
void |
setVisible(boolean b)
Enabled: Sets the visible state of the object. |
Method Detail |
public Color getBackground()
setBackground(java.awt.Color)
public void setBackground(Color c)
c
- the new Color for the backgroundsetBackground(java.awt.Color)
public Color getForeground()
setForeground(java.awt.Color)
public void setForeground(Color c)
c
- the new Color for the foregroundgetForeground()
public Cursor getCursor()
setCursor(java.awt.Cursor)
public void setCursor(Cursor cursor)
getCursor()
public Font getFont()
setFont(java.awt.Font)
public void setFont(Font f)
f
- the new Font for the objectgetFont()
public FontMetrics getFontMetrics(Font f)
f
- the Font
getFont()
public boolean isEnabled()
setEnabled(boolean)
,
AccessibleContext.getAccessibleStateSet()
,
AccessibleState.ENABLED
,
AccessibleStateSet
public void setEnabled(boolean b)
b
- if true, enables this object; otherwise, disables itisEnabled()
public boolean isVisible()
Objects that are visible will also have the AccessibleState.VISIBLE state set in their AccessibleStateSets.
setVisible(boolean)
,
AccessibleContext.getAccessibleStateSet()
,
AccessibleState.VISIBLE
,
AccessibleStateSet
public void setVisible(boolean b)
b
- if true, shows this object; otherwise, hides itisVisible()
public boolean isShowing()
public boolean contains(Point p)
p
- the Point relative to the coordinate system of the object
getBounds()
public Point getLocationOnScreen()
getBounds()
,
getLocation()
public Point getLocation()
getBounds()
,
getLocationOnScreen()
public void setLocation(Point p)
p
- the new position for the top-left cornergetLocation()
public Rectangle getBounds()
contains(java.awt.Point)
public void setBounds(Rectangle r)
r
- rectangle indicating this component's boundsgetBounds()
public Dimension getSize()
setSize(java.awt.Dimension)
public void setSize(Dimension d)
d
- The dimension specifying the new size of the object.getSize()
public Accessible getAccessibleAt(Point p)
p
- The point relative to the coordinate system of this object.
public boolean isFocusTraversable()
AccessibleContext.getAccessibleStateSet()
,
AccessibleState.FOCUSABLE
,
AccessibleState.FOCUSED
,
AccessibleStateSet
public void requestFocus()
isFocusTraversable()
public void addFocusListener(FocusListener l)
l
- the focus listenerremoveFocusListener(java.awt.event.FocusListener)
public void removeFocusListener(FocusListener l)
l
- the focus listeneraddFocusListener(java.awt.event.FocusListener)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |