From: <ls...@us...> - 2009-04-12 07:49:50
|
Revision: 5250 http://jnode.svn.sourceforge.net/jnode/?rev=5250&view=rev Author: lsantha Date: 2009-04-12 07:49:48 +0000 (Sun, 12 Apr 2009) Log Message: ----------- Removing non-classlib classes. Removed Paths: ------------- classlib6/core/src/endorsed/ classlib6/core/src/mmtk-vm/ classlib6/core/src/vmmagic/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ls...@us...> - 2009-04-12 07:52:34
|
Revision: 5251 http://jnode.svn.sourceforge.net/jnode/?rev=5251&view=rev Author: lsantha Date: 2009-04-12 07:52:32 +0000 (Sun, 12 Apr 2009) Log Message: ----------- Removing non-classlib classes. Removed Paths: ------------- classlib6/core/src/classpath/ext/ classlib6/core/src/classpath/vm/ classlib6/core/src/openjdk/vm/ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ls...@us...> - 2009-07-22 08:26:33
|
Revision: 5615 http://jnode.svn.sourceforge.net/jnode/?rev=5615&view=rev Author: lsantha Date: 2009-07-22 08:26:30 +0000 (Wed, 22 Jul 2009) Log Message: ----------- JNode speciffic ProcessImpl. Added Paths: ----------- classlib6/core/src/classlib/java/ classlib6/core/src/classlib/java/lang/ classlib6/core/src/classlib/java/lang/ProcessImpl.java Removed Paths: ------------- classlib6/core/src/openjdk/svm/java/lang/ProcessImpl.java Added: classlib6/core/src/classlib/java/lang/ProcessImpl.java =================================================================== --- classlib6/core/src/classlib/java/lang/ProcessImpl.java (rev 0) +++ classlib6/core/src/classlib/java/lang/ProcessImpl.java 2009-07-22 08:26:30 UTC (rev 5615) @@ -0,0 +1,12 @@ +package java.lang; + +import java.io.IOException; + +/** + * + */ +class ProcessImpl { + private ProcessImpl() {} + native static Process start(String[] cmdarray, java.util.Map<String, String> environment, String dir, + boolean redirectErrorStream) throws IOException; +} Deleted: classlib6/core/src/openjdk/svm/java/lang/ProcessImpl.java =================================================================== --- classlib6/core/src/openjdk/svm/java/lang/ProcessImpl.java 2009-07-22 07:59:21 UTC (rev 5614) +++ classlib6/core/src/openjdk/svm/java/lang/ProcessImpl.java 2009-07-22 08:26:30 UTC (rev 5615) @@ -1,88 +0,0 @@ -/* - * Copyright 2003-2007 Sun Microsystems, Inc. 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. Sun designates this - * particular file as subject to the "Classpath" exception as provided - * by Sun 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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, - * CA 95054 USA or visit www.sun.com if you need additional information or - * have any questions. - */ - -package java.lang; - -import java.io.IOException; -import java.lang.Process; - -/** - * This class is for the exclusive use of ProcessBuilder.start() to - * create new processes. - * - * @author Martin Buchholz - * @since 1.5 - */ -final class ProcessImpl { - private ProcessImpl() {} // Not instantiable - - private static byte[] toCString(String s) { - if (s == null) - return null; - byte[] bytes = s.getBytes(); - byte[] result = new byte[bytes.length + 1]; - System.arraycopy(bytes, 0, - result, 0, - bytes.length); - result[result.length-1] = (byte)0; - return result; - } - - // Only for use by ProcessBuilder.start() - static Process start(String[] cmdarray, - java.util.Map<String,String> environment, - String dir, - boolean redirectErrorStream) - throws IOException - { - assert cmdarray != null && cmdarray.length > 0; - - // Convert arguments to a contiguous block; it's easier to do - // memory management in Java than in C. - byte[][] args = new byte[cmdarray.length-1][]; - int size = args.length; // For added NUL bytes - for (int i = 0; i < args.length; i++) { - args[i] = cmdarray[i+1].getBytes(); - size += args[i].length; - } - byte[] argBlock = new byte[size]; - int i = 0; - for (byte[] arg : args) { - System.arraycopy(arg, 0, argBlock, i, arg.length); - i += arg.length + 1; - // No need to write NUL bytes explicitly - } - - int[] envc = new int[1]; - byte[] envBlock = ProcessEnvironment.toEnvironmentBlock(environment, envc); - - return new UNIXProcess - (toCString(cmdarray[0]), - argBlock, args.length, - envBlock, envc[0], - toCString(dir), - redirectErrorStream); - } -} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ls...@us...> - 2011-06-21 15:36:33
|
Revision: 5820 http://jnode.svn.sourceforge.net/jnode/?rev=5820&view=rev Author: lsantha Date: 2011-06-21 15:36:21 +0000 (Tue, 21 Jun 2011) Log Message: ----------- Integrating OpenJDK 6 b22. Modified Paths: -------------- classlib6/core/src/openjdk/corba/sun/rmi/rmic/resources/rmic.properties classlib6/core/src/openjdk/corba/sun/rmi/rmic/resources/rmic_ja.properties classlib6/core/src/openjdk/corba/sun/rmi/rmic/resources/rmic_zh_CN.properties classlib6/core/src/openjdk/sun/sun/jvmstat/monitor/AbstractMonitor.java classlib6/core/src/openjdk/sun/sun/jvmstat/monitor/ByteArrayMonitor.java classlib6/core/src/openjdk/sun/sun/jvmstat/monitor/HostIdentifier.java classlib6/core/src/openjdk/sun/sun/jvmstat/monitor/IntegerMonitor.java classlib6/core/src/openjdk/sun/sun/jvmstat/monitor/LongMonitor.java classlib6/core/src/openjdk/sun/sun/jvmstat/monitor/Monitor.java classlib6/core/src/openjdk/sun/sun/jvmstat/monitor/MonitorException.java classlib6/core/src/openjdk/sun/sun/jvmstat/monitor/MonitoredHost.java classlib6/core/src/openjdk/sun/sun/jvmstat/monitor/MonitoredVm.java classlib6/core/src/openjdk/sun/sun/jvmstat/monitor/MonitoredVmUtil.java classlib6/core/src/openjdk/sun/sun/jvmstat/monitor/StringMonitor.java classlib6/core/src/openjdk/sun/sun/jvmstat/monitor/VmIdentifier.java classlib6/core/src/openjdk/sun/sun/jvmstat/monitor/event/HostEvent.java classlib6/core/src/openjdk/sun/sun/jvmstat/monitor/event/HostListener.java classlib6/core/src/openjdk/sun/sun/jvmstat/monitor/event/MonitorStatusChangeEvent.java classlib6/core/src/openjdk/sun/sun/jvmstat/monitor/event/VmEvent.java classlib6/core/src/openjdk/sun/sun/jvmstat/monitor/event/VmListener.java classlib6/core/src/openjdk/sun/sun/jvmstat/monitor/event/VmStatusChangeEvent.java classlib6/core/src/openjdk/sun/sun/jvmstat/monitor/event/package.html classlib6/core/src/openjdk/sun/sun/jvmstat/monitor/package.html classlib6/core/src/openjdk/sun/sun/jvmstat/monitor/remote/BufferedMonitoredVm.java classlib6/core/src/openjdk/sun/sun/jvmstat/monitor/remote/RemoteHost.java classlib6/core/src/openjdk/sun/sun/jvmstat/monitor/remote/RemoteVm.java classlib6/core/src/openjdk/sun/sun/jvmstat/monitor/remote/package.html classlib6/core/src/openjdk/sun/sun/tools/jconsole/AboutDialog.java classlib6/core/src/openjdk/sun/sun/tools/jconsole/BorderedComponent.java classlib6/core/src/openjdk/sun/sun/tools/jconsole/ClassTab.java classlib6/core/src/openjdk/sun/sun/tools/jconsole/ConnectDialog.java classlib6/core/src/openjdk/sun/sun/tools/jconsole/CreateMBeanDialog.java classlib6/core/src/openjdk/sun/sun/tools/jconsole/Formatter.java classlib6/core/src/openjdk/sun/sun/tools/jconsole/HTMLPane.java classlib6/core/src/openjdk/sun/sun/tools/jconsole/JConsole.java classlib6/core/src/openjdk/sun/sun/tools/jconsole/LabeledComponent.java classlib6/core/src/openjdk/sun/sun/tools/jconsole/MBeansTab.java classlib6/core/src/openjdk/sun/sun/tools/jconsole/MaximizableInternalFrame.java classlib6/core/src/openjdk/sun/sun/tools/jconsole/MemoryPoolProxy.java classlib6/core/src/openjdk/sun/sun/tools/jconsole/MemoryPoolStat.java classlib6/core/src/openjdk/sun/sun/tools/jconsole/MemoryTab.java classlib6/core/src/openjdk/sun/sun/tools/jconsole/OutputViewer.java classlib6/core/src/openjdk/sun/sun/tools/jconsole/OverviewPanel.java classlib6/core/src/openjdk/sun/sun/tools/jconsole/OverviewTab.java classlib6/core/src/openjdk/sun/sun/tools/jconsole/Plotter.java classlib6/core/src/openjdk/sun/sun/tools/jconsole/PlotterPanel.java classlib6/core/src/openjdk/sun/sun/tools/jconsole/ProxyClient.java classlib6/core/src/openjdk/sun/sun/tools/jconsole/Resources.java classlib6/core/src/openjdk/sun/sun/tools/jconsole/SummaryTab.java classlib6/core/src/openjdk/sun/sun/tools/jconsole/Tab.java classlib6/core/src/openjdk/sun/sun/tools/jconsole/ThreadTab.java classlib6/core/src/openjdk/sun/sun/tools/jconsole/TimeComboBox.java classlib6/core/src/openjdk/sun/sun/tools/jconsole/VMInternalFrame.java classlib6/core/src/openjdk/sun/sun/tools/jconsole/VMPanel.java classlib6/core/src/openjdk/sun/sun/tools/jconsole/VariableGridLayout.java classlib6/core/src/openjdk/sun/sun/tools/jconsole/Worker.java classlib6/core/src/openjdk/sun/sun/tools/jconsole/inspector/IconManager.java classlib6/core/src/openjdk/sun/sun/tools/jconsole/inspector/OperationEntry.java classlib6/core/src/openjdk/sun/sun/tools/jconsole/inspector/TableSorter.java classlib6/core/src/openjdk/sun/sun/tools/jconsole/inspector/ThreadDialog.java classlib6/core/src/openjdk/sun/sun/tools/jconsole/inspector/Utils.java classlib6/core/src/openjdk/sun/sun/tools/jconsole/inspector/XArrayDataViewer.java classlib6/core/src/openjdk/sun/sun/tools/jconsole/inspector/XDataViewer.java classlib6/core/src/openjdk/sun/sun/tools/jconsole/inspector/XMBean.java classlib6/core/src/openjdk/sun/sun/tools/jconsole/inspector/XMBeanAttributes.java classlib6/core/src/openjdk/sun/sun/tools/jconsole/inspector/XMBeanInfo.java classlib6/core/src/openjdk/sun/sun/tools/jconsole/inspector/XMBeanNotifications.java classlib6/core/src/openjdk/sun/sun/tools/jconsole/inspector/XMBeanOperations.java classlib6/core/src/openjdk/sun/sun/tools/jconsole/inspector/XNodeInfo.java classlib6/core/src/openjdk/sun/sun/tools/jconsole/inspector/XObject.java classlib6/core/src/openjdk/sun/sun/tools/jconsole/inspector/XOpenTypeViewer.java classlib6/core/src/openjdk/sun/sun/tools/jconsole/inspector/XOperations.java classlib6/core/src/openjdk/sun/sun/tools/jconsole/inspector/XPlotter.java classlib6/core/src/openjdk/sun/sun/tools/jconsole/inspector/XPlottingViewer.java classlib6/core/src/openjdk/sun/sun/tools/jconsole/inspector/XSheet.java classlib6/core/src/openjdk/sun/sun/tools/jconsole/inspector/XTable.java classlib6/core/src/openjdk/sun/sun/tools/jconsole/inspector/XTextField.java classlib6/core/src/openjdk/sun/sun/tools/jconsole/inspector/XTextFieldEditor.java classlib6/core/src/openjdk/sun/sun/tools/jconsole/inspector/XTree.java classlib6/core/src/openjdk/sun/sun/tools/jconsole/inspector/XTreeRenderer.java classlib6/core/src/openjdk/sun/sun/tools/jconsole/resources/JConsoleResources.java classlib6/core/src/openjdk/sun/sun/tools/jconsole/resources/JConsoleResources_ja.java classlib6/core/src/openjdk/sun/sun/tools/jconsole/resources/JConsoleResources_zh_CN.java classlib6/core/src/openjdk/svm/sun/nio/ch/PollArrayWrapper.java Added Paths: ----------- classlib6/core/src/icedtea/sun/nio/ch/ classlib6/core/src/icedtea/sun/nio/ch/AlreadyBoundException.java classlib6/core/src/openjdk/com/com/sun/java/browser/ classlib6/core/src/openjdk/com/com/sun/java/browser/dom/ classlib6/core/src/openjdk/com/com/sun/java/browser/dom/DOMAccessException.java classlib6/core/src/openjdk/com/com/sun/java/browser/dom/DOMAccessor.java classlib6/core/src/openjdk/com/com/sun/java/browser/dom/DOMAction.java classlib6/core/src/openjdk/com/com/sun/java/browser/dom/DOMService.java classlib6/core/src/openjdk/com/com/sun/java/browser/dom/DOMServiceProvider.java classlib6/core/src/openjdk/com/com/sun/java/browser/dom/DOMUnsupportedException.java classlib6/core/src/openjdk/com/com/sun/java/browser/net/ classlib6/core/src/openjdk/com/com/sun/java/browser/net/ProxyInfo.java classlib6/core/src/openjdk/com/com/sun/java/browser/net/ProxyService.java classlib6/core/src/openjdk/com/com/sun/java/browser/net/ProxyServiceProvider.java classlib6/core/src/openjdk/com/com/sun/net/ssl/SSLContext.java classlib6/core/src/openjdk/com/com/sun/net/ssl/internal/www/ classlib6/core/src/openjdk/com/com/sun/net/ssl/internal/www/protocol/ classlib6/core/src/openjdk/com/com/sun/net/ssl/internal/www/protocol/https/ classlib6/core/src/openjdk/com/com/sun/net/ssl/internal/www/protocol/https/DelegateHttpsURLConnection.java classlib6/core/src/openjdk/com/com/sun/net/ssl/internal/www/protocol/https/Handler.java classlib6/core/src/openjdk/com/com/sun/net/ssl/internal/www/protocol/https/HttpsURLConnectionOldImpl.java classlib6/core/src/openjdk/java/java/nio/charset/package.html classlib6/core/src/openjdk/java/java/nio/package.html classlib6/core/src/openjdk/java/java/security/package.html classlib6/core/src/openjdk/java/java/util/concurrent/atomic/package-info.java classlib6/core/src/openjdk/java/java/util/concurrent/locks/package-info.java classlib6/core/src/openjdk/java/java/util/concurrent/package-info.java classlib6/core/src/openjdk/javax/javax/smartcardio/ classlib6/core/src/openjdk/javax/javax/smartcardio/ATR.java classlib6/core/src/openjdk/javax/javax/smartcardio/Card.java classlib6/core/src/openjdk/javax/javax/smartcardio/CardChannel.java classlib6/core/src/openjdk/javax/javax/smartcardio/CardException.java classlib6/core/src/openjdk/javax/javax/smartcardio/CardNotPresentException.java classlib6/core/src/openjdk/javax/javax/smartcardio/CardPermission.java classlib6/core/src/openjdk/javax/javax/smartcardio/CardTerminal.java classlib6/core/src/openjdk/javax/javax/smartcardio/CardTerminals.java classlib6/core/src/openjdk/javax/javax/smartcardio/CommandAPDU.java classlib6/core/src/openjdk/javax/javax/smartcardio/ResponseAPDU.java classlib6/core/src/openjdk/javax/javax/smartcardio/TerminalFactory.java classlib6/core/src/openjdk/javax/javax/smartcardio/TerminalFactorySpi.java classlib6/core/src/openjdk/javax/javax/smartcardio/package.html classlib6/core/src/openjdk/jaxws/com/sun/istack/internal/Builder.java classlib6/core/src/openjdk/jaxws/com/sun/istack/internal/localization/ classlib6/core/src/openjdk/jaxws/com/sun/istack/internal/localization/Localizable.java classlib6/core/src/openjdk/jaxws/com/sun/istack/internal/localization/LocalizableMessage.java classlib6/core/src/openjdk/jaxws/com/sun/istack/internal/localization/LocalizableMessageFactory.java classlib6/core/src/openjdk/jaxws/com/sun/istack/internal/localization/Localizer.java classlib6/core/src/openjdk/sun/sun/jvmstat/perfdata/ classlib6/core/src/openjdk/sun/sun/jvmstat/perfdata/monitor/ classlib6/core/src/openjdk/sun/sun/jvmstat/perfdata/monitor/AbstractMonitoredVm.java classlib6/core/src/openjdk/sun/sun/jvmstat/perfdata/monitor/AbstractPerfDataBuffer.java classlib6/core/src/openjdk/sun/sun/jvmstat/perfdata/monitor/AbstractPerfDataBufferPrologue.java classlib6/core/src/openjdk/sun/sun/jvmstat/perfdata/monitor/AliasFileParser.java classlib6/core/src/openjdk/sun/sun/jvmstat/perfdata/monitor/CountedTimerTask.java classlib6/core/src/openjdk/sun/sun/jvmstat/perfdata/monitor/CountedTimerTaskUtils.java classlib6/core/src/openjdk/sun/sun/jvmstat/perfdata/monitor/MonitorDataException.java classlib6/core/src/openjdk/sun/sun/jvmstat/perfdata/monitor/MonitorStatus.java classlib6/core/src/openjdk/sun/sun/jvmstat/perfdata/monitor/MonitorStructureException.java classlib6/core/src/openjdk/sun/sun/jvmstat/perfdata/monitor/MonitorTypeException.java classlib6/core/src/openjdk/sun/sun/jvmstat/perfdata/monitor/MonitorVersionException.java classlib6/core/src/openjdk/sun/sun/jvmstat/perfdata/monitor/PerfByteArrayMonitor.java classlib6/core/src/openjdk/sun/sun/jvmstat/perfdata/monitor/PerfDataBufferImpl.java classlib6/core/src/openjdk/sun/sun/jvmstat/perfdata/monitor/PerfIntegerMonitor.java classlib6/core/src/openjdk/sun/sun/jvmstat/perfdata/monitor/PerfLongMonitor.java classlib6/core/src/openjdk/sun/sun/jvmstat/perfdata/monitor/PerfStringConstantMonitor.java classlib6/core/src/openjdk/sun/sun/jvmstat/perfdata/monitor/PerfStringMonitor.java classlib6/core/src/openjdk/sun/sun/jvmstat/perfdata/monitor/PerfStringVariableMonitor.java classlib6/core/src/openjdk/sun/sun/jvmstat/perfdata/monitor/SyntaxException.java classlib6/core/src/openjdk/sun/sun/jvmstat/perfdata/monitor/package.html classlib6/core/src/openjdk/sun/sun/jvmstat/perfdata/monitor/protocol/ classlib6/core/src/openjdk/sun/sun/jvmstat/perfdata/monitor/protocol/file/ classlib6/core/src/openjdk/sun/sun/jvmstat/perfdata/monitor/protocol/file/FileMonitoredVm.java classlib6/core/src/openjdk/sun/sun/jvmstat/perfdata/monitor/protocol/file/MonitoredHostProvider.java classlib6/core/src/openjdk/sun/sun/jvmstat/perfdata/monitor/protocol/file/PerfDataBuffer.java classlib6/core/src/openjdk/sun/sun/jvmstat/perfdata/monitor/protocol/file/package.html classlib6/core/src/openjdk/sun/sun/jvmstat/perfdata/monitor/protocol/local/ classlib6/core/src/openjdk/sun/sun/jvmstat/perfdata/monitor/protocol/local/LocalEventTimer.java classlib6/core/src/openjdk/sun/sun/jvmstat/perfdata/monitor/protocol/local/LocalMonitoredVm.java classlib6/core/src/openjdk/sun/sun/jvmstat/perfdata/monitor/protocol/local/LocalVmManager.java classlib6/core/src/openjdk/sun/sun/jvmstat/perfdata/monitor/protocol/local/MonitoredHostProvider.java classlib6/core/src/openjdk/sun/sun/jvmstat/perfdata/monitor/protocol/local/PerfDataBuffer.java classlib6/core/src/openjdk/sun/sun/jvmstat/perfdata/monitor/protocol/local/PerfDataFile.java classlib6/core/src/openjdk/sun/sun/jvmstat/perfdata/monitor/protocol/local/package.html classlib6/core/src/openjdk/sun/sun/jvmstat/perfdata/monitor/protocol/rmi/ classlib6/core/src/openjdk/sun/sun/jvmstat/perfdata/monitor/protocol/rmi/MonitoredHostProvider.java classlib6/core/src/openjdk/sun/sun/jvmstat/perfdata/monitor/protocol/rmi/PerfDataBuffer.java classlib6/core/src/openjdk/sun/sun/jvmstat/perfdata/monitor/protocol/rmi/RemoteMonitoredVm.java classlib6/core/src/openjdk/sun/sun/jvmstat/perfdata/monitor/protocol/rmi/RemoteVmManager.java classlib6/core/src/openjdk/sun/sun/jvmstat/perfdata/monitor/protocol/rmi/package.html classlib6/core/src/openjdk/sun/sun/jvmstat/perfdata/monitor/v1_0/ classlib6/core/src/openjdk/sun/sun/jvmstat/perfdata/monitor/v1_0/BasicType.java classlib6/core/src/openjdk/sun/sun/jvmstat/perfdata/monitor/v1_0/PerfDataBuffer.java classlib6/core/src/openjdk/sun/sun/jvmstat/perfdata/monitor/v1_0/PerfDataBufferPrologue.java classlib6/core/src/openjdk/sun/sun/jvmstat/perfdata/monitor/v2_0/ classlib6/core/src/openjdk/sun/sun/jvmstat/perfdata/monitor/v2_0/PerfDataBuffer.java classlib6/core/src/openjdk/sun/sun/jvmstat/perfdata/monitor/v2_0/PerfDataBufferPrologue.java classlib6/core/src/openjdk/sun/sun/jvmstat/perfdata/monitor/v2_0/TypeCode.java classlib6/core/src/openjdk/sun/sun/jvmstat/perfdata/resources/ classlib6/core/src/openjdk/sun/sun/jvmstat/perfdata/resources/aliasmap classlib6/core/src/openjdk/sun/sun/launcher/ classlib6/core/src/openjdk/sun/sun/launcher/LauncherHelp.java classlib6/core/src/openjdk/sun/sun/launcher/resources/ classlib6/core/src/openjdk/sun/sun/launcher/resources/launcher.properties classlib6/core/src/openjdk/sun/sun/nio/ch/AbstractPollSelectorImpl.java classlib6/core/src/openjdk/sun/sun/nio/ch/DatagramChannelImpl.java classlib6/core/src/openjdk/sun/sun/nio/ch/DatagramSocketAdaptor.java classlib6/core/src/openjdk/sun/sun/nio/ch/DevPollSelectorProvider.java classlib6/core/src/openjdk/sun/sun/nio/ch/FileChannelImpl.java classlib6/core/src/openjdk/sun/sun/nio/ch/FileLockImpl.java classlib6/core/src/openjdk/sun/sun/nio/ch/Net.java classlib6/core/src/openjdk/sun/sun/nio/ch/OptionAdaptor.java classlib6/core/src/openjdk/sun/sun/nio/ch/PollSelectorProvider.java classlib6/core/src/openjdk/sun/sun/nio/ch/SelectorProviderImpl.java classlib6/core/src/openjdk/sun/sun/nio/ch/ServerSocketAdaptor.java classlib6/core/src/openjdk/sun/sun/nio/ch/ServerSocketChannelImpl.java classlib6/core/src/openjdk/sun/sun/nio/ch/SocketAdaptor.java classlib6/core/src/openjdk/sun/sun/nio/ch/SocketChannelImpl.java classlib6/core/src/openjdk/sun/sun/print/AttributeUpdater.java classlib6/core/src/openjdk/sun/sun/print/BackgroundLookupListener.java classlib6/core/src/openjdk/sun/sun/print/BackgroundServiceLookup.java classlib6/core/src/openjdk/sun/sun/print/CustomMediaSizeName.java classlib6/core/src/openjdk/sun/sun/print/CustomMediaTray.java classlib6/core/src/openjdk/sun/sun/print/DialogOwner.java classlib6/core/src/openjdk/sun/sun/print/DialogTypeSelection.java classlib6/core/src/openjdk/sun/sun/print/ImagePrinter.java classlib6/core/src/openjdk/sun/sun/print/OpenBook.java classlib6/core/src/openjdk/sun/sun/print/PSPathGraphics.java classlib6/core/src/openjdk/sun/sun/print/PSPrinterJob.java classlib6/core/src/openjdk/sun/sun/print/PSStreamPrintJob.java classlib6/core/src/openjdk/sun/sun/print/PSStreamPrintService.java classlib6/core/src/openjdk/sun/sun/print/PSStreamPrinterFactory.java classlib6/core/src/openjdk/sun/sun/print/PageableDoc.java classlib6/core/src/openjdk/sun/sun/print/PathGraphics.java classlib6/core/src/openjdk/sun/sun/print/PeekGraphics.java classlib6/core/src/openjdk/sun/sun/print/PeekMetrics.java classlib6/core/src/openjdk/sun/sun/print/PrintJob2D.java classlib6/core/src/openjdk/sun/sun/print/PrintJobAttributeException.java classlib6/core/src/openjdk/sun/sun/print/PrintJobFlavorException.java classlib6/core/src/openjdk/sun/sun/print/ProxyGraphics2D.java classlib6/core/src/openjdk/sun/sun/print/RasterPrinterJob.java classlib6/core/src/openjdk/sun/sun/print/ServiceDialog.java classlib6/core/src/openjdk/sun/sun/print/ServiceNotifier.java classlib6/core/src/openjdk/sun/sun/print/SunAlternateMedia.java classlib6/core/src/openjdk/sun/sun/print/SunMinMaxPage.java classlib6/core/src/openjdk/sun/sun/print/SunPageSelection.java classlib6/core/src/openjdk/sun/sun/print/SunPrinterJobService.java classlib6/core/src/openjdk/sun/sun/print/psfont.properties.ja classlib6/core/src/openjdk/sun/sun/print/psfontj2d.properties classlib6/core/src/openjdk/sun/sun/print/resources/ classlib6/core/src/openjdk/sun/sun/print/resources/duplex.png classlib6/core/src/openjdk/sun/sun/print/resources/oneside.png classlib6/core/src/openjdk/sun/sun/print/resources/orientLandscape.png classlib6/core/src/openjdk/sun/sun/print/resources/orientPortrait.png classlib6/core/src/openjdk/sun/sun/print/resources/orientRevLandscape.png classlib6/core/src/openjdk/sun/sun/print/resources/orientRevPortrait.png classlib6/core/src/openjdk/sun/sun/print/resources/serviceui.properties classlib6/core/src/openjdk/sun/sun/print/resources/serviceui_de.properties classlib6/core/src/openjdk/sun/sun/print/resources/serviceui_es.properties classlib6/core/src/openjdk/sun/sun/print/resources/serviceui_fr.properties classlib6/core/src/openjdk/sun/sun/print/resources/serviceui_it.properties classlib6/core/src/openjdk/sun/sun/print/resources/serviceui_ja.properties classlib6/core/src/openjdk/sun/sun/print/resources/serviceui_ko.properties classlib6/core/src/openjdk/sun/sun/print/resources/serviceui_sv.properties classlib6/core/src/openjdk/sun/sun/print/resources/serviceui_zh_CN.properties classlib6/core/src/openjdk/sun/sun/print/resources/serviceui_zh_TW.properties classlib6/core/src/openjdk/sun/sun/print/resources/tumble.png classlib6/core/src/openjdk/sun/sun/security/smartcardio/ classlib6/core/src/openjdk/sun/sun/security/smartcardio/CardImpl.java classlib6/core/src/openjdk/sun/sun/security/smartcardio/ChannelImpl.java classlib6/core/src/openjdk/sun/sun/security/smartcardio/PCSC.java classlib6/core/src/openjdk/sun/sun/security/smartcardio/PCSCException.java classlib6/core/src/openjdk/sun/sun/security/smartcardio/PCSCTerminals.java classlib6/core/src/openjdk/sun/sun/security/smartcardio/SunPCSC.java classlib6/core/src/openjdk/sun/sun/security/smartcardio/TerminalImpl.java classlib6/core/src/openjdk/sun/sunw/ classlib6/core/src/openjdk/sun/sunw/io/ classlib6/core/src/openjdk/sun/sunw/io/Serializable.java classlib6/core/src/openjdk/sun/sunw/util/ classlib6/core/src/openjdk/sun/sunw/util/EventListener.java classlib6/core/src/openjdk/sun/sunw/util/EventObject.java classlib6/core/src/openjdk/svm/com/ classlib6/core/src/openjdk/svm/com/sun/ classlib6/core/src/openjdk/svm/com/sun/java/ classlib6/core/src/openjdk/svm/com/sun/java/swing/ classlib6/core/src/openjdk/svm/com/sun/java/swing/plaf/ classlib6/core/src/openjdk/svm/com/sun/java/swing/plaf/windows/ classlib6/core/src/openjdk/svm/com/sun/java/swing/plaf/windows/DesktopProperty.java classlib6/core/src/openjdk/svm/com/sun/management/ classlib6/core/src/openjdk/svm/com/sun/management/OSMBeanFactory.java classlib6/core/src/openjdk/svm/com/sun/management/UnixOperatingSystem.java classlib6/core/src/openjdk/svm/com/sun/tools/ classlib6/core/src/openjdk/svm/com/sun/tools/jdi/ classlib6/core/src/openjdk/svm/com/sun/tools/jdi/JDWP.java classlib6/core/src/openjdk/svm/com/sun/tools/jdwpgen/ classlib6/core/src/openjdk/svm/com/sun/tools/jdwpgen/AbstractCommandNode.java classlib6/core/src/openjdk/svm/com/sun/tools/jdwpgen/AbstractGroupNode.java classlib6/core/src/openjdk/svm/com/sun/tools/jdwpgen/AbstractNamedNode.java classlib6/core/src/openjdk/svm/com/sun/tools/jdwpgen/AbstractSimpleNode.java classlib6/core/src/openjdk/svm/com/sun/tools/jdwpgen/AbstractSimpleTypeNode.java classlib6/core/src/openjdk/svm/com/sun/tools/jdwpgen/AbstractTypeListNode.java classlib6/core/src/openjdk/svm/com/sun/tools/jdwpgen/AbstractTypeNode.java classlib6/core/src/openjdk/svm/com/sun/tools/jdwpgen/AltNode.java classlib6/core/src/openjdk/svm/com/sun/tools/jdwpgen/ArrayObjectTypeNode.java classlib6/core/src/openjdk/svm/com/sun/tools/jdwpgen/ArrayRegionTypeNode.java classlib6/core/src/openjdk/svm/com/sun/tools/jdwpgen/ArrayTypeNode.java classlib6/core/src/openjdk/svm/com/sun/tools/jdwpgen/BooleanTypeNode.java classlib6/core/src/openjdk/svm/com/sun/tools/jdwpgen/ByteTypeNode.java classlib6/core/src/openjdk/svm/com/sun/tools/jdwpgen/ClassLoaderObjectTypeNode.java classlib6/core/src/openjdk/svm/com/sun/tools/jdwpgen/ClassObjectTypeNode.java classlib6/core/src/openjdk/svm/com/sun/tools/jdwpgen/ClassTypeNode.java classlib6/core/src/openjdk/svm/com/sun/tools/jdwpgen/CommandNode.java classlib6/core/src/openjdk/svm/com/sun/tools/jdwpgen/CommandSetNode.java classlib6/core/src/openjdk/svm/com/sun/tools/jdwpgen/CommentNode.java classlib6/core/src/openjdk/svm/com/sun/tools/jdwpgen/ConstantNode.java classlib6/core/src/openjdk/svm/com/sun/tools/jdwpgen/ConstantSetNode.java classlib6/core/src/openjdk/svm/com/sun/tools/jdwpgen/Context.java classlib6/core/src/openjdk/svm/com/sun/tools/jdwpgen/ErrorNode.java classlib6/core/src/openjdk/svm/com/sun/tools/jdwpgen/ErrorSetNode.java classlib6/core/src/openjdk/svm/com/sun/tools/jdwpgen/EventNode.java classlib6/core/src/openjdk/svm/com/sun/tools/jdwpgen/FieldTypeNode.java classlib6/core/src/openjdk/svm/com/sun/tools/jdwpgen/FrameTypeNode.java classlib6/core/src/openjdk/svm/com/sun/tools/jdwpgen/GroupNode.java classlib6/core/src/openjdk/svm/com/sun/tools/jdwpgen/IntTypeNode.java classlib6/core/src/openjdk/svm/com/sun/tools/jdwpgen/InterfaceTypeNode.java classlib6/core/src/openjdk/svm/com/sun/tools/jdwpgen/LocationTypeNode.java classlib6/core/src/openjdk/svm/com/sun/tools/jdwpgen/LongTypeNode.java classlib6/core/src/openjdk/svm/com/sun/tools/jdwpgen/Main.java classlib6/core/src/openjdk/svm/com/sun/tools/jdwpgen/MethodTypeNode.java classlib6/core/src/openjdk/svm/com/sun/tools/jdwpgen/NameNode.java classlib6/core/src/openjdk/svm/com/sun/tools/jdwpgen/NameValueNode.java classlib6/core/src/openjdk/svm/com/sun/tools/jdwpgen/Node.java classlib6/core/src/openjdk/svm/com/sun/tools/jdwpgen/ObjectTypeNode.java classlib6/core/src/openjdk/svm/com/sun/tools/jdwpgen/OutNode.java classlib6/core/src/openjdk/svm/com/sun/tools/jdwpgen/Parse.java classlib6/core/src/openjdk/svm/com/sun/tools/jdwpgen/ReferenceIDTypeNode.java classlib6/core/src/openjdk/svm/com/sun/tools/jdwpgen/ReferenceTypeNode.java classlib6/core/src/openjdk/svm/com/sun/tools/jdwpgen/RepeatNode.java classlib6/core/src/openjdk/svm/com/sun/tools/jdwpgen/ReplyNode.java classlib6/core/src/openjdk/svm/com/sun/tools/jdwpgen/RootNode.java classlib6/core/src/openjdk/svm/com/sun/tools/jdwpgen/SelectNode.java classlib6/core/src/openjdk/svm/com/sun/tools/jdwpgen/StringObjectTypeNode.java classlib6/core/src/openjdk/svm/com/sun/tools/jdwpgen/StringTypeNode.java classlib6/core/src/openjdk/svm/com/sun/tools/jdwpgen/TaggedObjectTypeNode.java classlib6/core/src/openjdk/svm/com/sun/tools/jdwpgen/ThreadGroupObjectTypeNode.java classlib6/core/src/openjdk/svm/com/sun/tools/jdwpgen/ThreadObjectTypeNode.java classlib6/core/src/openjdk/svm/com/sun/tools/jdwpgen/TypeNode.java classlib6/core/src/openjdk/svm/com/sun/tools/jdwpgen/UntaggedValueTypeNode.java classlib6/core/src/openjdk/svm/com/sun/tools/jdwpgen/ValueTypeNode.java classlib6/core/src/openjdk/svm/com/sun/tools/jdwpgen/jdwp.spec classlib6/core/src/openjdk/svm/java/io/ classlib6/core/src/openjdk/svm/java/io/UnixFileSystem.java classlib6/core/src/openjdk/svm/java/rmi/ classlib6/core/src/openjdk/svm/java/rmi/activation/ classlib6/core/src/openjdk/svm/java/rmi/activation/ActivationGroup_Stub.java classlib6/core/src/openjdk/svm/java/util/ classlib6/core/src/openjdk/svm/java/util/prefs/ classlib6/core/src/openjdk/svm/java/util/prefs/FileSystemPreferences.java classlib6/core/src/openjdk/svm/java/util/prefs/FileSystemPreferencesFactory.java classlib6/core/src/openjdk/svm/sun/font/ classlib6/core/src/openjdk/svm/sun/font/NativeFont.java classlib6/core/src/openjdk/svm/sun/font/NativeGlyphMapper.java classlib6/core/src/openjdk/svm/sun/font/NativeStrike.java classlib6/core/src/openjdk/svm/sun/font/NativeStrikeDisposer.java classlib6/core/src/openjdk/svm/sun/font/XMap.java classlib6/core/src/openjdk/svm/sun/management/ classlib6/core/src/openjdk/svm/sun/management/FileSystemImpl.java classlib6/core/src/openjdk/svm/sun/misc/FileURLMapper.java classlib6/core/src/openjdk/svm/sun/misc/OSEnvironment.java classlib6/core/src/openjdk/svm/sun/net/dns/ classlib6/core/src/openjdk/svm/sun/net/dns/ResolverConfigurationImpl.java classlib6/core/src/openjdk/svm/sun/net/www/protocol/jar/ classlib6/core/src/openjdk/svm/sun/net/www/protocol/jar/JarFileFactory.java classlib6/core/src/openjdk/svm/sun/nio/ch/DatagramDispatcher.java classlib6/core/src/openjdk/svm/sun/nio/ch/DevPollArrayWrapper.java classlib6/core/src/openjdk/svm/sun/nio/ch/DevPollSelectorImpl.java classlib6/core/src/openjdk/svm/sun/nio/ch/FileDispatcher.java classlib6/core/src/openjdk/svm/sun/nio/ch/FileKey.java classlib6/core/src/openjdk/svm/sun/nio/ch/InheritedChannel.java classlib6/core/src/openjdk/svm/sun/nio/ch/PipeImpl.java classlib6/core/src/openjdk/svm/sun/nio/ch/PollSelectorImpl.java classlib6/core/src/openjdk/svm/sun/nio/ch/SinkChannelImpl.java classlib6/core/src/openjdk/svm/sun/nio/ch/SocketDispatcher.java classlib6/core/src/openjdk/svm/sun/nio/ch/SourceChannelImpl.java classlib6/core/src/openjdk/svm/sun/security/smartcardio/ classlib6/core/src/openjdk/svm/sun/security/smartcardio/PlatformPCSC.java Removed Paths: ------------- classlib6/core/src/openjdk/com/com/sun/java/swing/plaf/windows/ classlib6/core/src/openjdk/com/com/sun/management/OSMBeanFactory.java classlib6/core/src/openjdk/com/com/sun/management/UnixOperatingSystem.java classlib6/core/src/openjdk/com/com/sun/tools/jdi/JDWP.java classlib6/core/src/openjdk/com/com/sun/tools/jdwpgen/ classlib6/core/src/openjdk/java/java/io/UnixFileSystem.java classlib6/core/src/openjdk/java/java/rmi/activation/ActivationGroup_Stub.java classlib6/core/src/openjdk/java/java/util/concurrent/atomic/package.html classlib6/core/src/openjdk/java/java/util/concurrent/locks/package.html classlib6/core/src/openjdk/java/java/util/concurrent/package.html classlib6/core/src/openjdk/java/java/util/prefs/FileSystemPreferences.java classlib6/core/src/openjdk/java/java/util/prefs/FileSystemPreferencesFactory.java classlib6/core/src/openjdk/javax/javax/xml/package.html classlib6/core/src/openjdk/sun/sun/font/NativeFont.java classlib6/core/src/openjdk/sun/sun/font/NativeGlyphMapper.java classlib6/core/src/openjdk/sun/sun/font/NativeStrike.java classlib6/core/src/openjdk/sun/sun/font/NativeStrikeDisposer.java classlib6/core/src/openjdk/sun/sun/font/XMap.java classlib6/core/src/openjdk/sun/sun/java2d/pipe/DuctusRenderer.java classlib6/core/src/openjdk/sun/sun/java2d/pipe/DuctusShapeRenderer.java classlib6/core/src/openjdk/sun/sun/management/FileSystemImpl.java classlib6/core/src/openjdk/sun/sun/misc/FileURLMapper.java classlib6/core/src/openjdk/sun/sun/misc/OSEnvironment.java classlib6/core/src/openjdk/sun/sun/net/dns/ResolverConfigurationImpl.java classlib6/core/src/openjdk/sun/sun/net/www/protocol/jar/JarFileFactory.java classlib6/core/src/openjdk/sun/sun/nio/ch/exceptions Added: classlib6/core/src/icedtea/sun/nio/ch/AlreadyBoundException.java =================================================================== --- classlib6/core/src/icedtea/sun/nio/ch/AlreadyBoundException.java (rev 0) +++ classlib6/core/src/icedtea/sun/nio/ch/AlreadyBoundException.java 2011-06-21 15:36:21 UTC (rev 5820) @@ -0,0 +1,51 @@ +/* + * Copyright 2000-2007 Sun Microsystems, Inc. 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. Sun designates this + * particular file as subject to the "Classpath" exception as provided + * by Sun 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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, + * CA 95054 USA or visit www.sun.com if you need additional information or + * have any questions. + * + */ + +// -- This file was mechanically generated: Do not edit! -- // + +package sun.nio.ch; + + +/** + * Unchecked exception thrown when an attempt is made to bind a {@link + * SocketChannel} that is already bound. + * + * @since 1.4 + */ + +public class AlreadyBoundException + extends IllegalStateException +{ + + private static final long serialVersionUID = 9002280723481772026L; + + /** + * Constructs an instance of this class. + */ + public AlreadyBoundException() { } + +} Added: classlib6/core/src/openjdk/com/com/sun/java/browser/dom/DOMAccessException.java =================================================================== --- classlib6/core/src/openjdk/com/com/sun/java/browser/dom/DOMAccessException.java (rev 0) +++ classlib6/core/src/openjdk/com/com/sun/java/browser/dom/DOMAccessException.java 2011-06-21 15:36:21 UTC (rev 5820) @@ -0,0 +1,89 @@ +/* + * Copyright (c) 2000, 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 + * 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. + */ + +package com.sun.java.browser.dom; + +public class DOMAccessException extends Exception +{ + /** + * Constructs a new DOMAccessException with no detail message. + */ + public DOMAccessException() + { + this(null, null); + } + + + /** + * Constructs a new DOMAccessException with the given detail message. + * + * @param msg Detail message. + */ + public DOMAccessException(String msg) + { + this(null, msg); + } + + /** + * Constructs a new DOMAccessException with the given exception as a root clause. + * + * @param e Exception. + */ + public DOMAccessException(Exception e) + { + this(e, null); + } + + /** + * Constructs a new DOMAccessException with the given exception as a root clause and the given detail message. + * + * @param e Exception. + * @param msg Detail message. + */ + public DOMAccessException(Exception e, String msg) + { + this.ex = e; + this.msg = msg; + } + + /** + * Returns the detail message of the error or null if there is no detail message. + */ + public String getMessage() + { + return msg; + } + + /** + * Returns the root cause of the error or null if there is none. + */ + public Throwable getCause() + { + return ex; + } + + private Throwable ex; + private String msg; +} Added: classlib6/core/src/openjdk/com/com/sun/java/browser/dom/DOMAccessor.java =================================================================== --- classlib6/core/src/openjdk/com/com/sun/java/browser/dom/DOMAccessor.java (rev 0) +++ classlib6/core/src/openjdk/com/com/sun/java/browser/dom/DOMAccessor.java 2011-06-21 15:36:21 UTC (rev 5820) @@ -0,0 +1,40 @@ +/* + * Copyright (c) 2000, 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 + * 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. + */ + +package com.sun.java.browser.dom; + + +public interface DOMAccessor +{ + /** + * Returns the Document object of the DOM. + */ + public org.w3c.dom.Document getDocument(Object obj) throws org.w3c.dom.DOMException; + + /** + * Returns a DOMImplementation object. + */ + public org.w3c.dom.DOMImplementation getDOMImplementation(); +} Added: classlib6/core/src/openjdk/com/com/sun/java/browser/dom/DOMAction.java =================================================================== --- classlib6/core/src/openjdk/com/com/sun/java/browser/dom/DOMAction.java (rev 0) +++ classlib6/core/src/openjdk/com/com/sun/java/browser/dom/DOMAction.java 2011-06-21 15:36:21 UTC (rev 5820) @@ -0,0 +1,42 @@ +/* + * Copyright (c) 2000, 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 + * 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. + */ + +package com.sun.java.browser.dom; + + +public interface DOMAction +{ + /** + * When an object implementing interface DOMAction is passed + * to DOMService.invokeAndWait() or DOMService.invokeLater(), + * run method is called in the DOM access dispatch thread. + * + * accessor is used for the DOMAction to access the entry point of + * the browser's DOM, if necessary. + * + * @param accessor DOMAccessor + */ + public Object run(DOMAccessor accessor); +} Added: classlib6/core/src/openjdk/com/com/sun/java/browser/dom/DOMService.java =================================================================== --- classlib6/core/src/openjdk/com/com/sun/java/browser/dom/DOMService.java (rev 0) +++ classlib6/core/src/openjdk/com/com/sun/java/browser/dom/DOMService.java 2011-06-21 15:36:21 UTC (rev 5820) @@ -0,0 +1,103 @@ +/* + * Copyright (c) 2000, 2001, 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 + * 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. + */ + +package com.sun.java.browser.dom; + +public abstract class DOMService +{ + /** + * Returns new instance of a DOMService. The implementation + * of the DOMService returns depends on the setting of the + * com.sun.java.browser.dom.DOMServiceProvider property or, + * if the property is not set, a platform specific default. + * + * Throws DOMUnsupportedException if the DOMService is not + * available to the obj. + * + * @param obj Object to leverage the DOMService + */ + public static DOMService getService(Object obj) + throws DOMUnsupportedException + { + try + { + String provider = (String) java.security.AccessController.doPrivileged( + new sun.security.action.GetPropertyAction("com.sun.java.browser.dom.DOMServiceProvider")); + + Class clazz = DOMService.class.forName("sun.plugin.dom.DOMService"); + + return (DOMService) clazz.newInstance(); + } + catch (Throwable e) + { + throw new DOMUnsupportedException(e.toString()); + } + } + + /** + * An empty constructor is provided. Implementations of this + * abstract class must provide a public no-argument constructor + * in order for the static getService() method to work correctly. + * Application programmers should not be able to directly + * construct implementation subclasses of this abstract subclass. + */ + public DOMService() + { + } + + /** + * Causes action.run() to be executed synchronously on the + * DOM action dispatching thread. This call will block until all + * pending DOM actions have been processed and (then) + * action.run() returns. This method should be used when an + * application thread needs to access the browser's DOM. + * It should not be called from the DOMActionDispatchThread. + * + * Note that if the DOMAction.run() method throws an uncaught + * exception (on the DOM action dispatching thread), it's caught + * and re-thrown, as an DOMAccessException, on the caller's thread. + * + * If the DOMAction.run() method throws any DOM security related + * exception (on the DOM action dispatching thread), it's caught + * and re-thrown, as an DOMSecurityException, on the caller's thread. + * + * @param action DOMAction. + */ + public abstract Object invokeAndWait(DOMAction action) throws DOMAccessException; + + /** + * Causes action.run() to be executed asynchronously on the + * DOM action dispatching thread. This method should be used + * when an application thread needs to access the browser's + * DOM. It should not be called from the DOMActionDispatchThread. + * + * Note that if the DOMAction.run() method throws an uncaught + * exception (on the DOM action dispatching thread), it will not be + * caught and re-thrown on the caller's thread. + * + * @param action DOMAction. + */ + public abstract void invokeLater(DOMAction action); +} Added: classlib6/core/src/openjdk/com/com/sun/java/browser/dom/DOMServiceProvider.java =================================================================== --- classlib6/core/src/openjdk/com/com/sun/java/browser/dom/DOMServiceProvider.java (rev 0) +++ classlib6/core/src/openjdk/com/com/sun/java/browser/dom/DOMServiceProvider.java 2011-06-21 15:36:21 UTC (rev 5820) @@ -0,0 +1,60 @@ +/* + * Copyright (c) 2000, 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 + * 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. + */ + +package com.sun.java.browser.dom; + +public abstract class DOMServiceProvider +{ + /** + * An empty constructor is provided. Implementations should + * provide a public constructor so that the DOMService + * can instantiate instances of the implementation class. + * Application programmers should not be able to directly + * construct implementation subclasses of this abstract subclass. + * The only way an application should be able to obtain a + * reference to a DOMServiceProvider implementation + * instance is by using the appropriate methods of the + * DOMService. + */ + public DOMServiceProvider() + { + } + + /** + * Returns true if the DOMService can determine the association + * between the obj and the underlying DOM in the browser. + */ + public abstract boolean canHandle(Object obj); + + /** + * Returns the Document object of the DOM. + */ + public abstract org.w3c.dom.Document getDocument(Object obj) throws DOMUnsupportedException; + + /** + * Returns the DOMImplemenation object of the DOM. + */ + public abstract org.w3c.dom.DOMImplementation getDOMImplementation(); +} Added: classlib6/core/src/openjdk/com/com/sun/java/browser/dom/DOMUnsupportedException.java =================================================================== --- classlib6/core/src/openjdk/com/com/sun/java/browser/dom/DOMUnsupportedException.java (rev 0) +++ classlib6/core/src/openjdk/com/com/sun/java/browser/dom/DOMUnsupportedException.java 2011-06-21 15:36:21 UTC (rev 5820) @@ -0,0 +1,89 @@ +/* + * Copyright (c) 2000, 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 + * 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. + */ + +package com.sun.java.browser.dom; + + +public class DOMUnsupportedException extends Exception +{ + /** + * Constructs a new DOMUnsupportedException with no detail message. + */ + public DOMUnsupportedException() + { + this(null, null); + } + + /** + * Constructs a new DOMUnsupportedException with the given detail message. + * + * @param msg Detail message. + */ + public DOMUnsupportedException(String msg) + { + this(null, msg); + } + + /** + * Constructs a new DOMUnsupportedException with the given exception as a root clause. + * + * @param e Exception. + */ + public DOMUnsupportedException(Exception e) + { + this(e, null); + } + + /** + * Constructs a new DOMUnsupportedException with the given exception as a root clause and the given detail message. + * + * @param e Exception. + * @param msg Detail message. + */ + public DOMUnsupportedException(Exception e, String msg) + { + this.ex = e; + this.msg = msg; + } + + /** + * Returns the detail message of the error or null if there is no detail message. + */ + public String getMessage() + { + return msg; + } + + /** + * Returns the root cause of the error or null if there is none. + */ + public Throwable getCause() + { + return ex; + } + + private Throwable ex; + private String msg; +} Added: classlib6/core/src/openjdk/com/com/sun/java/browser/net/ProxyInfo.java =================================================================== --- classlib6/core/src/openjdk/com/com/sun/java/browser/net/ProxyInfo.java (rev 0) +++ classlib6/core/src/openjdk/com/com/sun/java/browser/net/ProxyInfo.java 2011-06-21 15:36:21 UTC (rev 5820) @@ -0,0 +1,36 @@ +/* + * Copyright (c) 2001, 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 + * 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. + */ + +package com.sun.java.browser.net; + +/** + * + * @author Zhengyu Gu + */ +public interface ProxyInfo { + public String getHost(); + public int getPort(); + public boolean isSocks(); +} Added: classlib6/core/src/openjdk/com/com/sun/java/browser/net/ProxyService.java =================================================================== --- classlib6/core/src/openjdk/com/com/sun/java/browser/net/ProxyService.java (rev 0) +++ classlib6/core/src/openjdk/com/com/sun/java/browser/net/ProxyService.java 2011-06-21 15:36:21 UTC (rev 5820) @@ -0,0 +1,61 @@ +/* + * Copyright (c) 2001, 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 + * 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. + */ + +package com.sun.java.browser.net; + +import java.net.URL; +import java.io.IOException; + +/** + * + * @author Zhengyu Gu + */ +public class ProxyService extends Object { + private static ProxyServiceProvider provider = null; + + + public static void setProvider(ProxyServiceProvider p) + throws IOException { + if(null == provider) + provider = p; + else + throw new IOException("Proxy service provider has already been set."); + } + + + /** + * <p>The function returns proxy information of the specified URL.</p> + * @param url URL + * @return returns proxy information. If there is not proxy, returns null + * @since 1.4 + */ + public static ProxyInfo[] getProxyInfo(URL url) + throws IOException { + if(null == provider) + throw new IOException("Proxy service provider is not yet set"); + + return provider.getProxyInfo(url); + } +} Added: classlib6/core/src/openjdk/com/com/sun/java/browser/net/ProxyServiceProvider.java =================================================================== --- classlib6/core/src/openjdk/com/com/sun/java/browser/net/ProxyServiceProvider.java (rev 0) +++ classlib6/core/src/openjdk/com/com/sun/java/browser/net/ProxyServiceProvider.java 2011-06-21 15:36:21 UTC (rev 5820) @@ -0,0 +1,36 @@ +/* + * Copyright (c) 2001, 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 + * 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. + */ + +package com.sun.java.browser.net; + +import java.net.URL; + +/** + * + * @author Zhengyu Gu + */ +public interface ProxyServiceProvider { + public ProxyInfo[] getProxyInfo(URL url); +} Deleted: classlib6/core/src/openjdk/com/com/sun/management/OSMBeanFactory.java =================================================================== --- classlib6/core/src/openjdk/com/com/sun/management/OSMBeanFactory.java 2011-06-06 06:18:06 UTC (rev 5819) +++ classlib6/core/src/openjdk/com/com/sun/management/OSMBeanFactory.java 2011-06-21 15:36:21 UTC (rev 5820) @@ -1,52 +0,0 @@ -/* - * Copyright 2003-2004 Sun Microsystems, Inc. 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. Sun designates this - * particular file as subject to the "Classpath" exception as provided - * by Sun 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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, - * CA 95054 USA or visit www.sun.com if you need additional information or - * have any questions. - */ - -package com.sun.management; - -import java.lang.management.OperatingSystemMXBean; -import sun.management.VMManagement; - -/** - * Operating system dependent MBean factory. - * <p> - * <b>WARNING:</b> While this class is public, it should not be treated as - * public API and its API may change in incompatable ways between dot dot - * releases and even patch releases. You should not rely on this class. - */ -public class OSMBeanFactory { - /* static factory class */ - private OSMBeanFactory() {}; - - private static UnixOperatingSystem osMBean = null; - - public static synchronized OperatingSystemMXBean - getOperatingSystemMXBean(VMManagement jvm) { - - if (osMBean == null) { - osMBean = new UnixOperatingSystem(jvm); - } - return (OperatingSystemMXBean) osMBean; - } -} Deleted: classlib6/core/src/openjdk/com/com/sun/management/UnixOperatingSystem.java =================================================================== --- classlib6/core/src/openjdk/com/com/sun/management/UnixOperatingSystem.java 2011-06-06 06:18:06 UTC (rev 5819) +++ classlib6/core/src/openjdk/com/com/sun/management/UnixOperatingSystem.java 2011-06-21 15:36:21 UTC (rev 5820) @@ -1,58 +0,0 @@ -/* - * Copyright 2003-2005 Sun Microsystems, Inc. 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. Sun designates this - * particular file as subject to the "Classpath" exception as provided - * by Sun 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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, - * CA 95054 USA or visit www.sun.com if you need additional information or - * have any questions. - */ - -package com.sun.management; - -import sun.management.VMManagement; - -/** - * Implementation class for the operating system. - * Standard and committed hotspot-specific metrics if any. - * - * ManagementFactory.getOperatingSystemMXBean() returns an instance - * of this class. - */ -class UnixOperatingSystem - extends sun.management.OperatingSystemImpl - implements UnixOperatingSystemMXBean { - - UnixOperatingSystem(VMManagement vm) { - super(vm); - } - - public native long getCommittedVirtualMemorySize(); - public native long getTotalSwapSpaceSize(); - public native long getFreeSwapSpaceSize(); - public native long getProcessCpuTime(); - public native long getFreePhysicalMemorySize(); - public native long getTotalPhysicalMemorySize(); - public native long getOpenFileDescriptorCount(); - public native long getMaxFileDescriptorCount(); - - ... [truncated message content] |
From: <ls...@us...> - 2011-07-15 18:06:32
|
Revision: 5831 http://jnode.svn.sourceforge.net/jnode/?rev=5831&view=rev Author: lsantha Date: 2011-07-15 18:06:22 +0000 (Fri, 15 Jul 2011) Log Message: ----------- Integrating OpenJDK 6 build 23. Nimbus L&F. Added Paths: ----------- classlib6/core/src/icedtea/com/sun/java/ classlib6/core/src/icedtea/com/sun/java/swing/ classlib6/core/src/icedtea/com/sun/java/swing/plaf/ classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/ classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/ArrowButtonPainter.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/ButtonPainter.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/CheckBoxMenuItemPainter.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/CheckBoxPainter.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/ComboBoxArrowButtonEditableState.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/ComboBoxArrowButtonPainter.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/ComboBoxEditableState.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/ComboBoxPainter.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/ComboBoxTextFieldPainter.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/DesktopIconPainter.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/DesktopPanePainter.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/EditorPanePainter.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/FileChooserPainter.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/FormattedTextFieldPainter.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/InternalFramePainter.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/InternalFrameTitlePaneCloseButtonPainter.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/InternalFrameTitlePaneCloseButtonWindowNotFocusedState.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/InternalFrameTitlePaneIconifyButtonPainter.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/InternalFrameTitlePaneIconifyButtonWindowNotFocusedState.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/InternalFrameTitlePaneMaximizeButtonPainter.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/InternalFrameTitlePaneMaximizeButtonWindowMaximizedState.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/InternalFrameTitlePaneMaximizeButtonWindowNotFocusedState.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/InternalFrameTitlePaneMenuButtonPainter.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/InternalFrameTitlePaneMenuButtonWindowNotFocusedState.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/InternalFrameTitlePanePainter.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/InternalFrameTitlePaneWindowFocusedState.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/InternalFrameWindowFocusedState.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/MenuBarMenuPainter.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/MenuBarPainter.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/MenuItemPainter.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/MenuPainter.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/NimbusDefaults.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/OptionPaneMessageAreaOptionPaneLabelPainter.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/OptionPaneMessageAreaPainter.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/OptionPanePainter.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/PasswordFieldPainter.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/PopupMenuPainter.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/PopupMenuSeparatorPainter.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/ProgressBarFinishedState.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/ProgressBarIndeterminateState.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/ProgressBarPainter.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/RadioButtonMenuItemPainter.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/RadioButtonPainter.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/ScrollBarButtonPainter.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/ScrollBarPainter.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/ScrollBarThumbPainter.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/ScrollBarTrackPainter.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/ScrollPanePainter.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/SeparatorPainter.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/SliderArrowShapeState.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/SliderPainter.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/SliderThumbArrowShapeState.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/SliderThumbPainter.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/SliderTrackArrowShapeState.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/SliderTrackPainter.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/SpinnerNextButtonPainter.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/SpinnerPainter.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/SpinnerPanelSpinnerFormattedTextFieldPainter.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/SpinnerPreviousButtonPainter.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/SplitPaneDividerPainter.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/SplitPaneDividerVerticalState.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/SplitPanePainter.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/SplitPaneVerticalState.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/TabbedPanePainter.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/TabbedPaneTabAreaPainter.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/TabbedPaneTabPainter.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/TableEditorPainter.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/TableHeaderPainter.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/TableHeaderRendererPainter.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/TableHeaderRendererSortedState.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/TextAreaNotInScrollPaneState.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/TextAreaPainter.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/TextFieldPainter.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/TextPanePainter.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/ToggleButtonPainter.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/ToolBarButtonPainter.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/ToolBarEastState.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/ToolBarNorthState.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/ToolBarPainter.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/ToolBarSouthState.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/ToolBarToggleButtonPainter.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/ToolBarWestState.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/ToolTipPainter.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/TreeCellEditorPainter.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/TreeCellPainter.java classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/TreePainter.java classlib6/core/src/openjdk/com/com/sun/java/swing/plaf/nimbus/ classlib6/core/src/openjdk/com/com/sun/java/swing/plaf/nimbus/AbstractRegionPainter.java classlib6/core/src/openjdk/com/com/sun/java/swing/plaf/nimbus/Defaults.template classlib6/core/src/openjdk/com/com/sun/java/swing/plaf/nimbus/DerivedColor.java classlib6/core/src/openjdk/com/com/sun/java/swing/plaf/nimbus/DropShadowEffect.java classlib6/core/src/openjdk/com/com/sun/java/swing/plaf/nimbus/Effect.java classlib6/core/src/openjdk/com/com/sun/java/swing/plaf/nimbus/EffectUtils.java classlib6/core/src/openjdk/com/com/sun/java/swing/plaf/nimbus/ImageCache.java classlib6/core/src/openjdk/com/com/sun/java/swing/plaf/nimbus/ImageScalingHelper.java classlib6/core/src/openjdk/com/com/sun/java/swing/plaf/nimbus/InnerGlowEffect.java classlib6/core/src/openjdk/com/com/sun/java/swing/plaf/nimbus/InnerShadowEffect.java classlib6/core/src/openjdk/com/com/sun/java/swing/plaf/nimbus/LoweredBorder.java classlib6/core/src/openjdk/com/com/sun/java/swing/plaf/nimbus/NimbusIcon.java classlib6/core/src/openjdk/com/com/sun/java/swing/plaf/nimbus/NimbusLookAndFeel.java classlib6/core/src/openjdk/com/com/sun/java/swing/plaf/nimbus/NimbusStyle.java classlib6/core/src/openjdk/com/com/sun/java/swing/plaf/nimbus/OuterGlowEffect.java classlib6/core/src/openjdk/com/com/sun/java/swing/plaf/nimbus/PainterImpl.template classlib6/core/src/openjdk/com/com/sun/java/swing/plaf/nimbus/ShadowEffect.java classlib6/core/src/openjdk/com/com/sun/java/swing/plaf/nimbus/State.java classlib6/core/src/openjdk/com/com/sun/java/swing/plaf/nimbus/StateImpl.template classlib6/core/src/openjdk/com/com/sun/java/swing/plaf/nimbus/SynthPainterImpl.java classlib6/core/src/openjdk/com/com/sun/java/swing/plaf/nimbus/TableScrollPaneCorner.java classlib6/core/src/openjdk/com/com/sun/java/swing/plaf/nimbus/ToolBarSeparatorPainter.java classlib6/core/src/openjdk/com/com/sun/java/swing/plaf/nimbus/doc-files/ classlib6/core/src/openjdk/com/com/sun/java/swing/plaf/nimbus/doc-files/properties.html classlib6/core/src/openjdk/com/com/sun/java/swing/plaf/nimbus/package.html classlib6/core/src/openjdk/com/com/sun/java/swing/plaf/nimbus/skin.laf classlib6/core/src/openjdk/sun/sun/swing/plaf/GTKKeybindings.java classlib6/core/src/openjdk/sun/sun/swing/plaf/WindowsKeybindings.java Added: classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/ArrowButtonPainter.java =================================================================== --- classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/ArrowButtonPainter.java (rev 0) +++ classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/ArrowButtonPainter.java 2011-07-15 18:06:22 UTC (rev 5831) @@ -0,0 +1,119 @@ +/* + * Copyright (c) 2005, 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 + * 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. + */ +package com.sun.java.swing.plaf.nimbus; + +import com.sun.java.swing.Painter; + +import java.awt.*; +import java.awt.geom.*; +import java.awt.image.*; +import javax.swing.*; + + +final class ArrowButtonPainter extends AbstractRegionPainter { + //package private integers representing the available states that + //this painter will paint. These are used when creating a new instance + //of ArrowButtonPainter to determine which region/state is being painted + //by that instance. + static final int BACKGROUND_ENABLED = 1; + static final int FOREGROUND_DISABLED = 2; + static final int FOREGROUND_ENABLED = 3; + + + private int state; //refers to one of the static final ints above + private PaintContext ctx; + + //the following 4 variables are reused during the painting code of the layers + private Path2D path = new Path2D.Float(); + private Rectangle2D rect = new Rectangle2D.Float(0, 0, 0, 0); + private RoundRectangle2D roundRect = new RoundRectangle2D.Float(0, 0, 0, 0, 0, 0); + private Ellipse2D ellipse = new Ellipse2D.Float(0, 0, 0, 0); + + //All Colors used for painting are stored here. Ideally, only those colors being used + //by a particular instance of ArrowButtonPainter would be created. For the moment at least, + //however, all are created for each instance. + private Color color1 = decodeColor("nimbusBase", 0.027408898f, -0.57391655f, 0.1490196f, 0); + private Color color2 = decodeColor("nimbusBase", -0.57865167f, -0.6357143f, -0.37254906f, 0); + + + //Array of current component colors, updated in each paint call + private Object[] componentColors; + + public ArrowButtonPainter(PaintContext ctx, int state) { + super(); + this.state = state; + this.ctx = ctx; + } + + @Override + protected void doPaint(Graphics2D g, JComponent c, int width, int height, Object[] extendedCacheKeys) { + //populate componentColors array with colors calculated in getExtendedCacheKeys call + componentColors = extendedCacheKeys; + //generate this entire method. Each state/bg/fg/border combo that has + //been painted gets its own KEY and paint method. + switch(state) { + case FOREGROUND_DISABLED: paintForegroundDisabled(g); break; + case FOREGROUND_ENABLED: paintForegroundEnabled(g); break; + + } + } + + + + @Override + protected final PaintContext getPaintContext() { + return ctx; + } + + private void paintForegroundDisabled(Graphics2D g) { + path = decodePath1(); + g.setPaint(color1); + g.fill(path); + + } + + private void paintForegroundEnabled(Graphics2D g) { + path = decodePath1(); + g.setPaint(color2); + g.fill(path); + + } + + + + private Path2D decodePath1() { + path.reset(); + path.moveTo(decodeX(1.8f), decodeY(1.2f)); + path.lineTo(decodeX(1.2f), decodeY(1.5f)); + path.lineTo(decodeX(1.8f), decodeY(1.8f)); + path.lineTo(decodeX(1.8f), decodeY(1.2f)); + path.closePath(); + return path; + } + + + + +} Added: classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/ButtonPainter.java =================================================================== --- classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/ButtonPainter.java (rev 0) +++ classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/ButtonPainter.java 2011-07-15 18:06:22 UTC (rev 5831) @@ -0,0 +1,653 @@ +/* + * Copyright (c) 2005, 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 + * 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. + */ +package com.sun.java.swing.plaf.nimbus; + +import com.sun.java.swing.Painter; + +import java.awt.*; +import java.awt.geom.*; +import java.awt.image.*; +import javax.swing.*; + + +final class ButtonPainter extends AbstractRegionPainter { + //package private integers representing the available states that + //this painter will paint. These are used when creating a new instance + //of ButtonPainter to determine which region/state is being painted + //by that instance. + static final int BACKGROUND_DEFAULT = 1; + static final int BACKGROUND_DEFAULT_FOCUSED = 2; + static final int BACKGROUND_MOUSEOVER_DEFAULT = 3; + static final int BACKGROUND_MOUSEOVER_DEFAULT_FOCUSED = 4; + static final int BACKGROUND_PRESSED_DEFAULT = 5; + static final int BACKGROUND_PRESSED_DEFAULT_FOCUSED = 6; + static final int BACKGROUND_DISABLED = 7; + static final int BACKGROUND_ENABLED = 8; + static final int BACKGROUND_FOCUSED = 9; + static final int BACKGROUND_MOUSEOVER = 10; + static final int BACKGROUND_MOUSEOVER_FOCUSED = 11; + static final int BACKGROUND_PRESSED = 12; + static final int BACKGROUND_PRESSED_FOCUSED = 13; + + + private int state; //refers to one of the static final ints above + private PaintContext ctx; + + //the following 4 variables are reused during the painting code of the layers + private Path2D path = new Path2D.Float(); + private Rectangle2D rect = new Rectangle2D.Float(0, 0, 0, 0); + private RoundRectangle2D roundRect = new RoundRectangle2D.Float(0, 0, 0, 0, 0, 0); + private Ellipse2D ellipse = new Ellipse2D.Float(0, 0, 0, 0); + + //All Colors used for painting are stored here. Ideally, only those colors being used + //by a particular instance of ButtonPainter would be created. For the moment at least, + //however, all are created for each instance. + private Color color1 = decodeColor("nimbusBlueGrey", -0.027777791f, -0.06885965f, -0.36862746f, -190); + private Color color2 = decodeColor("nimbusBase", 5.1498413E-4f, -0.34585923f, -0.007843137f, 0); + private Color color3 = decodeColor("nimbusBase", 5.1498413E-4f, -0.095173776f, -0.25882354f, 0); + private Color color4 = decodeColor("nimbusBase", 0.004681647f, -0.6197143f, 0.43137252f, 0); + private Color color5 = decodeColor("nimbusBase", 0.004681647f, -0.5766426f, 0.38039213f, 0); + private Color color6 = decodeColor("nimbusBase", 5.1498413E-4f, -0.43866998f, 0.24705881f, 0); + private Color color7 = decodeColor("nimbusBase", 5.1498413E-4f, -0.46404046f, 0.36470586f, 0); + private Color color8 = decodeColor("nimbusBase", 5.1498413E-4f, -0.47761154f, 0.44313723f, 0); + private Color color9 = decodeColor("nimbusFocus", 0.0f, 0.0f, 0.0f, 0); + private Color color10 = decodeColor("nimbusBase", 0.0013483167f, -0.1769987f, -0.12156865f, 0); + private Color color11 = decodeColor("nimbusBase", 0.059279382f, 0.3642857f, -0.43529415f, 0); + private Color color12 = decodeColor("nimbusBase", 0.004681647f, -0.6198413f, 0.43921566f, 0); + private Color color13 = decodeColor("nimbusBase", -0.0017285943f, -0.5822163f, 0.40392154f, 0); + private Color color14 = decodeColor("nimbusBase", 5.1498413E-4f, -0.4555341f, 0.3215686f, 0); + private Color color15 = decodeColor("nimbusBase", 5.1498413E-4f, -0.47698414f, 0.43921566f, 0); + private Color color16 = decodeColor("nimbusBase", -0.06415892f, -0.5455182f, 0.45098037f, 0); + private Color color17 = decodeColor("nimbusBlueGrey", 0.0f, -0.110526316f, 0.25490195f, -95); + private Color color18 = decodeColor("nimbusBase", -0.57865167f, -0.6357143f, -0.54901963f, 0); + private Color color19 = decodeColor("nimbusBase", -3.528595E-5f, 0.018606722f, -0.23137257f, 0); + private Color color20 = decodeColor("nimbusBase", -4.2033195E-4f, -0.38050595f, 0.20392156f, 0); + private Color color21 = decodeColor("nimbusBase", 0.001903832f, -0.29863563f, 0.1490196f, 0); + private Color color22 = decodeColor("nimbusBase", 0.0f, 0.0f, 0.0f, 0); + private Color color23 = decodeColor("nimbusBase", 0.0018727183f, -0.14126986f, 0.15686274f, 0); + private Color color24 = decodeColor("nimbusBase", 8.9377165E-4f, -0.20852983f, 0.2588235f, 0); + private Color color25 = decodeColor("nimbusBlueGrey", -0.027777791f, -0.06885965f, -0.36862746f, -232); + private Color color26 = decodeColor("nimbusBlueGrey", 0.0f, -0.06766917f, 0.07843137f, 0); + private Color color27 = decodeColor("nimbusBlueGrey", 0.0f, -0.06484103f, 0.027450979f, 0); + private Color color28 = decodeColor("nimbusBlueGrey", 0.0f, -0.08477524f, 0.16862744f, 0); + private Color color29 = decodeColor("nimbusBlueGrey", -0.015872955f, -0.080091536f, 0.15686274f, 0); + private Color color30 = decodeColor("nimbusBlueGrey", 0.0f, -0.07016757f, 0.12941176f, 0); + private Color color31 = decodeColor("nimbusBlueGrey", 0.0f, -0.07052632f, 0.1372549f, 0); + private Color color32 = decodeColor("nimbusBlueGrey", 0.0f, -0.070878744f, 0.14509803f, 0); + private Color color33 = decodeColor("nimbusBlueGrey", -0.055555522f, -0.05356429f, -0.12549019f, 0); + private Color color34 = decodeColor("nimbusBlueGrey", 0.0f, -0.0147816315f, -0.3764706f, 0); + private Color color35 = decodeColor("nimbusBlueGrey", 0.055555582f, -0.10655806f, 0.24313724f, 0); + private Color color36 = decodeColor("nimbusBlueGrey", 0.0f, -0.09823123f, 0.2117647f, 0); + private Color color37 = decodeColor("nimbusBlueGrey", 0.0f, -0.0749532f, 0.24705881f, 0); + private Color color38 = decodeColor("nimbusBlueGrey", 0.0f, -0.110526316f, 0.25490195f, 0); + private Color color39 = decodeColor("nimbusBlueGrey", 0.0f, -0.020974077f, -0.21960783f, 0); + private Color color40 = decodeColor("nimbusBlueGrey", 0.0f, 0.11169591f, -0.53333336f, 0); + private Color color41 = decodeColor("nimbusBlueGrey", 0.055555582f, -0.10658931f, 0.25098038f, 0); + private Color color42 = decodeColor("nimbusBlueGrey", 0.0f, -0.098526314f, 0.2352941f, 0); + private Color color43 = decodeColor("nimbusBlueGrey", 0.0f, -0.07333623f, 0.20392156f, 0); + private Color color44 = new Color(245, 250, 255, 160); + private Color color45 = decodeColor("nimbusBlueGrey", 0.055555582f, 0.8894737f, -0.7176471f, 0); + private Color color46 = decodeColor("nimbusBlueGrey", 0.0f, 5.847961E-4f, -0.32156864f, 0); + private Color color47 = decodeColor("nimbusBlueGrey", -0.00505054f, -0.05960039f, 0.10196078f, 0); + private Color color48 = decodeColor("nimbusBlueGrey", -0.008547008f, -0.04772438f, 0.06666666f, 0); + private Color color49 = decodeColor("nimbusBlueGrey", -0.0027777553f, -0.0018306673f, -0.02352941f, 0); + private Color color50 = decodeColor("nimbusBlueGrey", -0.0027777553f, -0.0212406f, 0.13333333f, 0); + private Color color51 = decodeColor("nimbusBlueGrey", 0.0055555105f, -0.030845039f, 0.23921567f, 0); + + + //Array of current component colors, updated in each paint call + private Object[] componentColors; + + public ButtonPainter(PaintContext ctx, int state) { + super(); + this.state = state; + this.ctx = ctx; + } + + @Override + protected void doPaint(Graphics2D g, JComponent c, int width, int height, Object[] extendedCacheKeys) { + //populate componentColors array with colors calculated in getExtendedCacheKeys call + componentColors = extendedCacheKeys; + //generate this entire method. Each state/bg/fg/border combo that has + //been painted gets its own KEY and paint method. + switch(state) { + case BACKGROUND_DEFAULT: paintBackgroundDefault(g); break; + case BACKGROUND_DEFAULT_FOCUSED: paintBackgroundDefaultAndFocused(g); break; + case BACKGROUND_MOUSEOVER_DEFAULT: paintBackgroundMouseOverAndDefault(g); break; + case BACKGROUND_MOUSEOVER_DEFAULT_FOCUSED: paintBackgroundMouseOverAndDefaultAndFocused(g); break; + case BACKGROUND_PRESSED_DEFAULT: paintBackgroundPressedAndDefault(g); break; + case BACKGROUND_PRESSED_DEFAULT_FOCUSED: paintBackgroundPressedAndDefaultAndFocused(g); break; + case BACKGROUND_DISABLED: paintBackgroundDisabled(g); break; + case BACKGROUND_ENABLED: paintBackgroundEnabled(g); break; + case BACKGROUND_FOCUSED: paintBackgroundFocused(g); break; + case BACKGROUND_MOUSEOVER: paintBackgroundMouseOver(g); break; + case BACKGROUND_MOUSEOVER_FOCUSED: paintBackgroundMouseOverAndFocused(g); break; + case BACKGROUND_PRESSED: paintBackgroundPressed(g); break; + case BACKGROUND_PRESSED_FOCUSED: paintBackgroundPressedAndFocused(g); break; + + } + } + + protected Object[] getExtendedCacheKeys(JComponent c) { + Object[] extendedCacheKeys = null; + switch(state) { + case BACKGROUND_DEFAULT: + extendedCacheKeys = new Object[] { + getComponentColor(c, "background", color4, -0.6197143f, 0.43137252f, 0), + getComponentColor(c, "background", color5, -0.5766426f, 0.38039213f, 0), + getComponentColor(c, "background", color6, -0.43866998f, 0.24705881f, 0), + getComponentColor(c, "background", color7, -0.46404046f, 0.36470586f, 0), + getComponentColor(c, "background", color8, -0.47761154f, 0.44313723f, 0)}; + break; + case BACKGROUND_DEFAULT_FOCUSED: + extendedCacheKeys = new Object[] { + getComponentColor(c, "background", color4, -0.6197143f, 0.43137252f, 0), + getComponentColor(c, "background", color5, -0.5766426f, 0.38039213f, 0), + getComponentColor(c, "background", color6, -0.43866998f, 0.24705881f, 0), + getComponentColor(c, "background", color7, -0.46404046f, 0.36470586f, 0), + getComponentColor(c, "background", color8, -0.47761154f, 0.44313723f, 0)}; + break; + case BACKGROUND_MOUSEOVER_DEFAULT: + extendedCacheKeys = new Object[] { + getComponentColor(c, "background", color12, -0.6198413f, 0.43921566f, 0), + getComponentColor(c, "background", color13, -0.5822163f, 0.40392154f, 0), + getComponentColor(c, "background", color14, -0.4555341f, 0.3215686f, 0), + getComponentColor(c, "background", color15, -0.47698414f, 0.43921566f, 0), + getComponentColor(c, "background", color16, -0.5455182f, 0.45098037f, 0)}; + break; + case BACKGROUND_MOUSEOVER_DEFAULT_FOCUSED: + extendedCacheKeys = new Object[] { + getComponentColor(c, "background", color12, -0.6198413f, 0.43921566f, 0), + getComponentColor(c, "background", color13, -0.5822163f, 0.40392154f, 0), + getComponentColor(c, "background", color14, -0.4555341f, 0.3215686f, 0), + getComponentColor(c, "background", color15, -0.47698414f, 0.43921566f, 0), + getComponentColor(c, "background", color16, -0.5455182f, 0.45098037f, 0)}; + break; + case BACKGROUND_PRESSED_DEFAULT: + extendedCacheKeys = new Object[] { + getComponentColor(c, "background", color20, -0.38050595f, 0.20392156f, 0), + getComponentColor(c, "background", color21, -0.29863563f, 0.1490196f, 0), + getComponentColor(c, "background", color22, 0.0f, 0.0f, 0), + getComponentColor(c, "background", color23, -0.14126986f, 0.15686274f, 0), + getComponentColor(c, "background", color24, -0.20852983f, 0.2588235f, 0)}; + break; + case BACKGROUND_PRESSED_DEFAULT_FOCUSED: + extendedCacheKeys = new Object[] { + getComponentColor(c, "background", color20, -0.38050595f, 0.20392156f, 0), + getComponentColor(c, "background", color21, -0.29863563f, 0.1490196f, 0), + getComponentColor(c, "background", color22, 0.0f, 0.0f, 0), + getComponentColor(c, "background", color23, -0.14126986f, 0.15686274f, 0), + getComponentColor(c, "background", color24, -0.20852983f, 0.2588235f, 0)}; + break; + case BACKGROUND_ENABLED: + extendedCacheKeys = new Object[] { + getComponentColor(c, "background", color35, -0.10655806f, 0.24313724f, 0), + getComponentColor(c, "background", color36, -0.09823123f, 0.2117647f, 0), + getComponentColor(c, "background", color30, -0.07016757f, 0.12941176f, 0), + getComponentColor(c, "background", color37, -0.0749532f, 0.24705881f, 0), + getComponentColor(c, "background", color38, -0.110526316f, 0.25490195f, 0)}; + break; + case BACKGROUND_FOCUSED: + extendedCacheKeys = new Object[] { + getComponentColor(c, "background", color35, -0.10655806f, 0.24313724f, 0), + getComponentColor(c, "background", color36, -0.09823123f, 0.2117647f, 0), + getComponentColor(c, "background", color30, -0.07016757f, 0.12941176f, 0), + getComponentColor(c, "background", color37, -0.0749532f, 0.24705881f, 0), + getComponentColor(c, "background", color38, -0.110526316f, 0.25490195f, 0)}; + break; + case BACKGROUND_MOUSEOVER: + extendedCacheKeys = new Object[] { + getComponentColor(c, "background", color41, -0.10658931f, 0.25098038f, 0), + getComponentColor(c, "background", color42, -0.098526314f, 0.2352941f, 0), + getComponentColor(c, "background", color43, -0.07333623f, 0.20392156f, 0), + getComponentColor(c, "background", color38, -0.110526316f, 0.25490195f, 0)}; + break; + case BACKGROUND_MOUSEOVER_FOCUSED: + extendedCacheKeys = new Object[] { + getComponentColor(c, "background", color41, -0.10658931f, 0.25098038f, 0), + getComponentColor(c, "background", color42, -0.098526314f, 0.2352941f, 0), + getComponentColor(c, "background", color43, -0.07333623f, 0.20392156f, 0), + getComponentColor(c, "background", color38, -0.110526316f, 0.25490195f, 0)}; + break; + case BACKGROUND_PRESSED: + extendedCacheKeys = new Object[] { + getComponentColor(c, "background", color47, -0.05960039f, 0.10196078f, 0), + getComponentColor(c, "background", color48, -0.04772438f, 0.06666666f, 0), + getComponentColor(c, "background", color49, -0.0018306673f, -0.02352941f, 0), + getComponentColor(c, "background", color50, -0.0212406f, 0.13333333f, 0), + getComponentColor(c, "background", color51, -0.030845039f, 0.23921567f, 0)}; + break; + case BACKGROUND_PRESSED_FOCUSED: + extendedCacheKeys = new Object[] { + getComponentColor(c, "background", color47, -0.05960039f, 0.10196078f, 0), + getComponentColor(c, "background", color48, -0.04772438f, 0.06666666f, 0), + getComponentColor(c, "background", color49, -0.0018306673f, -0.02352941f, 0), + getComponentColor(c, "background", color50, -0.0212406f, 0.13333333f, 0), + getComponentColor(c, "background", color51, -0.030845039f, 0.23921567f, 0)}; + break; + } + return extendedCacheKeys; + } + + @Override + protected final PaintContext getPaintContext() { + return ctx; + } + + private void paintBackgroundDefault(Graphics2D g) { + roundRect = decodeRoundRect1(); + g.setPaint(color1); + g.fill(roundRect); + roundRect = decodeRoundRect2(); + g.setPaint(decodeGradient1(roundRect)); + g.fill(roundRect); + roundRect = decodeRoundRect3(); + g.setPaint(decodeGradient2(roundRect)); + g.fill(roundRect); + + } + + private void paintBackgroundDefaultAndFocused(Graphics2D g) { + roundRect = decodeRoundRect4(); + g.setPaint(color9); + g.fill(roundRect); + roundRect = decodeRoundRect2(); + g.setPaint(decodeGradient1(roundRect)); + g.fill(roundRect); + roundRect = decodeRoundRect3(); + g.setPaint(decodeGradient2(roundRect)); + g.fill(roundRect); + + } + + private void paintBackgroundMouseOverAndDefault(Graphics2D g) { + roundRect = decodeRoundRect5(); + g.setPaint(color1); + g.fill(roundRect); + roundRect = decodeRoundRect2(); + g.setPaint(decodeGradient3(roundRect)); + g.fill(roundRect); + roundRect = decodeRoundRect3(); + g.setPaint(decodeGradient2(roundRect)); + g.fill(roundRect); + + } + + private void paintBackgroundMouseOverAndDefaultAndFocused(Graphics2D g) { + roundRect = decodeRoundRect4(); + g.setPaint(color9); + g.fill(roundRect); + roundRect = decodeRoundRect2(); + g.setPaint(decodeGradient3(roundRect)); + g.fill(roundRect); + roundRect = decodeRoundRect3(); + g.setPaint(decodeGradient2(roundRect)); + g.fill(roundRect); + + } + + private void paintBackgroundPressedAndDefault(Graphics2D g) { + roundRect = decodeRoundRect1(); + g.setPaint(color17); + g.fill(roundRect); + roundRect = decodeRoundRect2(); + g.setPaint(decodeGradient4(roundRect)); + g.fill(roundRect); + roundRect = decodeRoundRect3(); + g.setPaint(decodeGradient2(roundRect)); + g.fill(roundRect); + + } + + private void paintBackgroundPressedAndDefaultAndFocused(Graphics2D g) { + roundRect = decodeRoundRect4(); + g.setPaint(color9); + g.fill(roundRect); + roundRect = decodeRoundRect2(); + g.setPaint(decodeGradient4(roundRect)); + g.fill(roundRect); + roundRect = decodeRoundRect3(); + g.setPaint(decodeGradient2(roundRect)); + g.fill(roundRect); + + } + + private void paintBackgroundDisabled(Graphics2D g) { + roundRect = decodeRoundRect1(); + g.setPaint(color25); + g.fill(roundRect); + roundRect = decodeRoundRect2(); + g.setPaint(decodeGradient5(roundRect)); + g.fill(roundRect); + roundRect = decodeRoundRect3(); + g.setPaint(decodeGradient6(roundRect)); + g.fill(roundRect); + + } + + private void paintBackgroundEnabled(Graphics2D g) { + roundRect = decodeRoundRect1(); + g.setPaint(color1); + g.fill(roundRect); + roundRect = decodeRoundRect2(); + g.setPaint(decodeGradient7(roundRect)); + g.fill(roundRect); + roundRect = decodeRoundRect3(); + g.setPaint(decodeGradient2(roundRect)); + g.fill(roundRect); + + } + + private void paintBackgroundFocused(Graphics2D g) { + roundRect = decodeRoundRect4(); + g.setPaint(color9); + g.fill(roundRect); + roundRect = decodeRoundRect2(); + g.setPaint(decodeGradient7(roundRect)); + g.fill(roundRect); + roundRect = decodeRoundRect3(); + g.setPaint(decodeGradient8(roundRect)); + g.fill(roundRect); + + } + + private void paintBackgroundMouseOver(Graphics2D g) { + roundRect = decodeRoundRect1(); + g.setPaint(color1); + g.fill(roundRect); + roundRect = decodeRoundRect2(); + g.setPaint(decodeGradient9(roundRect)); + g.fill(roundRect); + roundRect = decodeRoundRect3(); + g.setPaint(decodeGradient10(roundRect)); + g.fill(roundRect); + + } + + private void paintBackgroundMouseOverAndFocused(Graphics2D g) { + roundRect = decodeRoundRect4(); + g.setPaint(color9); + g.fill(roundRect); + roundRect = decodeRoundRect2(); + g.setPaint(decodeGradient9(roundRect)); + g.fill(roundRect); + roundRect = decodeRoundRect3(); + g.setPaint(decodeGradient10(roundRect)); + g.fill(roundRect); + + } + + private void paintBackgroundPressed(Graphics2D g) { + roundRect = decodeRoundRect1(); + g.setPaint(color44); + g.fill(roundRect); + roundRect = decodeRoundRect2(); + g.setPaint(decodeGradient11(roundRect)); + g.fill(roundRect); + roundRect = decodeRoundRect3(); + g.setPaint(decodeGradient2(roundRect)); + g.fill(roundRect); + + } + + private void paintBackgroundPressedAndFocused(Graphics2D g) { + roundRect = decodeRoundRect4(); + g.setPaint(color9); + g.fill(roundRect); + roundRect = decodeRoundRect2(); + g.setPaint(decodeGradient11(roundRect)); + g.fill(roundRect); + roundRect = decodeRoundRect3(); + g.setPaint(decodeGradient2(roundRect)); + g.fill(roundRect); + + } + + + + private RoundRectangle2D decodeRoundRect1() { + roundRect.setRoundRect(decodeX(0.2857143f), //x + decodeY(0.42857143f), //y + decodeX(2.7142859f) - decodeX(0.2857143f), //width + decodeY(2.857143f) - decodeY(0.42857143f), //height + 12.0f, 12.0f); //rounding + return roundRect; + } + + private RoundRectangle2D decodeRoundRect2() { + roundRect.setRoundRect(decodeX(0.2857143f), //x + decodeY(0.2857143f), //y + decodeX(2.7142859f) - decodeX(0.2857143f), //width + decodeY(2.7142859f) - decodeY(0.2857143f), //height + 9.0f, 9.0f); //rounding + return roundRect; + } + + private RoundRectangle2D decodeRoundRect3() { + roundRect.setRoundRect(decodeX(0.42857143f), //x + decodeY(0.42857143f), //y + decodeX(2.5714285f) - decodeX(0.42857143f), //width + decodeY(2.5714285f) - decodeY(0.42857143f), //height + 7.0f, 7.0f); //rounding + return roundRect; + } + + private RoundRectangle2D decodeRoundRect4() { + roundRect.setRoundRect(decodeX(0.08571429f), //x + decodeY(0.08571429f), //y + decodeX(2.914286f) - decodeX(0.08571429f), //width + decodeY(2.914286f) - decodeY(0.08571429f), //height + 11.0f, 11.0f); //rounding + return roundRect; + } + + private RoundRectangle2D decodeRoundRect5() { + roundRect.setRoundRect(decodeX(0.2857143f), //x + decodeY(0.42857143f), //y + decodeX(2.7142859f) - decodeX(0.2857143f), //width + decodeY(2.857143f) - decodeY(0.42857143f), //height + 9.0f, 9.0f); //rounding + return roundRect; + } + + + + private Paint decodeGradient1(Shape s) { + Rectangle2D bounds = s.getBounds2D(); + float x = (float)bounds.getX(); + float y = (float)bounds.getY(); + float w = (float)bounds.getWidth(); + float h = (float)bounds.getHeight(); + return decodeGradient((0.5f * w) + x, (0.0f * h) + y, (0.5f * w) + x, (1.0f * h) + y, + new float[] { 0.05f,0.5f,0.95f }, + new Color[] { color2, + decodeColor(color2,color3,0.5f), + color3}); + } + + private Paint decodeGradient2(Shape s) { + Rectangle2D bounds = s.getBounds2D(); + float x = (float)bounds.getX(); + float y = (float)bounds.getY(); + float w = (float)bounds.getWidth(); + float h = (float)bounds.getHeight(); + return decodeGradient((0.5f * w) + x, (0.0f * h) + y, (0.5f * w) + x, (1.0f * h) + y, + new float[] { 0.0f,0.024f,0.06f,0.276f,0.6f,0.65f,0.7f,0.856f,0.96f,0.98399997f,1.0f }, + new Color[] { (Color)componentColors[0], + decodeColor((Color)componentColors[0],(Color)componentColors[1],0.5f), + (Color)componentColors[1], + decodeColor((Color)componentColors[1],(Color)componentColors[2],0.5f), + (Color)componentColors[2], + decodeColor((Color)componentColors[2],(Color)componentColors[2],0.5f), + (Color)componentColors[2], + decodeColor((Color)componentColors[2],(Color)componentColors[3],0.5f), + (Color)componentColors[3], + decodeColor((Color)componentColors[3],(Color)componentColors[4],0.5f), + (Color)componentColors[4]}); + } + + private Paint decodeGradient3(Shape s) { + Rectangle2D bounds = s.getBounds2D(); + float x = (float)bounds.getX(); + float y = (float)bounds.getY(); + float w = (float)bounds.getWidth(); + float h = (float)bounds.getHeight(); + return decodeGradient((0.5f * w) + x, (0.0f * h) + y, (0.5f * w) + x, (1.0f * h) + y, + new float[] { 0.05f,0.5f,0.95f }, + new Color[] { color10, + decodeColor(color10,color11,0.5f), + color11}); + } + + private Paint decodeGradient4(Shape s) { + Rectangle2D bounds = s.getBounds2D(); + float x = (float)bounds.getX(); + float y = (float)bounds.getY(); + float w = (float)bounds.getWidth(); + float h = (float)bounds.getHeight(); + return decodeGradient((0.5f * w) + x, (0.0f * h) + y, (0.5f * w) + x, (1.0f * h) + y, + new float[] { 0.05f,0.5f,0.95f }, + new Color[] { color18, + decodeColor(color18,color19,0.5f), + color19}); + } + + private Paint decodeGradient5(Shape s) { + Rectangle2D bounds = s.getBounds2D(); + float x = (float)bounds.getX(); + float y = (float)bounds.getY(); + float w = (float)bounds.getWidth(); + float h = (float)bounds.getHeight(); + return decodeGradient((0.5f * w) + x, (0.0f * h) + y, (0.5f * w) + x, (1.0f * h) + y, + new float[] { 0.09f,0.52f,0.95f }, + new Color[] { color26, + decodeColor(color26,color27,0.5f), + color27}); + } + + private Paint decodeGradient6(Shape s) { + Rectangle2D bounds = s.getBounds2D(); + float x = (float)bounds.getX(); + float y = (float)bounds.getY(); + float w = (float)bounds.getWidth(); + float h = (float)bounds.getHeight(); + return decodeGradient((0.5f * w) + x, (0.0f * h) + y, (0.5f * w) + x, (1.0f * h) + y, + new float[] { 0.0f,0.03f,0.06f,0.33f,0.6f,0.65f,0.7f,0.825f,0.95f,0.975f,1.0f }, + new Color[] { color28, + decodeColor(color28,color29,0.5f), + color29, + decodeColor(color29,color30,0.5f), + color30, + decodeColor(color30,color30,0.5f), + color30, + decodeColor(color30,color31,0.5f), + color31, + decodeColor(color31,color32,0.5f), + color32}); + } + + private Paint decodeGradient7(Shape s) { + Rectangle2D bounds = s.getBounds2D(); + float x = (float)bounds.getX(); + float y = (float)bounds.getY(); + float w = (float)bounds.getWidth(); + float h = (float)bounds.getHeight(); + return decodeGradient((0.5f * w) + x, (0.0f * h) + y, (0.5f * w) + x, (1.0f * h) + y, + new float[] { 0.09f,0.52f,0.95f }, + new Color[] { color33, + decodeColor(color33,color34,0.5f), + color34}); + } + + private Paint decodeGradient8(Shape s) { + Rectangle2D bounds = s.getBounds2D(); + float x = (float)bounds.getX(); + float y = (float)bounds.getY(); + float w = (float)bounds.getWidth(); + float h = (float)bounds.getHeight(); + return decodeGradient((0.5f * w) + x, (0.0f * h) + y, (0.5f * w) + x, (1.0f * h) + y, + new float[] { 0.0f,0.03f,0.06f,0.33f,0.6f,0.65f,0.7f,0.825f,0.95f,0.975f,1.0f }, + new Color[] { (Color)componentColors[0], + decodeColor((Color)componentColors[0],(Color)componentColors[1],0.5f), + (Color)componentColors[1], + decodeColor((Color)componentColors[1],(Color)componentColors[2],0.5f), + (Color)componentColors[2], + decodeColor((Color)componentColors[2],(Color)componentColors[2],0.5f), + (Color)componentColors[2], + decodeColor((Color)componentColors[2],(Color)componentColors[3],0.5f), + (Color)componentColors[3], + decodeColor((Color)componentColors[3],(Color)componentColors[4],0.5f), + (Color)componentColors[4]}); + } + + private Paint decodeGradient9(Shape s) { + Rectangle2D bounds = s.getBounds2D(); + float x = (float)bounds.getX(); + float y = (float)bounds.getY(); + float w = (float)bounds.getWidth(); + float h = (float)bounds.getHeight(); + return decodeGradient((0.5f * w) + x, (0.0f * h) + y, (0.5f * w) + x, (1.0f * h) + y, + new float[] { 0.09f,0.52f,0.95f }, + new Color[] { color39, + decodeColor(color39,color40,0.5f), + color40}); + } + + private Paint decodeGradient10(Shape s) { + Rectangle2D bounds = s.getBounds2D(); + float x = (float)bounds.getX(); + float y = (float)bounds.getY(); + float w = (float)bounds.getWidth(); + float h = (float)bounds.getHeight(); + return decodeGradient((0.5f * w) + x, (0.0f * h) + y, (0.5f * w) + x, (1.0f * h) + y, + new float[] { 0.0f,0.024f,0.06f,0.276f,0.6f,0.65f,0.7f,0.856f,0.96f,0.98f,1.0f }, + new Color[] { (Color)componentColors[0], + decodeColor((Color)componentColors[0],(Color)componentColors[1],0.5f), + (Color)componentColors[1], + decodeColor((Color)componentColors[1],(Color)componentColors[2],0.5f), + (Color)componentColors[2], + decodeColor((Color)componentColors[2],(Color)componentColors[2],0.5f), + (Color)componentColors[2], + decodeColor((Color)componentColors[2],(Color)componentColors[3],0.5f), + (Color)componentColors[3], + decodeColor((Color)componentColors[3],(Color)componentColors[3],0.5f), + (Color)componentColors[3]}); + } + + private Paint decodeGradient11(Shape s) { + Rectangle2D bounds = s.getBounds2D(); + float x = (float)bounds.getX(); + float y = (float)bounds.getY(); + float w = (float)bounds.getWidth(); + float h = (float)bounds.getHeight(); + return decodeGradient((0.5f * w) + x, (0.0f * h) + y, (0.5f * w) + x, (1.0f * h) + y, + new float[] { 0.05f,0.5f,0.95f }, + new Color[] { color45, + decodeColor(color45,color46,0.5f), + color46}); + } + + +} Added: classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/CheckBoxMenuItemPainter.java =================================================================== --- classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/CheckBoxMenuItemPainter.java (rev 0) +++ classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/CheckBoxMenuItemPainter.java 2011-07-15 18:06:22 UTC (rev 5831) @@ -0,0 +1,163 @@ +/* + * Copyright (c) 2005, 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 + * 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. + */ +package com.sun.java.swing.plaf.nimbus; + +import com.sun.java.swing.Painter; + +import java.awt.*; +import java.awt.geom.*; +import java.awt.image.*; +import javax.swing.*; + + +final class CheckBoxMenuItemPainter extends AbstractRegionPainter { + //package private integers representing the available states that + //this painter will paint. These are used when creating a new instance + //of CheckBoxMenuItemPainter to determine which region/state is being painted + //by that instance. + static final int BACKGROUND_DISABLED = 1; + static final int BACKGROUND_ENABLED = 2; + static final int BACKGROUND_MOUSEOVER = 3; + static final int BACKGROUND_SELECTED_MOUSEOVER = 4; + static final int CHECKICON_DISABLED_SELECTED = 5; + static final int CHECKICON_ENABLED_SELECTED = 6; + static final int CHECKICON_SELECTED_MOUSEOVER = 7; + + + private int state; //refers to one of the static final ints above + private PaintContext ctx; + + //the following 4 variables are reused during the painting code of the layers + private Path2D path = new Path2D.Float(); + private Rectangle2D rect = new Rectangle2D.Float(0, 0, 0, 0); + private RoundRectangle2D roundRect = new RoundRectangle2D.Float(0, 0, 0, 0, 0, 0); + private Ellipse2D ellipse = new Ellipse2D.Float(0, 0, 0, 0); + + //All Colors used for painting are stored here. Ideally, only those colors being used + //by a particular instance of CheckBoxMenuItemPainter would be created. For the moment at least, + //however, all are created for each instance. + private Color color1 = decodeColor("nimbusSelection", 0.0f, 0.0f, 0.0f, 0); + private Color color2 = decodeColor("nimbusBlueGrey", 0.0f, -0.08983666f, -0.17647058f, 0); + private Color color3 = decodeColor("nimbusBlueGrey", 0.055555582f, -0.096827686f, -0.45882353f, 0); + private Color color4 = decodeColor("nimbusBlueGrey", 0.0f, -0.110526316f, 0.25490195f, 0); + + + //Array of current component colors, updated in each paint call + private Object[] componentColors; + + public CheckBoxMenuItemPainter(PaintContext ctx, int state) { + super(); + this.state = state; + this.ctx = ctx; + } + + @Override + protected void doPaint(Graphics2D g, JComponent c, int width, int height, Object[] extendedCacheKeys) { + //populate componentColors array with colors calculated in getExtendedCacheKeys call + componentColors = extendedCacheKeys; + //generate this entire method. Each state/bg/fg/border combo that has + //been painted gets its own KEY and paint method. + switch(state) { + case BACKGROUND_MOUSEOVER: paintBackgroundMouseOver(g); break; + case BACKGROUND_SELECTED_MOUSEOVER: paintBackgroundSelectedAndMouseOver(g); break; + case CHECKICON_DISABLED_SELECTED: paintcheckIconDisabledAndSelected(g); break; + case CHECKICON_ENABLED_SELECTED: paintcheckIconEnabledAndSelected(g); break; + case CHECKICON_SELECTED_MOUSEOVER: paintcheckIconSelectedAndMouseOver(g); break; + + } + } + + + + @Override + protected final PaintContext getPaintContext() { + return ctx; + } + + private void paintBackgroundMouseOver(Graphics2D g) { + rect = decodeRect1(); + g.setPaint(color1); + g.fill(rect); + + } + + private void paintBackgroundSelectedAndMouseOver(Graphics2D g) { + rect = decodeRect1(); + g.setPaint(color1); + g.fill(rect); + + } + + private void paintcheckIconDisabledAndSelected(Graphics2D g) { + path = decodePath1(); + g.setPaint(color2); + g.fill(path); + + } + + private void paintcheckIconEnabledAndSelected(Graphics2D g) { + path = decodePath1(); + g.setPaint(color3); + g.fill(path); + + } + + private void paintcheckIconSelectedAndMouseOver(Graphics2D g) { + path = decodePath1(); + g.setPaint(color4); + g.fill(path); + + } + + + + private Rectangle2D decodeRect1() { + rect.setRect(decodeX(1.0f), //x + decodeY(1.0f), //y + decodeX(2.0f) - decodeX(1.0f), //width + decodeY(2.0f) - decodeY(1.0f)); //height + return rect; + } + + private Path2D decodePath1() { + path.reset(); + path.moveTo(decodeX(0.0f), decodeY(1.5f)); + path.lineTo(decodeX(0.4292683f), decodeY(1.5f)); + path.lineTo(decodeX(0.7121951f), decodeY(2.4780488f)); + path.lineTo(decodeX(2.5926828f), decodeY(0.0f)); + path.lineTo(decodeX(3.0f), decodeY(0.0f)); + path.lineTo(decodeX(3.0f), decodeY(0.2f)); + path.lineTo(decodeX(2.8317075f), decodeY(0.39512196f)); + path.lineTo(decodeX(0.8f), decodeY(3.0f)); + path.lineTo(decodeX(0.5731707f), decodeY(3.0f)); + path.lineTo(decodeX(0.0f), decodeY(1.5f)); + path.closePath(); + return path; + } + + + + +} Added: classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/CheckBoxPainter.java =================================================================== --- classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/CheckBoxPainter.java (rev 0) +++ classlib6/core/src/icedtea/com/sun/java/swing/plaf/nimbus/CheckBoxPainter.java 2011-07-15 18:06:22 UTC (rev 5831) @@ -0,0 +1,636 @@ +/* + * Copyright (c) 2005, 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 + * 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. + */ +package com.sun.java.swing.plaf.nimbus; + +import com.sun.java.swing.Painter; + +import java.awt.*; +import java.awt.geom.*; +import java.awt.image.*; +import javax.swing.*; + + +final class CheckBoxPainter extends AbstractRegionPainter { + //package private integers representing the available states that + //this painter will paint. These are used when creating a new instance + //of CheckBoxPainter to determine which region/state is being painted + //by that instance. + static final int BACKGROUND_DISABLED = 1; + static final int BACKGROUND_ENABLED = 2; + static final int ICON_DISABLED = 3; + static final int ICON_ENABLED = 4; + static final int ICON_FOCUSED = 5; + static final int ICON_MOUSEOVER = 6; + static final int ICON_MOUSEOVER_FOCUSED = 7; + static final int ICON_PRESSED = 8; + static final int ICON_PRESSED_FOCUSED = 9; + static final int ICON_SELECTED = 10; + static final int ICON_SELECTED_FOCUSED = 11; + static final int ICON_PRESSED_SELECTED = 12; + static final int ICON_PRESSED_SELECTED_FOCUSED = 13; + static final int ICON_MOUSEOVER_SELECTED = 14; + static final int ICON_MOUSEOVER_SELECTED_FOCUSED = 15; + static final int ICON_DISABLED_SELECTED = 16; + + + private int state; //refers to one of the static final ints above + private PaintContext ctx; + + //the following 4 variables are reused during the painting code of the layers + private Path2D path = new Path2D.Float(); + private Rectangle2D rect = new Rectangle2D.Float(0, 0, 0, 0); + private RoundRectangle2D roundRect = new RoundRectangle2D.Float(0, 0, 0, 0, 0, 0); + private Ellipse2D ellipse = new Ellipse2D.Float(0, 0, 0, 0); + + //All Colors used for painting are stored here. Ideally, only those colors being used + //by a particular instance of CheckBoxPainter would be created. For the moment at least, + //however, all are created for each instance. + private Color color1 = decodeColor("nimbusBlueGrey", 0.0f, -0.06766917f, 0.07843137f, 0); + private Color color2 = decodeColor("nimbusBlueGrey", 0.0f, -0.06484103f, 0.027450979f, 0); + private Color color3 = decodeColor("nimbusBase", 0.032459438f, -0.60996324f, 0.36470586f, 0); + private Color color4 = decodeColor("nimbusBase", 0.02551502f, -0.5996783f, 0.3215686f, 0); + private Color color5 = decodeColor("nimbusBase", 0.032459438f, -0.59624064f, 0.34509802f, 0); + private Color color6 = decodeColor("nimbusBlueGrey", 0.0f, 0.0f, 0.0f, -89); + private Color color7 = decodeColor("nimbusBlueGrey", 0.0f, -0.05356429f, -0.12549019f, 0); + private Color color8 = decodeColor("nimbusBlueGrey", 0.0f, -0.015789472f, -0.37254903f, 0); + private Color color9 = decodeColor("nimbusBase", 0.08801502f, -0.6... [truncated message content] |
From: <ls...@us...> - 2011-07-15 18:38:57
|
Revision: 5832 http://jnode.svn.sourceforge.net/jnode/?rev=5832&view=rev Author: lsantha Date: 2011-07-15 18:38:45 +0000 (Fri, 15 Jul 2011) Log Message: ----------- Integrating OpenJDK 6 build 23. Modified Paths: -------------- classlib6/core/src/openjdk/com/com/sun/imageio/plugins/png/PNGImageReader.java classlib6/core/src/openjdk/com/com/sun/imageio/plugins/png/PNGImageWriter.java classlib6/core/src/openjdk/com/com/sun/imageio/plugins/png/PNGMetadata.java classlib6/core/src/openjdk/com/com/sun/org/apache/bcel/internal/classfile/Utility.java classlib6/core/src/openjdk/java/java/awt/AWTEvent.java classlib6/core/src/openjdk/java/java/awt/EventDispatchThread.java classlib6/core/src/openjdk/java/java/awt/MenuComponent.java classlib6/core/src/openjdk/java/java/awt/TrayIcon.java classlib6/core/src/openjdk/java/java/net/AbstractPlainDatagramSocketImpl.java classlib6/core/src/openjdk/java/java/net/AbstractPlainSocketImpl.java classlib6/core/src/openjdk/java/java/security/SignedObject.java classlib6/core/src/openjdk/java/java/sql/Timestamp.java classlib6/core/src/openjdk/javax/javax/swing/ImageIcon.java classlib6/core/src/openjdk/javax/javax/swing/Timer.java classlib6/core/src/openjdk/javax/javax/swing/TransferHandler.java classlib6/core/src/openjdk/javax/javax/xml/parsers/FactoryConfigurationError.java classlib6/core/src/openjdk/javax/javax/xml/stream/FactoryConfigurationError.java classlib6/core/src/openjdk/javax/javax/xml/transform/TransformerFactoryConfigurationError.java classlib6/core/src/openjdk/jaxws/com/sun/xml/internal/messaging/saaj/client/p2p/HttpSOAPConnection.java classlib6/core/src/openjdk/langtools/com/sun/tools/javac/code/Types.java classlib6/core/src/openjdk/langtools/com/sun/tools/javac/file/JavacFileManager.java classlib6/core/src/openjdk/langtools/com/sun/tools/javac/file/Paths.java classlib6/core/src/openjdk/sun/sun/font/FileFont.java classlib6/core/src/openjdk/sun/sun/font/TrueTypeFont.java classlib6/core/src/openjdk/sun/sun/font/Type1Font.java classlib6/core/src/openjdk/sun/sun/java2d/pipe/DrawImage.java classlib6/core/src/openjdk/sun/sun/misc/FloatingDecimal.java classlib6/core/src/openjdk/sun/sun/misc/SharedSecrets.java classlib6/core/src/openjdk/sun/sun/nio/ch/DatagramChannelImpl.java classlib6/core/src/openjdk/sun/sun/nio/ch/Net.java classlib6/core/src/openjdk/sun/sun/security/jgss/spi/GSSContextSpi.java classlib6/core/src/openjdk/sun/sun/security/provider/SeedGenerator.java classlib6/core/src/openjdk/sun/sun/security/validator/EndEntityChecker.java classlib6/core/src/openjdk/sun/sun/swing/table/DefaultTableCellHeaderRenderer.java classlib6/core/src/openjdk/svm/sun/security/provider/NativeSeedGenerator.java Added Paths: ----------- classlib6/core/src/icedtea/java/nio/ classlib6/core/src/icedtea/java/nio/channels/ classlib6/core/src/icedtea/java/nio/channels/AlreadyConnectedException.java classlib6/core/src/icedtea/java/nio/channels/AsynchronousCloseException.java classlib6/core/src/icedtea/java/nio/channels/CancelledKeyException.java classlib6/core/src/icedtea/java/nio/channels/ClosedByInterruptException.java classlib6/core/src/icedtea/java/nio/channels/ClosedChannelException.java classlib6/core/src/icedtea/java/nio/channels/ClosedSelectorException.java classlib6/core/src/icedtea/java/nio/channels/ConnectionPendingException.java classlib6/core/src/icedtea/java/nio/channels/FileLockInterruptionException.java classlib6/core/src/icedtea/java/nio/channels/IllegalBlockingModeException.java classlib6/core/src/icedtea/java/nio/channels/IllegalSelectorException.java classlib6/core/src/icedtea/java/nio/channels/NoConnectionPendingException.java classlib6/core/src/icedtea/java/nio/channels/NonReadableChannelException.java classlib6/core/src/icedtea/java/nio/channels/NonWritableChannelException.java classlib6/core/src/icedtea/java/nio/channels/NotYetBoundException.java classlib6/core/src/icedtea/java/nio/channels/NotYetConnectedException.java classlib6/core/src/icedtea/java/nio/channels/OverlappingFileLockException.java classlib6/core/src/icedtea/java/nio/channels/UnresolvedAddressException.java classlib6/core/src/icedtea/java/nio/channels/UnsupportedAddressTypeException.java classlib6/core/src/icedtea/java/nio/charset/ classlib6/core/src/icedtea/java/nio/charset/CharacterCodingException.java classlib6/core/src/icedtea/java/nio/charset/CharsetDecoder.java classlib6/core/src/icedtea/java/nio/charset/CharsetEncoder.java classlib6/core/src/icedtea/java/nio/charset/IllegalCharsetNameException.java classlib6/core/src/icedtea/java/nio/charset/UnsupportedCharsetException.java classlib6/core/src/openjdk/javax/javax/imageio/IIOException.java classlib6/core/src/openjdk/javax/javax/imageio/IIOImage.java classlib6/core/src/openjdk/javax/javax/imageio/IIOParamController.java classlib6/core/src/openjdk/javax/javax/imageio/ImageTranscoder.java classlib6/core/src/openjdk/javax/javax/imageio/package.html classlib6/core/src/openjdk/javax/javax/imageio/spi/ classlib6/core/src/openjdk/javax/javax/imageio/spi/DigraphNode.java classlib6/core/src/openjdk/javax/javax/imageio/spi/IIOServiceProvider.java classlib6/core/src/openjdk/javax/javax/imageio/spi/ImageInputStreamSpi.java classlib6/core/src/openjdk/javax/javax/imageio/spi/ImageOutputStreamSpi.java classlib6/core/src/openjdk/javax/javax/imageio/spi/ImageReaderSpi.java classlib6/core/src/openjdk/javax/javax/imageio/spi/ImageReaderWriterSpi.java classlib6/core/src/openjdk/javax/javax/imageio/spi/ImageTranscoderSpi.java classlib6/core/src/openjdk/javax/javax/imageio/spi/ImageWriterSpi.java classlib6/core/src/openjdk/javax/javax/imageio/spi/PartiallyOrderedSet.java classlib6/core/src/openjdk/javax/javax/imageio/spi/RegisterableService.java classlib6/core/src/openjdk/javax/javax/imageio/spi/package.html Removed Paths: ------------- classlib6/core/src/classpath/java/java/nio/channels/AlreadyConnectedException.java classlib6/core/src/classpath/java/java/nio/channels/AsynchronousCloseException.java classlib6/core/src/classpath/java/java/nio/channels/CancelledKeyException.java classlib6/core/src/classpath/java/java/nio/channels/ClosedByInterruptException.java classlib6/core/src/classpath/java/java/nio/channels/ClosedChannelException.java classlib6/core/src/classpath/java/java/nio/channels/ClosedSelectorException.java classlib6/core/src/classpath/java/java/nio/channels/ConnectionPendingException.java classlib6/core/src/classpath/java/java/nio/channels/FileLockInterruptionException.java classlib6/core/src/classpath/java/java/nio/channels/IllegalBlockingModeException.java classlib6/core/src/classpath/java/java/nio/channels/IllegalSelectorException.java classlib6/core/src/classpath/java/java/nio/channels/NoConnectionPendingException.java classlib6/core/src/classpath/java/java/nio/channels/NonReadableChannelException.java classlib6/core/src/classpath/java/java/nio/channels/NonWritableChannelException.java classlib6/core/src/classpath/java/java/nio/channels/NotYetBoundException.java classlib6/core/src/classpath/java/java/nio/channels/NotYetConnectedException.java classlib6/core/src/classpath/java/java/nio/channels/OverlappingFileLockException.java classlib6/core/src/classpath/java/java/nio/channels/UnresolvedAddressException.java classlib6/core/src/classpath/java/java/nio/channels/UnsupportedAddressTypeException.java classlib6/core/src/classpath/java/java/nio/charset/ classlib6/core/src/classpath/javax/javax/imageio/IIOException.java classlib6/core/src/classpath/javax/javax/imageio/IIOImage.java classlib6/core/src/classpath/javax/javax/imageio/IIOParamController.java classlib6/core/src/classpath/javax/javax/imageio/ImageTranscoder.java classlib6/core/src/classpath/javax/javax/imageio/package.html classlib6/core/src/classpath/javax/javax/imageio/spi/IIOServiceProvider.java classlib6/core/src/classpath/javax/javax/imageio/spi/ImageInputStreamSpi.java classlib6/core/src/classpath/javax/javax/imageio/spi/ImageOutputStreamSpi.java classlib6/core/src/classpath/javax/javax/imageio/spi/ImageReaderSpi.java classlib6/core/src/classpath/javax/javax/imageio/spi/ImageReaderWriterSpi.java classlib6/core/src/classpath/javax/javax/imageio/spi/ImageTranscoderSpi.java classlib6/core/src/classpath/javax/javax/imageio/spi/ImageWriterSpi.java classlib6/core/src/classpath/javax/javax/imageio/spi/RegisterableService.java classlib6/core/src/classpath/javax/javax/imageio/spi/package.html Deleted: classlib6/core/src/classpath/java/java/nio/channels/AlreadyConnectedException.java =================================================================== --- classlib6/core/src/classpath/java/java/nio/channels/AlreadyConnectedException.java 2011-07-15 18:06:22 UTC (rev 5831) +++ classlib6/core/src/classpath/java/java/nio/channels/AlreadyConnectedException.java 2011-07-15 18:38:45 UTC (rev 5832) @@ -1,50 +0,0 @@ -/* AlreadyConnectedException.java -- - Copyright (C) 2002 Free Software Foundation, Inc. - -This file is part of GNU Classpath. - -GNU Classpath is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2, or (at your option) -any later version. - -GNU Classpath 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 for more details. - -You should have received a copy of the GNU General Public License -along with GNU Classpath; see the file COPYING. If not, write to the -Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -02110-1301 USA. - -Linking this library statically or dynamically with other modules is -making a combined work based on this library. Thus, the terms and -conditions of the GNU General Public License cover the whole -combination. - -As a special exception, the copyright holders of this library give you -permission to link this library with independent modules to produce an -executable, regardless of the license terms of these independent -modules, and to copy and distribute the resulting executable under -terms of your choice, provided that you also meet, for each linked -independent module, the terms and conditions of the license of that -module. An independent module is a module which is not derived from -or based on this library. If you modify this library, you may extend -this exception to your version of the library, but you are not -obligated to do so. If you do not wish to do so, delete this -exception statement from your version. */ - -package java.nio.channels; - -public class AlreadyConnectedException extends IllegalStateException -{ - private static final long serialVersionUID = - 7331895245053773357L; - - /** - * Creates the exception - */ - public AlreadyConnectedException() - { - } -} Deleted: classlib6/core/src/classpath/java/java/nio/channels/AsynchronousCloseException.java =================================================================== --- classlib6/core/src/classpath/java/java/nio/channels/AsynchronousCloseException.java 2011-07-15 18:06:22 UTC (rev 5831) +++ classlib6/core/src/classpath/java/java/nio/channels/AsynchronousCloseException.java 2011-07-15 18:38:45 UTC (rev 5832) @@ -1,55 +0,0 @@ -/* AsynchronousCloseException.java -- - Copyright (C) 2002 Free Software Foundation, Inc. - -This file is part of GNU Classpath. - -GNU Classpath is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2, or (at your option) -any later version. - -GNU Classpath 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 for more details. - -You should have received a copy of the GNU General Public License -along with GNU Classpath; see the file COPYING. If not, write to the -Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -02110-1301 USA. - -Linking this library statically or dynamically with other modules is -making a combined work based on this library. Thus, the terms and -conditions of the GNU General Public License cover the whole -combination. - -As a special exception, the copyright holders of this library give you -permission to link this library with independent modules to produce an -executable, regardless of the license terms of these independent -modules, and to copy and distribute the resulting executable under -terms of your choice, provided that you also meet, for each linked -independent module, the terms and conditions of the license of that -module. An independent module is a module which is not derived from -or based on this library. If you modify this library, you may extend -this exception to your version of the library, but you are not -obligated to do so. If you do not wish to do so, delete this -exception statement from your version. */ - -package java.nio.channels; - - -/** - * @author Michael Koch - * @since 1.4 - */ -public class AsynchronousCloseException extends ClosedChannelException -{ - private static final long serialVersionUID = 6891178312432313966L; - - /** - * Creates the exception - */ - public AsynchronousCloseException() - { - } -} Deleted: classlib6/core/src/classpath/java/java/nio/channels/CancelledKeyException.java =================================================================== --- classlib6/core/src/classpath/java/java/nio/channels/CancelledKeyException.java 2011-07-15 18:06:22 UTC (rev 5831) +++ classlib6/core/src/classpath/java/java/nio/channels/CancelledKeyException.java 2011-07-15 18:38:45 UTC (rev 5832) @@ -1,55 +0,0 @@ -/* CancelledKeyException.java -- - Copyright (C) 2002 Free Software Foundation, Inc. - -This file is part of GNU Classpath. - -GNU Classpath is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2, or (at your option) -any later version. - -GNU Classpath 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 for more details. - -You should have received a copy of the GNU General Public License -along with GNU Classpath; see the file COPYING. If not, write to the -Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -02110-1301 USA. - -Linking this library statically or dynamically with other modules is -making a combined work based on this library. Thus, the terms and -conditions of the GNU General Public License cover the whole -combination. - -As a special exception, the copyright holders of this library give you -permission to link this library with independent modules to produce an -executable, regardless of the license terms of these independent -modules, and to copy and distribute the resulting executable under -terms of your choice, provided that you also meet, for each linked -independent module, the terms and conditions of the license of that -module. An independent module is a module which is not derived from -or based on this library. If you modify this library, you may extend -this exception to your version of the library, but you are not -obligated to do so. If you do not wish to do so, delete this -exception statement from your version. */ - -package java.nio.channels; - - -/** - * @author Michael Koch - * @since 1.4 - */ -public class CancelledKeyException extends IllegalStateException -{ - private static final long serialVersionUID = - 8438032138028814268L; - - /** - * Creates the exception - */ - public CancelledKeyException() - { - } -} Deleted: classlib6/core/src/classpath/java/java/nio/channels/ClosedByInterruptException.java =================================================================== --- classlib6/core/src/classpath/java/java/nio/channels/ClosedByInterruptException.java 2011-07-15 18:06:22 UTC (rev 5831) +++ classlib6/core/src/classpath/java/java/nio/channels/ClosedByInterruptException.java 2011-07-15 18:38:45 UTC (rev 5832) @@ -1,55 +0,0 @@ -/* ClosedByInterruptException.java -- - Copyright (C) 2002 Free Software Foundation, Inc. - -This file is part of GNU Classpath. - -GNU Classpath is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2, or (at your option) -any later version. - -GNU Classpath 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 for more details. - -You should have received a copy of the GNU General Public License -along with GNU Classpath; see the file COPYING. If not, write to the -Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -02110-1301 USA. - -Linking this library statically or dynamically with other modules is -making a combined work based on this library. Thus, the terms and -conditions of the GNU General Public License cover the whole -combination. - -As a special exception, the copyright holders of this library give you -permission to link this library with independent modules to produce an -executable, regardless of the license terms of these independent -modules, and to copy and distribute the resulting executable under -terms of your choice, provided that you also meet, for each linked -independent module, the terms and conditions of the license of that -module. An independent module is a module which is not derived from -or based on this library. If you modify this library, you may extend -this exception to your version of the library, but you are not -obligated to do so. If you do not wish to do so, delete this -exception statement from your version. */ - -package java.nio.channels; - - -/** - * @author Michael Koch - * @since 1.4 - */ -public class ClosedByInterruptException extends AsynchronousCloseException -{ - private static final long serialVersionUID = - 4488191543534286750L; - - /** - * Creates the exception - */ - public ClosedByInterruptException() - { - } -} Deleted: classlib6/core/src/classpath/java/java/nio/channels/ClosedChannelException.java =================================================================== --- classlib6/core/src/classpath/java/java/nio/channels/ClosedChannelException.java 2011-07-15 18:06:22 UTC (rev 5831) +++ classlib6/core/src/classpath/java/java/nio/channels/ClosedChannelException.java 2011-07-15 18:38:45 UTC (rev 5832) @@ -1,57 +0,0 @@ -/* ClosedChannelException.java -- - Copyright (C) 2002 Free Software Foundation, Inc. - -This file is part of GNU Classpath. - -GNU Classpath is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2, or (at your option) -any later version. - -GNU Classpath 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 for more details. - -You should have received a copy of the GNU General Public License -along with GNU Classpath; see the file COPYING. If not, write to the -Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -02110-1301 USA. - -Linking this library statically or dynamically with other modules is -making a combined work based on this library. Thus, the terms and -conditions of the GNU General Public License cover the whole -combination. - -As a special exception, the copyright holders of this library give you -permission to link this library with independent modules to produce an -executable, regardless of the license terms of these independent -modules, and to copy and distribute the resulting executable under -terms of your choice, provided that you also meet, for each linked -independent module, the terms and conditions of the license of that -module. An independent module is a module which is not derived from -or based on this library. If you modify this library, you may extend -this exception to your version of the library, but you are not -obligated to do so. If you do not wish to do so, delete this -exception statement from your version. */ - -package java.nio.channels; - -import java.io.IOException; - - -/** - * @author Michael Koch - * @since 1.4 - */ -public class ClosedChannelException extends IOException -{ - private static final long serialVersionUID = 882777185433553857L; - - /** - * Creates the exception - */ - public ClosedChannelException() - { - } -} Deleted: classlib6/core/src/classpath/java/java/nio/channels/ClosedSelectorException.java =================================================================== --- classlib6/core/src/classpath/java/java/nio/channels/ClosedSelectorException.java 2011-07-15 18:06:22 UTC (rev 5831) +++ classlib6/core/src/classpath/java/java/nio/channels/ClosedSelectorException.java 2011-07-15 18:38:45 UTC (rev 5832) @@ -1,55 +0,0 @@ -/* ClosedSelectorException.java -- - Copyright (C) 2002 Free Software Foundation, Inc. - -This file is part of GNU Classpath. - -GNU Classpath is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2, or (at your option) -any later version. - -GNU Classpath 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 for more details. - -You should have received a copy of the GNU General Public License -along with GNU Classpath; see the file COPYING. If not, write to the -Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -02110-1301 USA. - -Linking this library statically or dynamically with other modules is -making a combined work based on this library. Thus, the terms and -conditions of the GNU General Public License cover the whole -combination. - -As a special exception, the copyright holders of this library give you -permission to link this library with independent modules to produce an -executable, regardless of the license terms of these independent -modules, and to copy and distribute the resulting executable under -terms of your choice, provided that you also meet, for each linked -independent module, the terms and conditions of the license of that -module. An independent module is a module which is not derived from -or based on this library. If you modify this library, you may extend -this exception to your version of the library, but you are not -obligated to do so. If you do not wish to do so, delete this -exception statement from your version. */ - -package java.nio.channels; - - -/** - * @author Michael Koch - * @since 1.4 - */ -public class ClosedSelectorException extends IllegalStateException -{ - private static final long serialVersionUID = 6466297122317847835L; - - /** - * Creates the exception - */ - public ClosedSelectorException() - { - } -} Deleted: classlib6/core/src/classpath/java/java/nio/channels/ConnectionPendingException.java =================================================================== --- classlib6/core/src/classpath/java/java/nio/channels/ConnectionPendingException.java 2011-07-15 18:06:22 UTC (rev 5831) +++ classlib6/core/src/classpath/java/java/nio/channels/ConnectionPendingException.java 2011-07-15 18:38:45 UTC (rev 5832) @@ -1,55 +0,0 @@ -/* ConnectionPendingException.java -- - Copyright (C) 2002 Free Software Foundation, Inc. - -This file is part of GNU Classpath. - -GNU Classpath is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2, or (at your option) -any later version. - -GNU Classpath 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 for more details. - -You should have received a copy of the GNU General Public License -along with GNU Classpath; see the file COPYING. If not, write to the -Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -02110-1301 USA. - -Linking this library statically or dynamically with other modules is -making a combined work based on this library. Thus, the terms and -conditions of the GNU General Public License cover the whole -combination. - -As a special exception, the copyright holders of this library give you -permission to link this library with independent modules to produce an -executable, regardless of the license terms of these independent -modules, and to copy and distribute the resulting executable under -terms of your choice, provided that you also meet, for each linked -independent module, the terms and conditions of the license of that -module. An independent module is a module which is not derived from -or based on this library. If you modify this library, you may extend -this exception to your version of the library, but you are not -obligated to do so. If you do not wish to do so, delete this -exception statement from your version. */ - -package java.nio.channels; - - -/** - * @author Michael Koch - * @since 1.4 - */ -public class ConnectionPendingException extends IllegalStateException -{ - private static final long serialVersionUID = 2008393366501760879L; - - /** - * Creates the exception - */ - public ConnectionPendingException() - { - } -} Deleted: classlib6/core/src/classpath/java/java/nio/channels/FileLockInterruptionException.java =================================================================== --- classlib6/core/src/classpath/java/java/nio/channels/FileLockInterruptionException.java 2011-07-15 18:06:22 UTC (rev 5831) +++ classlib6/core/src/classpath/java/java/nio/channels/FileLockInterruptionException.java 2011-07-15 18:38:45 UTC (rev 5832) @@ -1,57 +0,0 @@ -/* FileLockInterruptionException.java -- - Copyright (C) 2002 Free Software Foundation, Inc. - -This file is part of GNU Classpath. - -GNU Classpath is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2, or (at your option) -any later version. - -GNU Classpath 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 for more details. - -You should have received a copy of the GNU General Public License -along with GNU Classpath; see the file COPYING. If not, write to the -Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -02110-1301 USA. - -Linking this library statically or dynamically with other modules is -making a combined work based on this library. Thus, the terms and -conditions of the GNU General Public License cover the whole -combination. - -As a special exception, the copyright holders of this library give you -permission to link this library with independent modules to produce an -executable, regardless of the license terms of these independent -modules, and to copy and distribute the resulting executable under -terms of your choice, provided that you also meet, for each linked -independent module, the terms and conditions of the license of that -module. An independent module is a module which is not derived from -or based on this library. If you modify this library, you may extend -this exception to your version of the library, but you are not -obligated to do so. If you do not wish to do so, delete this -exception statement from your version. */ - -package java.nio.channels; - -import java.io.IOException; - - -/** - * @author Michael Koch - * @since 1.4 - */ -public class FileLockInterruptionException extends IOException -{ - private static final long serialVersionUID = 7104080643653532383L; - - /** - * Creates the exception - */ - public FileLockInterruptionException() - { - } -} Deleted: classlib6/core/src/classpath/java/java/nio/channels/IllegalBlockingModeException.java =================================================================== --- classlib6/core/src/classpath/java/java/nio/channels/IllegalBlockingModeException.java 2011-07-15 18:06:22 UTC (rev 5831) +++ classlib6/core/src/classpath/java/java/nio/channels/IllegalBlockingModeException.java 2011-07-15 18:38:45 UTC (rev 5832) @@ -1,59 +0,0 @@ -/* IllegalBlockingModeException.java -- - Copyright (C) 2002, 2005 Free Software Foundation, Inc. - -This file is part of GNU Classpath. - -GNU Classpath is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2, or (at your option) -any later version. - -GNU Classpath 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 for more details. - -You should have received a copy of the GNU General Public License -along with GNU Classpath; see the file COPYING. If not, write to the -Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -02110-1301 USA. - -Linking this library statically or dynamically with other modules is -making a combined work based on this library. Thus, the terms and -conditions of the GNU General Public License cover the whole -combination. - -As a special exception, the copyright holders of this library give you -permission to link this library with independent modules to produce an -executable, regardless of the license terms of these independent -modules, and to copy and distribute the resulting executable under -terms of your choice, provided that you also meet, for each linked -independent module, the terms and conditions of the license of that -module. An independent module is a module which is not derived from -or based on this library. If you modify this library, you may extend -this exception to your version of the library, but you are not -obligated to do so. If you do not wish to do so, delete this -exception statement from your version. */ - -package java.nio.channels; - - -/** - * @author Michael Koch (kon...@gm...) - * @since 1.4 - * - * Written using JDK 1.4.1 Online API from Sun - * Status: JDK 1.4 complete - */ -public class IllegalBlockingModeException extends IllegalStateException -{ - private static final long serialVersionUID = - 3335774961855590474L; - - /** - * Creates the exception - */ - public IllegalBlockingModeException() - { - super(); - } -} Deleted: classlib6/core/src/classpath/java/java/nio/channels/IllegalSelectorException.java =================================================================== --- classlib6/core/src/classpath/java/java/nio/channels/IllegalSelectorException.java 2011-07-15 18:06:22 UTC (rev 5831) +++ classlib6/core/src/classpath/java/java/nio/channels/IllegalSelectorException.java 2011-07-15 18:38:45 UTC (rev 5832) @@ -1,55 +0,0 @@ -/* IllegalSelectorException.java -- - Copyright (C) 2002 Free Software Foundation, Inc. - -This file is part of GNU Classpath. - -GNU Classpath is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2, or (at your option) -any later version. - -GNU Classpath 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 for more details. - -You should have received a copy of the GNU General Public License -along with GNU Classpath; see the file COPYING. If not, write to the -Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -02110-1301 USA. - -Linking this library statically or dynamically with other modules is -making a combined work based on this library. Thus, the terms and -conditions of the GNU General Public License cover the whole -combination. - -As a special exception, the copyright holders of this library give you -permission to link this library with independent modules to produce an -executable, regardless of the license terms of these independent -modules, and to copy and distribute the resulting executable under -terms of your choice, provided that you also meet, for each linked -independent module, the terms and conditions of the license of that -module. An independent module is a module which is not derived from -or based on this library. If you modify this library, you may extend -this exception to your version of the library, but you are not -obligated to do so. If you do not wish to do so, delete this -exception statement from your version. */ - -package java.nio.channels; - - -/** - * @author Michael Koch - * @since 1.4 - */ -public class IllegalSelectorException extends IllegalArgumentException -{ - private static final long serialVersionUID = - 8406323347253320987L; - - /** - * Creates the exception - */ - public IllegalSelectorException() - { - } -} Deleted: classlib6/core/src/classpath/java/java/nio/channels/NoConnectionPendingException.java =================================================================== --- classlib6/core/src/classpath/java/java/nio/channels/NoConnectionPendingException.java 2011-07-15 18:06:22 UTC (rev 5831) +++ classlib6/core/src/classpath/java/java/nio/channels/NoConnectionPendingException.java 2011-07-15 18:38:45 UTC (rev 5832) @@ -1,55 +0,0 @@ -/* NoConnectionPendingException.java -- - Copyright (C) 2002 Free Software Foundation, Inc. - -This file is part of GNU Classpath. - -GNU Classpath is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2, or (at your option) -any later version. - -GNU Classpath 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 for more details. - -You should have received a copy of the GNU General Public License -along with GNU Classpath; see the file COPYING. If not, write to the -Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -02110-1301 USA. - -Linking this library statically or dynamically with other modules is -making a combined work based on this library. Thus, the terms and -conditions of the GNU General Public License cover the whole -combination. - -As a special exception, the copyright holders of this library give you -permission to link this library with independent modules to produce an -executable, regardless of the license terms of these independent -modules, and to copy and distribute the resulting executable under -terms of your choice, provided that you also meet, for each linked -independent module, the terms and conditions of the license of that -module. An independent module is a module which is not derived from -or based on this library. If you modify this library, you may extend -this exception to your version of the library, but you are not -obligated to do so. If you do not wish to do so, delete this -exception statement from your version. */ - -package java.nio.channels; - - -/** - * @author Michael Koch - * @since 1.4 - */ -public class NoConnectionPendingException extends IllegalStateException -{ - private static final long serialVersionUID = - 8296561183633134743L; - - /** - * Creates the exception - */ - public NoConnectionPendingException() - { - } -} Deleted: classlib6/core/src/classpath/java/java/nio/channels/NonReadableChannelException.java =================================================================== --- classlib6/core/src/classpath/java/java/nio/channels/NonReadableChannelException.java 2011-07-15 18:06:22 UTC (rev 5831) +++ classlib6/core/src/classpath/java/java/nio/channels/NonReadableChannelException.java 2011-07-15 18:38:45 UTC (rev 5832) @@ -1,55 +0,0 @@ -/* NonReadableChannelException.java -- - Copyright (C) 2002 Free Software Foundation, Inc. - -This file is part of GNU Classpath. - -GNU Classpath is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2, or (at your option) -any later version. - -GNU Classpath 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 for more details. - -You should have received a copy of the GNU General Public License -along with GNU Classpath; see the file COPYING. If not, write to the -Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -02110-1301 USA. - -Linking this library statically or dynamically with other modules is -making a combined work based on this library. Thus, the terms and -conditions of the GNU General Public License cover the whole -combination. - -As a special exception, the copyright holders of this library give you -permission to link this library with independent modules to produce an -executable, regardless of the license terms of these independent -modules, and to copy and distribute the resulting executable under -terms of your choice, provided that you also meet, for each linked -independent module, the terms and conditions of the license of that -module. An independent module is a module which is not derived from -or based on this library. If you modify this library, you may extend -this exception to your version of the library, but you are not -obligated to do so. If you do not wish to do so, delete this -exception statement from your version. */ - -package java.nio.channels; - - -/** - * @author Michael Koch - * @since 1.4 - */ -public class NonReadableChannelException extends IllegalStateException -{ - private static final long serialVersionUID = - 3200915679294993514L; - - /** - * Creates the exception - */ - public NonReadableChannelException() - { - } -} Deleted: classlib6/core/src/classpath/java/java/nio/channels/NonWritableChannelException.java =================================================================== --- classlib6/core/src/classpath/java/java/nio/channels/NonWritableChannelException.java 2011-07-15 18:06:22 UTC (rev 5831) +++ classlib6/core/src/classpath/java/java/nio/channels/NonWritableChannelException.java 2011-07-15 18:38:45 UTC (rev 5832) @@ -1,55 +0,0 @@ -/* NonWritableChannelException.java -- - Copyright (C) 2002 Free Software Foundation, Inc. - -This file is part of GNU Classpath. - -GNU Classpath is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2, or (at your option) -any later version. - -GNU Classpath 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 for more details. - -You should have received a copy of the GNU General Public License -along with GNU Classpath; see the file COPYING. If not, write to the -Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -02110-1301 USA. - -Linking this library statically or dynamically with other modules is -making a combined work based on this library. Thus, the terms and -conditions of the GNU General Public License cover the whole -combination. - -As a special exception, the copyright holders of this library give you -permission to link this library with independent modules to produce an -executable, regardless of the license terms of these independent -modules, and to copy and distribute the resulting executable under -terms of your choice, provided that you also meet, for each linked -independent module, the terms and conditions of the license of that -module. An independent module is a module which is not derived from -or based on this library. If you modify this library, you may extend -this exception to your version of the library, but you are not -obligated to do so. If you do not wish to do so, delete this -exception statement from your version. */ - -package java.nio.channels; - - -/** - * @author Michael Koch - * @since 1.4 - */ -public class NonWritableChannelException extends IllegalStateException -{ - private static final long serialVersionUID = - 7071230488279011621L; - - /** - * Creates the exception - */ - public NonWritableChannelException() - { - } -} Deleted: classlib6/core/src/classpath/java/java/nio/channels/NotYetBoundException.java =================================================================== --- classlib6/core/src/classpath/java/java/nio/channels/NotYetBoundException.java 2011-07-15 18:06:22 UTC (rev 5831) +++ classlib6/core/src/classpath/java/java/nio/channels/NotYetBoundException.java 2011-07-15 18:38:45 UTC (rev 5832) @@ -1,55 +0,0 @@ -/* NotYetBoundException.java -- - Copyright (C) 2002 Free Software Foundation, Inc. - -This file is part of GNU Classpath. - -GNU Classpath is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2, or (at your option) -any later version. - -GNU Classpath 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 for more details. - -You should have received a copy of the GNU General Public License -along with GNU Classpath; see the file COPYING. If not, write to the -Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -02110-1301 USA. - -Linking this library statically or dynamically with other modules is -making a combined work based on this library. Thus, the terms and -conditions of the GNU General Public License cover the whole -combination. - -As a special exception, the copyright holders of this library give you -permission to link this library with independent modules to produce an -executable, regardless of the license terms of these independent -modules, and to copy and distribute the resulting executable under -terms of your choice, provided that you also meet, for each linked -independent module, the terms and conditions of the license of that -module. An independent module is a module which is not derived from -or based on this library. If you modify this library, you may extend -this exception to your version of the library, but you are not -obligated to do so. If you do not wish to do so, delete this -exception statement from your version. */ - -package java.nio.channels; - - -/** - * @author Michael Koch - * @since 1.4 - */ -public class NotYetBoundException extends IllegalStateException -{ - private static final long serialVersionUID = 4640999303950202242L; - - /** - * Creates the exception - */ - public NotYetBoundException() - { - } -} Deleted: classlib6/core/src/classpath/java/java/nio/channels/NotYetConnectedException.java =================================================================== --- classlib6/core/src/classpath/java/java/nio/channels/NotYetConnectedException.java 2011-07-15 18:06:22 UTC (rev 5831) +++ classlib6/core/src/classpath/java/java/nio/channels/NotYetConnectedException.java 2011-07-15 18:38:45 UTC (rev 5832) @@ -1,55 +0,0 @@ -/* NotYetConnectedException.java -- - Copyright (C) 2002 Free Software Foundation, Inc. - -This file is part of GNU Classpath. - -GNU Classpath is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2, or (at your option) -any later version. - -GNU Classpath 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 for more details. - -You should have received a copy of the GNU General Public License -along with GNU Classpath; see the file COPYING. If not, write to the -Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -02110-1301 USA. - -Linking this library statically or dynamically with other modules is -making a combined work based on this library. Thus, the terms and -conditions of the GNU General Public License cover the whole -combination. - -As a special exception, the copyright holders of this library give you -permission to link this library with independent modules to produce an -executable, regardless of the license terms of these independent -modules, and to copy and distribute the resulting executable under -terms of your choice, provided that you also meet, for each linked -independent module, the terms and conditions of the license of that -module. An independent module is a module which is not derived from -or based on this library. If you modify this library, you may extend -this exception to your version of the library, but you are not -obligated to do so. If you do not wish to do so, delete this -exception statement from your version. */ - -package java.nio.channels; - - -/** - * @author Michael Koch - * @since 1.4 - */ -public class NotYetConnectedException extends IllegalStateException -{ - private static final long serialVersionUID = 4697316551909513464L; - - /** - * Creates the exception - */ - public NotYetConnectedException() - { - } -} Deleted: classlib6/core/src/classpath/java/java/nio/channels/OverlappingFileLockException.java =================================================================== --- classlib6/core/src/classpath/java/java/nio/channels/OverlappingFileLockException.java 2011-07-15 18:06:22 UTC (rev 5831) +++ classlib6/core/src/classpath/java/java/nio/channels/OverlappingFileLockException.java 2011-07-15 18:38:45 UTC (rev 5832) @@ -1,55 +0,0 @@ -/* OverlappingFileLockException.java -- - Copyright (C) 2002 Free Software Foundation, Inc. - -This file is part of GNU Classpath. - -GNU Classpath is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2, or (at your option) -any later version. - -GNU Classpath 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 for more details. - -You should have received a copy of the GNU General Public License -along with GNU Classpath; see the file COPYING. If not, write to the -Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -02110-1301 USA. - -Linking this library statically or dynamically with other modules is -making a combined work based on this library. Thus, the terms and -conditions of the GNU General Public License cover the whole -combination. - -As a special exception, the copyright holders of this library give you -permission to link this library with independent modules to produce an -executable, regardless of the license terms of these independent -modules, and to copy and distribute the resulting executable under -terms of your choice, provided that you also meet, for each linked -independent module, the terms and conditions of the license of that -module. An independent module is a module which is not derived from -or based on this library. If you modify this library, you may extend -this exception to your version of the library, but you are not -obligated to do so. If you do not wish to do so, delete this -exception statement from your version. */ - -package java.nio.channels; - - -/** - * @author Michael Koch - * @since 1.4 - */ -public class OverlappingFileLockException extends IllegalStateException -{ - private static final long serialVersionUID = 2047812138163068433L; - - /** - * Creates the exception - */ - public OverlappingFileLockException() - { - } -} Deleted: classlib6/core/src/classpath/java/java/nio/channels/UnresolvedAddressException.java =================================================================== --- classlib6/core/src/classpath/java/java/nio/channels/UnresolvedAddressException.java 2011-07-15 18:06:22 UTC (rev 5831) +++ classlib6/core/src/classpath/java/java/nio/channels/UnresolvedAddressException.java 2011-07-15 18:38:45 UTC (rev 5832) @@ -1,55 +0,0 @@ -/* UnresolvedAddressException.java -- - Copyright (C) 2002 Free Software Foundation, Inc. - -This file is part of GNU Classpath. - -GNU Classpath is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2, or (at your option) -any later version. - -GNU Classpath 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 for more details. - -You should have received a copy of the GNU General Public License -along with GNU Classpath; see the file COPYING. If not, write to the -Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -02110-1301 USA. - -Linking this library statically or dynamically with other modules is -making a combined work based on this library. Thus, the terms and -conditions of the GNU General Public License cover the whole -combination. - -As a special exception, the copyright holders of this library give you -permission to link this library with independent modules to produce an -executable, regardless of the license terms of these independent -modules, and to copy and distribute the resulting executable under -terms of your choice, provided that you also meet, for each linked -independent module, the terms and conditions of the license of that -module. An independent module is a module which is not derived from -or based on this library. If you modify this library, you may extend -this exception to your version of the library, but you are not -obligated to do so. If you do not wish to do so, delete this -exception statement from your version. */ - -package java.nio.channels; - - -/** - * @author Michael Koch - * @since 1.4 - */ -public class UnresolvedAddressException extends IllegalArgumentException -{ - private static final long serialVersionUID = 6136959093620794148L; - - /** - * Creates the exception - */ - public UnresolvedAddressException() - { - } -} Deleted: classlib6/core/src/classpath/java/java/nio/channels/UnsupportedAddressTypeException.java =================================================================== --- classlib6/core/src/classpath/java/java/nio/channels/UnsupportedAddressTypeException.java 2011-07-15 18:06:22 UTC (rev 5831) +++ classlib6/core/src/classpath/java/java/nio/channels/UnsupportedAddressTypeException.java 2011-07-15 18:38:45 UTC (rev 5832) @@ -1,55 +0,0 @@ -/* UnsupportedAddressTypeException.java -- - Copyright (C) 2002 Free Software Foundation, Inc. - -This file is part of GNU Classpath. - -GNU Classpath is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2, or (at your option) -any later version. - -GNU Classpath 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 for more details. - -You should have received a copy of the GNU General Public License -along with GNU Classpath; see the file COPYING. If not, write to the -Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -02110-1301 USA. - -Linking this library statically or dynamically with other modules is -making a combined work based on this library. Thus, the terms and -conditions of the GNU General Public License cover the whole -combination. - -As a special exception, the copyright holders of this library give you -permission to link this library with independent modules to produce an -executable, regardless of the license terms of these independent -modules, and to copy and distribute the resulting executable under -terms of your choice, provided that you also meet, for each linked -independent module, the terms and conditions of the license of that -module. An independent module is a module which is not derived from -or based on this library. If you modify this library, you may extend -this exception to your version of the library, but you are not -obligated to do so. If you do not wish to do so, delete this -exception statement from your version. */ - -package java.nio.channels; - - -/** - * @author Michael Koch - * @since 1.4 - */ -public class UnsupportedAddressTypeException extends IllegalArgumentException -{ - private static final long serialVersionUID = - 2964323842829700493L; - - /** - * Creates the exception - */ - public UnsupportedAddressTypeException() - { - } -} Deleted: classlib6/core/src/classpath/javax/javax/imageio/IIOException.java =================================================================== --- classlib6/core/src/classpath/javax/javax/imageio/IIOException.java 2011-07-15 18:06:22 UTC (rev 5831) +++ classlib6/core/src/classpath/javax/javax/imageio/IIOException.java 2011-07-15 18:38:45 UTC (rev 5832) @@ -1,70 +0,0 @@ -/* IIOException.java -- - Copyright (C) 2004, 2005 Free Software Foundation, Inc. - -This file is part of GNU Classpath. - -GNU Classpath is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2, or (at your option) -any later version. - -GNU Classpath 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 for more details. - -You should have received a copy of the GNU General Public License -along with GNU Classpath; see the file COPYING. If not, write to the -Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -02110-1301 USA. - -Linking this library statically or dynamically with other modules is -making a combined work based on this library. Thus, the terms and -conditions of the GNU General Public License cover the whole -combination. - -As a special exception, the copyright holders of this library give you -permission to link this library with independent modules to produce an -executable, regardless of the license terms of these independent -modules, and to copy and distribute the resulting executable under -terms of your choice, provided that you also meet, for each linked -independent module, the terms and conditions of the license of that -module. An independent module is a module which is not derived from -or based on this library. If you modify this library, you may extend -this exception to your version of the library, but you are not -obligated to do so. If you do not wish to do so, delete this -exception statement from your version. */ - -package javax.imageio; - -import java.io.IOException; - -/** - * A runtime exception to indicate image reading and writing failures. - * - * @author Michael Koch (kon...@gm...) - */ -public class IIOException extends IOException -{ - /** - * Create an exception with a descriptive error message. - * - * @param message The descriptive error message. - */ - public IIOException(String message) - { - super(message); - } - - /** - * Create an exception with a descriptive error message. - * - * @param message The descriptive error message. - * @param cause The cause for this exception. - */ - public IIOException(String message, Throwable cause) - { - super(message); - initCause(cause); - } -} Deleted: classlib6/core/src/classpath/javax/javax/imageio/IIOImage.java =================================================================== --- classlib6/core/src/classpath/javax/javax/imageio/IIOImage.java 2011-07-15 18:06:22 UTC (rev 5831) +++ classlib6/core/src/classpath/javax/javax/imageio/IIOImage.java 2011-07-15 18:38:45 UTC (rev 5832) @@ -1,268 +0,0 @@ -/* IIOImage.java -- - Copyright (C) 2003 Free Software Foundation, Inc. - -This file is part of GNU Classpath. - -GNU Classpath is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2, or (at your option) -any later version. - -GNU Classpath 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 for more details. - -You should have received a copy of the GNU General Public License -along with GNU Classpath; see the file COPYING. If not, write to the -Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -02110-1301 USA. - -Linking this library statically or dynamically with other modules is -making a combined work based on this library. Thus, the terms and -conditions of the GNU General Public License cover the whole -combination. - -As a special exception, the copyright holders of this library give you -permission to link this library with independent modules to produce an -executable, regardless of the license terms of these independent -modules, and to copy and distribute the resulting executable under -terms of your choice, provided that you also meet, for each linked -independent module, the terms and conditions of the license of that -module. An independent module is a module which is not derived from -or based on this library. If you modify this library, you may extend -this exception to your version of the library, but you are not -obligated to do so. If you do not wish to do so, delete this -exception statement from your version. */ - - -package javax.imageio; - -import java.awt.image.BufferedImage; -import java.awt.image.Raster; -import java.awt.image.RenderedImage; -import java.util.List; - -import javax.imageio.metadata.IIOMetadata; - -/** - * IIOImage is a container class for components of an image file that - * stores image data, image metadata and thumbnails. - * - * The image data can be either a RenderedImage or a Raster but not - * both. Image readers that produce IIOImages will always produce - * BufferedImages from the RenderedImage field. Image writers that - * accept IIOImages will always accept RenderedImages and may - * optionally accept Rasters. - * - * @author Thomas Fitzsimmons (fi...@re...) - */ -public class IIOImage -{ - /** - * Image data as a RenderedImage. null if this IIOImage uses the - * Raster representation. - */ - protected RenderedImage image; - - /** - * Image metadata. - */ - protected IIOMetadata metadata; - - /** - * Image data as a Raster. null if this IIOImage uses the - * RenderedImage representation. - */ - protected Raster raster; - - /** - * A list of BufferedImage thumbnails of this image. - */ - protected List<? extends Buffered... [truncated message content] |