AccessibleComponent (Java Platform SE 8 ) (original) (raw)

Modifier and Type

Method

Description

void

[addFocusListener](../../javax/accessibility/AccessibleComponent.html#addFocusListener-java.awt.event.FocusListener-)([FocusListener](../../java/awt/event/FocusListener.html "interface in java.awt.event") l)

Adds the specified focus listener to receive focus events from this component.

boolean

[contains](../../javax/accessibility/AccessibleComponent.html#contains-java.awt.Point-)([Point](../../java/awt/Point.html "class in java.awt") p)

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](../../javax/accessibility/Accessible.html "interface in javax.accessibility")

[getAccessibleAt](../../javax/accessibility/AccessibleComponent.html#getAccessibleAt-java.awt.Point-)([Point](../../java/awt/Point.html "class in java.awt") p)

Returns the Accessible child, if one exists, contained at the local coordinate Point.

[Color](../../java/awt/Color.html "class in java.awt")

[getBackground](../../javax/accessibility/AccessibleComponent.html#getBackground--)()

Gets the background color of this object.

[Rectangle](../../java/awt/Rectangle.html "class in java.awt")

[getBounds](../../javax/accessibility/AccessibleComponent.html#getBounds--)()

Gets the bounds of this object in the form of a Rectangle object.

[Cursor](../../java/awt/Cursor.html "class in java.awt")

[getCursor](../../javax/accessibility/AccessibleComponent.html#getCursor--)()

Gets the Cursor of this object.

[Font](../../java/awt/Font.html "class in java.awt")

[getFont](../../javax/accessibility/AccessibleComponent.html#getFont--)()

Gets the Font of this object.

[FontMetrics](../../java/awt/FontMetrics.html "class in java.awt")

[getFontMetrics](../../javax/accessibility/AccessibleComponent.html#getFontMetrics-java.awt.Font-)([Font](../../java/awt/Font.html "class in java.awt") f)

Gets the FontMetrics of this object.

[Color](../../java/awt/Color.html "class in java.awt")

[getForeground](../../javax/accessibility/AccessibleComponent.html#getForeground--)()

Gets the foreground color of this object.

[Point](../../java/awt/Point.html "class in java.awt")

[getLocation](../../javax/accessibility/AccessibleComponent.html#getLocation--)()

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](../../java/awt/Point.html "class in java.awt")

[getLocationOnScreen](../../javax/accessibility/AccessibleComponent.html#getLocationOnScreen--)()

Returns the location of the object on the screen.

[Dimension](../../java/awt/Dimension.html "class in java.awt")

[getSize](../../javax/accessibility/AccessibleComponent.html#getSize--)()

Returns the size of this object in the form of a Dimension object.

boolean

[isEnabled](../../javax/accessibility/AccessibleComponent.html#isEnabled--)()

Determines if the object is enabled.

boolean

[isFocusTraversable](../../javax/accessibility/AccessibleComponent.html#isFocusTraversable--)()

Returns whether this object can accept focus or not.

boolean

[isShowing](../../javax/accessibility/AccessibleComponent.html#isShowing--)()

Determines if the object is showing.

boolean

[isVisible](../../javax/accessibility/AccessibleComponent.html#isVisible--)()

Determines if the object is visible.

void

[removeFocusListener](../../javax/accessibility/AccessibleComponent.html#removeFocusListener-java.awt.event.FocusListener-)([FocusListener](../../java/awt/event/FocusListener.html "interface in java.awt.event") l)

Removes the specified focus listener so it no longer receives focus events from this component.

void

[requestFocus](../../javax/accessibility/AccessibleComponent.html#requestFocus--)()

Requests focus for this object.

void

[setBackground](../../javax/accessibility/AccessibleComponent.html#setBackground-java.awt.Color-)([Color](../../java/awt/Color.html "class in java.awt") c)

Sets the background color of this object.

void

[setBounds](../../javax/accessibility/AccessibleComponent.html#setBounds-java.awt.Rectangle-)([Rectangle](../../java/awt/Rectangle.html "class in java.awt") r)

Sets the bounds of this object in the form of a Rectangle object.

void

[setCursor](../../javax/accessibility/AccessibleComponent.html#setCursor-java.awt.Cursor-)([Cursor](../../java/awt/Cursor.html "class in java.awt") cursor)

Sets the Cursor of this object.

void

[setEnabled](../../javax/accessibility/AccessibleComponent.html#setEnabled-boolean-)(boolean b)

Sets the enabled state of the object.

void

[setFont](../../javax/accessibility/AccessibleComponent.html#setFont-java.awt.Font-)([Font](../../java/awt/Font.html "class in java.awt") f)

Sets the Font of this object.

void

[setForeground](../../javax/accessibility/AccessibleComponent.html#setForeground-java.awt.Color-)([Color](../../java/awt/Color.html "class in java.awt") c)

Sets the foreground color of this object.

void

[setLocation](../../javax/accessibility/AccessibleComponent.html#setLocation-java.awt.Point-)([Point](../../java/awt/Point.html "class in java.awt") p)

Sets the location of the object relative to the parent.

void

[setSize](../../javax/accessibility/AccessibleComponent.html#setSize-java.awt.Dimension-)([Dimension](../../java/awt/Dimension.html "class in java.awt") d)

Resizes this object so that it has width and height.

void

[setVisible](../../javax/accessibility/AccessibleComponent.html#setVisible-boolean-)(boolean b)

Sets the visible state of the object.