Methods' Details |
containsPoint
boolean |
containsPoint( |
[in] ::com::sun::star::awt::Point |
aPoint ); |
- Description
- Tests whether the specified point lies within this object's bounds.
The test point's coordinates are defined relative to the
coordinate system of the object. That means that when the object is
an opaque rectangle then both the points (0,0) and (with-1,height-1)
would yield a true value.
- Parameter point
- Coordinates of the point to test. The origin of the coordinate
system is the upper left corner of the object's bounding box as
returned by the getBounds. The scale of the
coordinate system is identical to that of the screen coordiante
system.
- Returns
- Returns true if the point lies within or on the object's bounding
box and false otherwise.
|
|
getAccessibleAtPoint
- Description
- Returns the Accessible child that is rendered under the given point.
The test point's coordinates are defined relative to the
coordinate system of the object. That means that when the object is
an opaque rectangle then both the points (0,0) and (with-1,height-1)
would yield a true value.
- Parameter aPoint
- Coordinates of the test point for which to find the Accessible
child. The origin of the coordinate system is the upper left
corner of the object's bounding box as returned by the
getBounds. The scale of the coordinate
system is identical to that of the screen coordiante system.
- Returns
- If there is one child which is rendered so that its bounding box
contains the test point then a reference to that object is
returned. If there is more than one child which satisfies that
condition then a reference to that one is returned that is
painted on top of the others. If no there is no child which is
rendered at the test point an empty reference is returned.
|
|
getBounds
- Description
- Returns the bounding box of this object.
The returned bounding box has the form of a rectangle. Its
coordinates are relative to the object's parent coordinate system.
Note that the two methods getLocation and
getSize return the same information. With method
getLocationOnScreen you can get the bound box
position in screen coordinates.
- Returns
- The coordinates of the returned rectangle are relative to this
object's parent or relative to the screen on which this object
is rendered if it has no parent. If the object is not on any
screen the returnred rectangle is empty and located at position
(0,0).
|
|
getLocation
::com::sun::star::awt::Point |
getLocation(); |
- Description
- Returns the location of the upper left corner of the object's
bounding box relative to the parent.
The coordinates of the bounding box are given relative to the
parent's coordinate system.
- Returns
- The coordinates of the returned position are relative to this
object's parent or relative to the screen on which this object
is rendered if it has no parent. If the object is not on any
screen the returnred position is (0,0).
|
|
getLocationOnScreen
::com::sun::star::awt::Point |
getLocationOnScreen(); |
- Description
- Returns the location of the upper left corner of the object's
bounding box in screen coordinates.
This method returns the same point as does the method
getLocation. The difference is that the
coordinates are absolute screen coordinates of the screen to which
the object is rendered instead of being relative to the object's
parent.
- Returns
- The coordinates of the returned position are relative to the
screen on which this object is rendered. If the object is not
on any screen the returnred position is (0,0).
|
|
getSize
::com::sun::star::awt::Size |
getSize(); |
- Description
- Returns the size of this object's bounding box.
- Returns
- The returned size is the size of this object or empty if it is
not rendered on any screen.
|
|
grabFocus
[oneway] void |
grabFocus(); |
- Description
- Grabs the focus to this object.
If this object can not accept the focus,
i.e. isFocusTraversable returns false for this
object then nothing happens. Otherwise the object will attempt to
take the focus. Nothing happens if that fails, otherwise the object
has the focus. This method is called requestFocus in
the Java Accessibility API 1.4.
|
|
getForeground
::com::sun::star::util::Color |
getForeground(); |
- Description
- Returns the foreground color of this object.
- Returns
- The returned color is the foreground color of this object or, if
that is not supported, the default foreground color.
|
|
getBackground
::com::sun::star::util::Color |
getBackground(); |
- Description
- Returns the background color of this object.
- Returns
- The returned color is the background color of this object or, if
that is not supported, the default background color.
|
|
Copyright © 2012, The Apache Software Foundation, Licensed under the Apache License, Version 2.0. Apache, the Apache feather logo, Apache OpenOffice and OpenOffice.org are trademarks of The Apache Software Foundation. Other names may be trademarks of their respective owners.