/*
* 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.
*/
private CustomMediaSizeName(int x) {
super(x);
}
}
customEnumTable.add(this);
choiceName = null;
}
choiceName = choice;
customEnumTable.add(this);
try {
} catch (IllegalArgumentException iae) {
}
}
/**
* Version ID for serialized form.
*/
/**
* Returns the command string for this media.
*/
return choiceName;
}
/**
* Returns matching standard MediaSizeName.
*/
return mediaName;
}
// moved from RasterPrinterJob
/**
* Returns closest matching MediaSizeName among given array of Media
*/
int units) {
throw new IllegalArgumentException("args must be +ve values");
}
throw new IllegalArgumentException("args must have valid array of media");
}
int size =0;
if (media[i] instanceof MediaSizeName) {
}
}
if (size == 0) {
return null;
}
int match = 0;
double ls = x * x + y * y;
double tmp_ls;
float []dim;
float diffx = x;
float diffy = y;
for (int i=0; i < size ; i++) {
continue;
}
match = i;
break;
} else {
match = i;
}
}
}
}
/**
* Returns the string table for super class MediaSizeName.
*/
return (Media[])super.getEnumValueTable();
}
/**
* Returns the string table for class CustomMediaSizeName.
*/
}
/**
* Returns the enumeration value table for class CustomMediaSizeName.
*/
}
}