javax.swing.text.html
Class Map.PolygonRegionContainment
java.lang.Object
java.awt.Polygon
javax.swing.text.html.Map.PolygonRegionContainment
- All Implemented Interfaces:
- Map.RegionContainment, Serializable, Shape
- Enclosing class:
- Map
- static class Map.PolygonRegionContainment
- extends Polygon
- implements Map.RegionContainment
Used to test for containment in a polygon region.
Nested classes inherited from class java.awt.Polygon |
|
Field Summary |
(package private) int |
lastHeight
Last value of height passed in. |
(package private) int |
lastWidth
Last value of width passed in. |
(package private) int[] |
percentIndexs
|
(package private) float[] |
percentValues
If any value is a percent there will be an entry here for the
percent value. |
Method Summary |
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.awt.Polygon |
addPoint, contains, contains, contains, contains, contains, contains, getBoundingBox, getBounds, getBounds2D, getPathIterator, getPathIterator, inside, intersects, intersects, invalidate, reset, translate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
percentValues
float[] percentValues
- If any value is a percent there will be an entry here for the
percent value. Use percentIndex to find out the index for it.
percentIndexs
int[] percentIndexs
lastWidth
int lastWidth
- Last value of width passed in.
lastHeight
int lastHeight
- Last value of height passed in.
Map.PolygonRegionContainment
public Map.PolygonRegionContainment(AttributeSet as)
contains
public boolean contains(int x,
int y,
int width,
int height)
- Description copied from interface:
Map.RegionContainment
- Returns true if the location
x
, y
falls inside the region defined in the receiver.
width
, height
is the size of
the enclosing region.
- Specified by:
contains
in interface Map.RegionContainment