javax.swing.text.html
Class Map.DefaultRegionContainment
java.lang.Object
javax.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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
si
static Map.DefaultRegionContainment si
- A global shared instance.
Map.DefaultRegionContainment
Map.DefaultRegionContainment()
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