javax.swing.text.html
Class Map.CircleRegionContainment

java.lang.Object
  extended byjavax.swing.text.html.Map.CircleRegionContainment
All Implemented Interfaces:
Map.RegionContainment
Enclosing class:
Map

static class Map.CircleRegionContainment
extends Object
implements Map.RegionContainment

Used to test for containment in a circular 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[] percentValues
          Non-null indicates one of the values represents a percent.
(package private)  int radiusSquared
          Radius of the circle.
(package private)  int x
          X origin of the circle.
(package private)  int y
          Y origin of the circle.
 
Constructor Summary
Map.CircleRegionContainment(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.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

x

int x
X origin of the circle.


y

int y
Y origin of the circle.


radiusSquared

int radiusSquared
Radius of the circle.


percentValues

float[] percentValues
Non-null indicates one of the values represents a percent.


lastWidth

int lastWidth
Last value of width passed in.


lastHeight

int lastHeight
Last value of height passed in.

Constructor Detail

Map.CircleRegionContainment

public Map.CircleRegionContainment(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