/*
* 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 Charlton Innovations, Inc.
*/
/**
* GeneralRenderer collection
* Basically, a collection of components which permit basic
* rendering to occur on rasters of any format
*/
public final class GeneralRenderer {
public static void register() {
GraphicsPrimitive[] primitives = {
};
}
{
if (nPoints <= 0) {
return;
}
while (--nPoints > 0) {
++off;
}
}
}
}
y1++;
}
}
{
boundPts = new int[8];
}
if (!adjustLine(boundPts,
{
return boundPts;
}
/* this could be made smaller, more elegant, more traditional. */
do {
y1--;
} else {
do {
y1++;
}
do {
x1--;
} else {
do {
x1++;
}
} else {
int steps;
int bumpmajor;
int bumpminor;
int errminor;
int errmajor;
int error;
boolean xmajor;
/* x is dominant */
xmajor = true;
} else {
/* y is dominant */
xmajor = false;
}
if (ysteps < 0) {
}
}
if (xsteps < 0) {
}
}
if (steps < 0) {
}
if (xmajor) {
do {
if (error >= 0) {
}
} while (--steps >= 0);
} else {
do {
if (error >= 0) {
}
} while (--steps >= 0);
}
}
return boundPts;
}
int x, int y, int w, int h)
{
if (w < 0 || h < 0) {
return;
}
if (r.isEmpty()) {
return;
}
if (w < 2 || h < 2) {
return;
}
if (cy1 == y) {
}
if (cx1 == x) {
}
}
}
}
/*
* REMIND: For now this will field both AA and non-AA requests and
* use a simple threshold to choose pixels if the supplied grey
* bits are antialiased. We should really find a way to disable
* AA text at a higher level or to have the GlyphList be able to
* reset the glyphs to non-AA after construction.
*/
{
for (int i = 0; i < num; i++) {
gl.setGlyphIndex(i);
int w = metrics[2];
int off = 0;
}
}
pw.writePixel(x, y);
}
}
off += w;
}
}
}
}
int code;
if (y < ymin) {
code = OUTCODE_TOP;
} else if (y > ymax) {
} else {
code = 0;
}
if (x < xmin) {
code |= OUTCODE_LEFT;
} else if (x > xmax) {
code |= OUTCODE_RIGHT;
}
return code;
}
{
return false;
}
return false;
}
int t = y1;
y2 = t;
}
}
}
return false;
}
return false;
}
int t = x1;
x2 = t;
}
}
}
return false;
}
} else {
/* REMIND: This could overflow... */
return false;
}
if (outcode1 != 0) {
} else {
}
if (ysteps < 0) {
}
if (xmajor) {
}
if (dx < 0) {
}
} else if (0 !=
} else {
}
if (xsteps < 0) {
}
if (!xmajor) {
}
if (dy < 0) {
}
}
} else {
} else {
}
if (ysteps < 0) {
}
if (xmajor) {
} else {
xsteps -= 1;
}
if (dx > 0) {
}
} else if (0 !=
} else {
}
if (xsteps < 0) {
}
if (xmajor) {
ysteps -= 1;
} else {
}
if (dy > 0) {
}
}
}
}
}
return true;
}
{
return new SolidPixelWriter(srcPixel);
}
{
switch (dstCM.getTransferType()) {
case DataBuffer.TYPE_BYTE:
case DataBuffer.TYPE_SHORT:
case DataBuffer.TYPE_USHORT:
case DataBuffer.TYPE_INT:
case DataBuffer.TYPE_FLOAT:
case DataBuffer.TYPE_DOUBLE:
default:
throw new InternalError("Unsupported XOR pixel type");
}
}
}
SetFillRectANY() {
super(SurfaceType.AnyColor,
}
int x, int y, int w, int h)
{
}
}
}
}
}
}
}
SetFillPathANY() {
}
{
}
}
SetFillSpansANY() {
super(SurfaceType.AnyColor,
}
{
int span[] = new int[4];
}
}
}
SetDrawLineANY() {
super(SurfaceType.AnyColor,
}
{
sg2d.getCompClip(),
} else {
sg2d.getCompClip(),
}
}
}
super(SurfaceType.AnyColor,
}
boolean close)
{
int off = 0;
for (int i = 0; i < numPolys; i++) {
}
}
}
SetDrawPathANY() {
super(SurfaceType.AnyColor,
}
{
);
}
}
SetDrawRectANY() {
super(SurfaceType.AnyColor,
}
int x, int y, int w, int h)
{
}
}
XorFillRectANY() {
super(SurfaceType.AnyColor,
}
int x, int y, int w, int h)
{
}
}
XorFillPathANY() {
}
{
}
}
XorFillSpansANY() {
super(SurfaceType.AnyColor,
}
{
int span[] = new int[4];
}
}
}
XorDrawLineANY() {
super(SurfaceType.AnyColor,
}
{
sg2d.getCompClip(),
} else {
sg2d.getCompClip(),
}
}
}
super(SurfaceType.AnyColor,
}
boolean close)
{
int off = 0;
for (int i = 0; i < numPolys; i++) {
}
}
}
XorDrawPathANY() {
super(SurfaceType.AnyColor,
}
{
);
}
}
XorDrawRectANY() {
super(SurfaceType.AnyColor,
}
int x, int y, int w, int h)
{
}
}
super(SurfaceType.AnyColor,
}
{
}
}
super(SurfaceType.AnyColor,
}
{
}
}
abstract class PixelWriter {
}
public abstract void writePixel(int x, int y);
}
}
public void writePixel(int x, int y) {
}
}
public void writePixel(int x, int y) {
}
byte[] xorData;
}
}
}
}
short[] xorData;
}
}
}
}
int[] xorData;
}
}
}
}
int[] xorData;
}
}
}
}
}
long[] xorData;
}
}
}
}
}
}