|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.text.html.Map.RectangleRegionContainment
Used to test for containment in a rectangular region.
Field Summary | |
(package private) int |
lastHeight
Last value of height passed in. |
(package private) int |
lastWidth
Last value of width passed in. |
(package private) float[] |
percents
Will be non-null if one of the values is a percent, and any value that is non null indicates it is a percent (order is x, y, width, height). |
(package private) int |
x0
Top left. |
(package private) int |
x1
Bottom right. |
(package private) int |
y0
|
(package private) int |
y1
|
Constructor Summary | |
Map.RectangleRegionContainment(AttributeSet as)
|
Method Summary | |
boolean |
contains(int x,
int y)
|
boolean |
contains(int x,
int y,
int width,
int height)
Returns true if the location x , y
falls inside the region defined in the receiver.
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
float[] percents
int lastWidth
int lastHeight
int x0
int y0
int x1
int y1
Constructor Detail |
public Map.RectangleRegionContainment(AttributeSet as)
Method Detail |
public boolean contains(int x, int y, int width, int height)
Map.RegionContainment
x
, y
falls inside the region defined in the receiver.
width
, height
is the size of
the enclosing region.
contains
in interface Map.RegionContainment
public boolean contains(int x, int y)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |