< prev index next >

src/java.desktop/share/classes/javax/swing/text/html/Map.java

Print this page

        

*** 107,117 **** return null; } /** * Returns the AttributeSet that contains the passed in location, ! * <code>x</code>, <code>y</code>. <code>width</code>, <code>height</code> * gives the size of the region the map is defined over. If a matching * area is found, the AttribueSet for it is returned. */ public AttributeSet getArea(int x, int y, int width, int height) { int numAttributes = (areaAttributes != null) ? --- 107,117 ---- return null; } /** * Returns the AttributeSet that contains the passed in location, ! * {@code x}, {@code y}. {@code width}, {@code height} * gives the size of the region the map is defined over. If a matching * area is found, the AttribueSet for it is returned. */ public AttributeSet getArea(int x, int y, int width, int height) { int numAttributes = (areaAttributes != null) ?
*** 174,184 **** return null; } /** * Creates and returns an array of integers from the String ! * <code>stringCoords</code>. If one of the values represents a * % the returned value with be negative. If a parse error results * from trying to parse one of the numbers null is returned. */ protected static int[] extractCoords(Object stringCoords) { if (stringCoords == null || !(stringCoords instanceof String)) { --- 174,184 ---- return null; } /** * Creates and returns an array of integers from the String ! * {@code stringCoords}. If one of the values represents a * % the returned value with be negative. If a parse error results * from trying to parse one of the numbers null is returned. */ protected static int[] extractCoords(Object stringCoords) { if (stringCoords == null || !(stringCoords instanceof String)) {
*** 232,244 **** * Defines the interface used for to check if a point is inside a * region. */ interface RegionContainment { /** ! * Returns true if the location <code>x</code>, <code>y</code> * falls inside the region defined in the receiver. ! * <code>width</code>, <code>height</code> is the size of * the enclosing region. */ public boolean contains(int x, int y, int width, int height); } --- 232,244 ---- * Defines the interface used for to check if a point is inside a * region. */ interface RegionContainment { /** ! * Returns true if the location {@code x}, {@code y} * falls inside the region defined in the receiver. ! * {@code width}, {@code height} is the size of * the enclosing region. */ public boolean contains(int x, int y, int width, int height); }
< prev index next >