javax.swing.text.html
Class Map.DefaultRegionContainment

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

static class Map.DefaultRegionContainment
extends Object
implements Map.RegionContainment

An implementation that will return true if the x, y location is inside a rectangle defined by origin 0, 0, and width equal to width passed in, and height equal to height passed in.


Field Summary
(package private) static Map.DefaultRegionContainment si
          A global shared instance.
 
Constructor Summary
(package private) Map.DefaultRegionContainment()
           
 
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.
static Map.DefaultRegionContainment sharedInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

si

static Map.DefaultRegionContainment si
A global shared instance.

Constructor Detail

Map.DefaultRegionContainment

Map.DefaultRegionContainment()
Method Detail

sharedInstance

public static Map.DefaultRegionContainment sharedInstance()

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