/*
* 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.
*/
super(new XCreateWindowParams(new Object[] {
}
super.instantPreInit(params);
}
/**
* @return array of XIconsSize structures, caller must free this array after use.
*/
try {
long status =
if (status == 0) {
return null;
}
}
return res;
} finally {
}
}
// ICE_WM has a bug - it only displays icons of the size
// 16x16, while reporting 32x32 in its size list
}
// No icon sizes so we simply fall back to 16x16
}
boolean found = false;
found = true;
/* Found an exact match */
dist = 0;
break;
}
if (diff == 0) {
} else {
}
if (diff == 0) {
} else {
}
}
}
}
}
if (!found) {
}
{
// Icon image too big
/* determine which way to scale */
}
} else {
}
{
// Icon image too small
} else {
// Icon image fits within right size
}
}
try {
} finally {
}
}
}
/**
* @return preffered icon size calculated from specific icon
*/
}
return size;
}
/**
* This function replaces iconPixmap handle with new image
* It does not replace window's hints, so it should be
* called only from setIconImage()
*/
{
return;
}
//Prepare image
//create new buffered image of desired size
//in current window's color model
GraphicsConfiguration defaultGC = parent.getGraphicsConfiguration().getDevice().getDefaultConfiguration();
try {
//We need to draw image on SystemColors.window
//for using as iconWindow's background
if (g instanceof Graphics2D) {
}
} finally {
g.dispose();
}
}
//create pixmap
try {
if (iconPixmap != 0) {
iconPixmap = 0;
}
return; //The iconPixmap is 0 now, we have done everything
}
);
if (iconPixmap == 0) {
return; //Can't do nothing
}
//Transform image data
long bytes = 0;
if (srcBuf instanceof DataBufferByte) {
}
} else if (srcBuf instanceof DataBufferInt) {
} else if (srcBuf instanceof DataBufferUShort) {
} else {
}
return;
}
(int)XConstants.ZPixmap,
0,
32,
bpsl);
if (dst == 0) {
iconPixmap = 0;
return;
} else {
}
if (gc == 0) {
iconPixmap = 0;
return;
} else {
}
try {
} finally {
}
} finally {
}
}
/**
* This function replaces iconPixmap handle with new image
* It does not replace window's hints, so it should be
* called only from setIconImage()
*/
return;
}
//Prepare image
try {
} finally {
g.dispose();
}
}
//create mask
try {
if (iconMask != 0) {
iconMask = 0;
}
return; //The iconMask is 0 now, we have done everything
}
for (int i = 0; i < iconHeight; i++) {
int cv = 0;
for (int j = 0; j < iconWidth; j++) {
}
dbit++;
if (dbit == 8) {
cv = 0;
dbit = 0;
didx++;
}
sidx++;
}
}
} finally {
}
}
/**
* Sets icon image by selecting one of the images from the list.
* The selected image is the one having the best matching size.
*/
// "=" below allows to select the best matching icon
}
}
}
}
}
//if image is null, reset to default image
} else {
//get image size
int width;
int height;
if (img instanceof ToolkitImage) {
}
else {
}
} else {
iconWidth = 0;
iconHeight = 0;
}
}
//create icon window and set XWMHints
try {
if (window == 0) {
if (getWindow() == 0) {
} else {
}
}
if (getWindow() != 0) {
}
// Provide both pixmap and window, WM or Taskbar will use the one they find more appropriate
if (getWindow() != 0) {
}
} finally {
}
}
{
}
}