/*
* 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.
*/
/**
* @author Joshua Outwater
*/
int x, int y, int mnemonicIndex) {
// We don't need to paint empty strings
return;
}
// Metacity handles painting of text on internal frame title,
// ignore this.
return;
}
x += 1;
y += 1;
x -= 1;
y -= 1;
}
else {
}
}
}
/**
* Paints text at the specified location. This will not attempt to
* render the text as html nor will it offset by the insets of the
* component.
*
* @param ss SynthContext
* @param g Graphics used to render string in.
* @param text Text to render
* @param bounds Bounds of the text to be drawn.
* @param mnemonicIndex Index to draw string at.
*/
// We don't need to paint empty strings
return;
}
{
if (!(source instanceof AbstractButton) ||
// The "bounds" parameter encompasses only the actual text;
// when drawing the focus, we need to expand that bounding
// box by "focus-line-width" plus "focus-padding". Note that
// the layout process for these components will have already
// taken these values into account, so there should always
// be enough space allocated for drawing the focus indicator.
int focusSize =
"focus-line-width", 1);
int focusPad =
"focus-padding", 1);
int x = bounds.x - totalFocus;
int y = bounds.y - totalFocus;
synthState, "checkbutton",
x, y, w, h);
}
}
}
}
}