| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | Map.
Used to test for containment in a circular region. |
| pack-priv static class | Map.
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. |
| pack-priv static class | Map.
Used to test for containment in a polygon region. |
| pack-priv static class | Map.
Used to test for containment in a rectangular region. |
| pack-priv static interface | Map.
Defines the interface used for to check if a point is inside a region. |
| Modifier and Type | Field and Description |
|---|---|
| private Vector | areaAttributes
An array of AttributeSets. |
| private Vector | areas
An array of RegionContainments, will slowly grow to match the length of areaAttributes as needed. |
| private String | name
Name of the Map. |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| protected Map. | createRegionContainment(AttributeSet attributes)
Creates and returns an instance of RegionContainment that can be used to test if a particular point lies inside a region. |
| protected static int[] | extractCoords(Object stringCoords)
Creates and returns an array of integers from the String
|
| public AttributeSet | getArea(int x, int y, int width, int height)
Returns the AttributeSet that contains the passed in location,
|
| public AttributeSet[] | |
| public String | |
| public void |
| areaAttributes | back to summary |
|---|---|
| private Vector<AttributeSet> areaAttributes An array of AttributeSets. | |
| areas | back to summary |
|---|---|
| private Vector<Map. An array of RegionContainments, will slowly grow to match the length of areaAttributes as needed. | |
| name | back to summary |
|---|---|
| private String name Name of the Map. | |
| addArea | back to summary |
|---|---|
| public void addArea(AttributeSet as) Defines a region of the Map, based on the passed in AttributeSet. | |
| createRegionContainment | back to summary |
|---|---|
| protected Map. Creates and returns an instance of RegionContainment that can be used to test if a particular point lies inside a region. | |
| extractCoords | back to summary |
|---|---|
| protected static int[] extractCoords(Object stringCoords) Creates and returns an array of integers from the String
| |
| getArea | back to summary |
|---|---|
| public AttributeSet getArea(int x, int y, int width, int height) Returns the AttributeSet that contains the passed in location,
| |
| getAreas | back to summary |
|---|---|
| public AttributeSet[] getAreas() Returns the AttributeSets representing the different areas of the Map. | |
| getName | back to summary |
|---|---|
| public String getName() Returns the name of the Map. | |
| removeArea | back to summary |
|---|---|
| public void removeArea(AttributeSet as) Removes the previously created area. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | lastHeight
Last value of height passed in. |
| pack-priv int | lastWidth
Last value of width passed in. |
| pack-priv float[] | percentValues
Non-null indicates one of the values represents a percent. |
| pack-priv int | radiusSquared
Radius of the circle. |
| pack-priv int | x
X origin of the circle. |
| pack-priv int | y
Y origin of the circle. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | contains(int x, int y, int width, int height)
Implements javax. Returns true if the location |
| lastHeight | back to summary |
|---|---|
| pack-priv int lastHeight Last value of height passed in. | |
| lastWidth | back to summary |
|---|---|
| pack-priv int lastWidth Last value of width passed in. | |
| percentValues | back to summary |
|---|---|
| pack-priv float[] percentValues Non-null indicates one of the values represents a percent. | |
| radiusSquared | back to summary |
|---|---|
| pack-priv int radiusSquared Radius of the circle. | |
| x | back to summary |
|---|---|
| pack-priv int x X origin of the circle. | |
| y | back to summary |
|---|---|
| pack-priv int y Y origin of the circle. | |
| CircleRegionContainment | back to summary |
|---|---|
| public CircleRegionContainment(AttributeSet as) | |
| contains | back to summary |
|---|---|
| public boolean contains(int x, int y, int width, int height) Implements javax. Doc from javax. Returns true if the location | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static Map. | si
A global shared instance. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | contains(int x, int y, int width, int height)
Implements javax. Returns true if the location |
| public static Map. |
| si | back to summary |
|---|---|
| pack-priv static Map. A global shared instance. | |
| DefaultRegionContainment | back to summary |
|---|---|
| pack-priv DefaultRegionContainment() | |
| contains | back to summary |
|---|---|
| public boolean contains(int x, int y, int width, int height) Implements javax. Doc from javax. Returns true if the location | |
| sharedInstance | back to summary |
|---|---|
| public static Map. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | lastHeight
Last value of height passed in. |
| pack-priv int | lastWidth
Last value of width passed in. |
| pack-priv int[] | |
| pack-priv float[] | percentValues
If any value is a percent there will be an entry here for the percent value. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | contains(int x, int y, int width, int height)
Implements javax. Returns true if the location |
| lastHeight | back to summary |
|---|---|
| pack-priv int lastHeight Last value of height passed in. | |
| lastWidth | back to summary |
|---|---|
| pack-priv int lastWidth Last value of width passed in. | |
| percentIndexs | back to summary |
|---|---|
| pack-priv int[] percentIndexs | |
| percentValues | back to summary |
|---|---|
| pack-priv 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. | |
| PolygonRegionContainment | back to summary |
|---|---|
| public PolygonRegionContainment(AttributeSet as) | |
| contains | back to summary |
|---|---|
| public boolean contains(int x, int y, int width, int height) Implements javax. Doc from javax. Returns true if the location | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | lastHeight
Last value of height passed in. |
| pack-priv int | lastWidth
Last value of width passed in. |
| pack-priv float[] | percents
Will be non-null if one of the values is a percent, and any value that is non null indicates it is a percent (order is x, y, width, height). |
| pack-priv int | x0
Top left. |
| pack-priv int | x1
Bottom right. |
| pack-priv int | |
| pack-priv int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | contains(int x, int y, int width, int height)
Implements javax. Returns true if the location |
| public boolean |
| lastHeight | back to summary |
|---|---|
| pack-priv int lastHeight Last value of height passed in. | |
| lastWidth | back to summary |
|---|---|
| pack-priv int lastWidth Last value of width passed in. | |
| percents | back to summary |
|---|---|
| pack-priv float[] percents Will be non-null if one of the values is a percent, and any value that is non null indicates it is a percent (order is x, y, width, height). | |
| x0 | back to summary |
|---|---|
| pack-priv int x0 Top left. | |
| x1 | back to summary |
|---|---|
| pack-priv int x1 Bottom right. | |
| y0 | back to summary |
|---|---|
| pack-priv int y0 | |
| y1 | back to summary |
|---|---|
| pack-priv int y1 | |
| RectangleRegionContainment | back to summary |
|---|---|
| public RectangleRegionContainment(AttributeSet as) | |
| contains | back to summary |
|---|---|
| public boolean contains(int x, int y, int width, int height) Implements javax. Doc from javax. Returns true if the location | |
| contains | back to summary |
|---|---|
| public boolean contains(int x, int y) | |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | contains(int x, int y, int width, int height)
Returns true if the location |
| contains | back to summary |
|---|---|
| public boolean contains(int x, int y, int width, int height) Returns true if the location | |