/*
* 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.
*/
public abstract class Crossings {
public static final boolean debug = false;
}
public final double getXLo() {
return xlo;
}
public final double getYLo() {
return ylo;
}
public final double getXHi() {
return xhi;
}
public final double getYHi() {
return yhi;
}
public void print() {
}
}
public final boolean isEmpty() {
return (limit == 0);
}
{
while (enum_.hasMoreElements()) {
if (c.accumulateCrossings(cross)) {
return null;
}
}
if (debug) {
}
return cross;
}
{
} else {
}
// coords array is big enough for holding:
// coordinates returned from currentSegment (6)
// OR
// two subdivided quadratic curves (2+4+4=10)
// AND
// 0-1 horizontal splitting parameters
// OR
// 2 parametric equation derivative coefficients
// OR
// three subdivided cubic curves (2+6+6+6=20)
// AND
// 0-2 horizontal splitting parameters
// OR
// 3 parametric equation derivative coefficients
double coords[] = new double[23];
double movx = 0;
double movy = 0;
double curx = 0;
double cury = 0;
switch (type) {
case PathIterator.SEG_MOVETO:
{
return null;
}
break;
case PathIterator.SEG_LINETO:
return null;
}
break;
case PathIterator.SEG_QUADTO:
return null;
}
break;
case PathIterator.SEG_CUBICTO:
return null;
}
break;
case PathIterator.SEG_CLOSE:
{
return null;
}
break;
}
}
return null;
}
}
if (debug) {
}
return cross;
}
{
} else {
}
}
int direction)
{
return false;
}
return false;
}
}
} else {
}
} else {
}
return false;
}
return true;
}
return false;
}
return false;
}
return false;
}
return false;
}
}
return false;
}
while (enum_.hasMoreElements()) {
if (c.accumulateCrossings(this)) {
return true;
}
}
return false;
}
{
return false;
}
{
return false;
}
{
return false;
}
{
} else {
}
return false;
}
while (enum_.hasMoreElements()) {
if (c.accumulateCrossings(this)) {
return true;
}
}
return false;
}
}
}
return;
}
int from = 0;
// Quickly jump over all pairs that are completely "above"
from += 2;
}
// Quickly handle insertion of the new range
continue;
}
// The ranges overlap - sort, collapse, insert, iterate
} else {
}
} else {
}
} else {
}
}
}
break;
}
}
}
}
}
}
}
private int crosscounts[];
}
int i = 0;
while (i < limit) {
continue;
}
return false;
}
return true;
}
}
}
limit -= 2;
if (rem > 0) {
rem/2);
}
}
int oldcounts[] = crosscounts;
}
if (rem > 0) {
rem/2);
}
limit += 2;
}
return;
}
int cur = 0;
// Quickly jump over all pairs that are completely "above"
cur += 2;
}
// Remove the range from the list and collapse it
// into the range being inserted. Note that the
// new combined range may overlap the following range
// so we must not simply combine the ranges in place
// unless we are at the last range.
return;
}
}
// Just insert the new range at the current location
return;
}
// Just prepend the new range to the current one
return;
}
// The ranges must overlap - (yend > yrlo && yrhi > ystart)
cur += 2;
cur += 2;
}
// assert(yrlo == ystart);
if (newdir == 0) {
} else {
}
}
}
}
}
}
}