src/share/classes/sun/awt/geom/Curve.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 1998, 2006, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
--- 1,7 ----
/*
! * Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
*** 36,50 ****
public static final int INCREASING = 1;
public static final int DECREASING = -1;
protected int direction;
! public static void insertMove(Vector curves, double x, double y) {
curves.add(new Order0(x, y));
}
! public static void insertLine(Vector curves,
double x0, double y0,
double x1, double y1)
{
if (y0 < y1) {
curves.add(new Order1(x0, y0,
--- 36,50 ----
public static final int INCREASING = 1;
public static final int DECREASING = -1;
protected int direction;
! public static void insertMove(Vector<Curve> curves, double x, double y) {
curves.add(new Order0(x, y));
}
! public static void insertLine(Vector<Curve> curves,
double x0, double y0,
double x1, double y1)
{
if (y0 < y1) {
curves.add(new Order1(x0, y0,
*** 57,67 ****
} else {
// Do not add horizontal lines
}
}
! public static void insertQuad(Vector curves,
double x0, double y0,
double coords[])
{
double y1 = coords[3];
if (y0 > y1) {
--- 57,67 ----
} else {
// Do not add horizontal lines
}
}
! public static void insertQuad(Vector<Curve> curves,
double x0, double y0,
double coords[])
{
double y1 = coords[3];
if (y0 > y1) {
*** 80,90 ****
coords[2], y1,
INCREASING);
}
}
! public static void insertCubic(Vector curves,
double x0, double y0,
double coords[])
{
double y1 = coords[5];
if (y0 > y1) {
--- 80,90 ----
coords[2], y1,
INCREASING);
}
}
! public static void insertCubic(Vector<Curve> curves,
double x0, double y0,
double coords[])
{
double y1 = coords[5];
if (y0 > y1) {