javax.swing.text.html
Class Map.PolygonRegionContainment

java.lang.Object
  extended byjava.awt.Polygon
      extended byjavax.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 Class Summary
 
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.
 
Fields inherited from class java.awt.Polygon
bounds, npoints, xpoints, ypoints
 
Constructor Summary
Map.PolygonRegionContainment(AttributeSet as)
           
 
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
 

Field Detail

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.

Constructor Detail

Map.PolygonRegionContainment

public Map.PolygonRegionContainment(AttributeSet as)
Method Detail

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