/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/**
* A class to encapsulate a custom image-based cursor.
*
* @see Component#setCursor
* @author Thomas Ball
*/
throws IndexOutOfBoundsException {
}
class CCount implements Comparable {
int color;
int count;
}
}
}
tmp[i] = -1;
} else {
}
}
int fc = 0x000000;
int bc = 0xffffff;
int is = 0;
int numColors = 0;
break;
}
is ++;
}
} else {
}
}
int rdis = 0;
int gdis = 0;
int bdis = 0;
for (int j = 1; j < numColors; j++) {
}
// 4653170 Avoid divide / zero exception
if (rest > 0) {
}
// System.out.println(" rdis is "+ rdis);
for (int j = 1; j < numColors; j++) {
>= rdis ) {
break;
}
}
// On Solaris 2.5.x, the above code for cursor of any size runs fine
// but on Solaris 2.6, the width of a cursor has to be 8 divisible,
// otherwise, the cursor could be displayed as garbaged.
// To work around the 2.6 problem, the following code pads any cursor
// with a transparent area to make a new cursor of width 8 multiples.
// --- Bug 4148455
for (int i = 0; i < width; i++) {
for (int j = 0; j < height; j++) {
}
// show foreground color
}
}
}
}
}