| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/lang/management/BeanImpl.java:
(cacheMBeanInfo(MBeanInfo)): Override given MBeanInfo
with open variant.
(getCachedMBeanInfo()): Return open variant.
(getMBeanInfo()): Likewise.
(getTypeFromClass(Class)): Implemented.
(translateSignature(MBeanParameterInfo)): Likewise.
(translate(String)): Likewise.
* javax/management/StandardMBean.java:
(getMBeanInfo()): Return attribute names with capital letters,
as in docs for java.lang.management.ManagementFactory, and
ensure descriptions are not "".
* javax/management/openmbean/OpenMBeanConstructorInfoSupport.java,
* javax/management/openmbean/OpenMBeanInfoSupport.java,
* javax/management/openmbean/OpenMBeanOperationInfoSupport.java:
(toString()): Use Arrays.toString().
* javax/management/openmbean/OpenMBeanParameterInfoSupport.java:
(OpenMBeanParameterInfoSupport(String, String, OpenType)):
Set open type here rather than in other constructors.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/security/key/dss/DSSKey.java: Updated documentation.
(hasInheritedParameters): New method.
(equals): Updated documentation.
Take into consideration the outcome of hasInheritedParameters invocation.
(toString): Call hasInheritedParameters and adjust the result accordingly.
* gnu/java/security/key/dss/DSSKeyPairX509Codec.java (encodePublicKey):
Updated documentation.
Handle case of public keys with null p, q, and g MPIs.
(decodePublicKey): Handle case of absent or NULL p, q and g MPIs.
|
|
|
|
|
|
|
| |
PR 26972
* javax/naming/Name.java (addAll, getPrefix, getSuffix):
Documented.
* gnu/javax/naming/ictxImpl/trans/GnuName.java: New file.
|
|
|
|
|
|
|
| |
Reported by Henrik Gulbrandsen <henrik@gulbra.net>
Fixes PR27864.
* gnu/xml/dom/DomIterator.java:
(successor): Added if-statement.
|
|
|
|
|
|
|
|
|
|
|
|
| |
PR 28571
* gnu/java/awt/peer/gtk/GtkCanvasPeer.java
(getPreferredSize): Renamed method to preferredSize(). That's
the one that gets called from java.awt.*.
* java/awt/peer/ComponentPeer.java
(getPreferredSize): Added specnote about this method never
beeing called in the RI.
(getMinimumSize): Added specnote about this method never
beeing called in the RI.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/ComponentGraphics.java
(grab, nativeGrab): New methods.
* include/gnu_java_awt_peer_gtk_ComponentGraphics.h
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_ComponentGraphics.c
(nativeGrab): New method.
* gnu/java/awt/peer/gtk/GtkComponentPeer.java
(print): Implement.
* java/awt/Component.java
(printAll): Should call peer print method.
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/GtkChoicePeer.java
(remove): Force event on removing item 0 when it's selected.
(handleEvent): Always call Choice.selected().
* java/awt/Choice.java:
(remove): Simplify and correct.
|
|
|
|
|
|
|
|
|
| |
PR Classpath/28556
* gnu/java/security/key/rsa/RSAKeyPairPKCS8Codec.java (encodePrivateKey):
Updated documentation to clarify that RFC-2459 states that the parameters
field of the AlgorithmIdentifier element MUST be NULL if present.
Amended the code to reflect the specs.
(decodePrivateKey): Handle case of NULL AlgorithmIdentifier.parameters.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* java/nio/channels/SelectionKey.java (attach): Now synchronized.
(attachment): Likewise.
* java/nio/channels/spi/AbstractSelectionKey.java (cancel): Now
synchronized.
(isValid): Likewise.
* gnu/java/nio/SelectionKeyImpl.java (impl): Now final
(ch): Likewise.
(interestOps): Synchronize.
(readyOps): Likewise.
* gnu/java/nio/SelectorImpl.java (register): Synchronize around
interestOps call.
|
|
|
|
|
| |
* gnu/java/security/Engine.java
(getInstance): Ignore self referencing aliases.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* java/awt/Choice.java:
(accessibleAction): Call select() directly.
(add, insert, remove): Reimplement.
(dispatchEventImpl): Always call super.
(processItemEvent): Does not set the index.
* include/gnu_java_awt_peer_gtk_GtkChoicePeer.h
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkChoicePeer.c
(append): removed.
(nativeAdd): Name changed to add.
(selection_changed_cb): Simplify callback.
* gnu/java/awt/peer/gtk/GtkChoicePeer.java
(selected): New field.
(add): Replaced with native impl.
(handleEvent): New method.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/lang/management/BeanImpl.java:
Extended javax.management.StandardMBean.
* gnu/java/lang/management/ClassLoadingMXBeanImpl.java,
* gnu/java/lang/management/CompilationMXBeanImpl.java,
* gnu/java/lang/management/GarbageCollectorMXBeanImpl.java,
* gnu/java/lang/management/MemoryMXBeanImpl.java,
* gnu/java/lang/management/MemoryManagerMXBeanImpl.java,
* gnu/java/lang/management/MemoryPoolMXBeanImpl.java,
* gnu/java/lang/management/OperatingSystemMXBeanImpl.java,
* gnu/java/lang/management/RuntimeMXBeanImpl.java,
* gnu/java/lang/management/ThreadMXBeanImpl.java:
Call the superclass with the appropriate class.
* java/lang/management/ManagementFactory.java:
(getOperatingSystemMXBean()): Catch exception from
StandardMBean.
(getRuntimeMXBean()): Likewise.
(getClassLoadingMXBean()): Likewise.
(getThreadMXBean()): Likewise.
(getMemoryMXBean()): Likewise.
(getCompilationMXBean()): Likewise.
(getMemoryPoolMXBeans()): Likewise.
(getMemoryManagerMXBeans()): Likewise.
(getGarbageCollectorMXBeans()): Likewise.
* javax/management/MBeanFeatureInfo.java:
(hashCode()): Fixed to check for null values.
|
|
|
|
|
|
|
|
|
|
| |
(getInstance): Add case insentivity to algorithm names
* java/security/Provider.java
(put): Stop using canonical key naming
(remove): Likewise
(toCanonicalKey): Method removed
(get): Method removed, no longer needs to overwrite
parent implementation
|
|
|
|
|
| |
* gnu/java/awt/dnd/peer/gtk/GtkDragSourceContextPeer.java
(GtkDragSourceContextPeer): Added check to avoid NPE.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* native/jni/gtk-peer/GtkDragSourceContextPeer.c:
Added more static functions to handle widget signals.
(create): Initialized the javaObj field.
(connectSignals): Added code to connect all signals to
the appropriate functions and initialized all java
function fields.
(drag_begin_cb): New callback, not implemented.
(drag_motion_cb): Likewise.
(drag_data_get_cb): Likewise.
(drag_data_delete_cb): Likewise.
(drag_drop_cb): Likewise.
(drag_end_cb): Likewise.
(drag_data_received_cb): Likewise.
(setTarget): New function.
(nativeStartDrag): Added code to set the destination and source
widgets.
* java/awt/dnd/DragSource.java
(startDrag): Removed FIXME.
* java/awt/dnd/DragGestureRecognizer.java
(fireDragGestureRecognized): Reset recognizer when events are fired.
* java/awt/Component.java
(setDropTarget): Added code to create the DropTargetContextPeer.
* include/GtkDragSourceContextPeer.h: Regenerated.
* gnu/java/awt/dnd/peer/gtk/GtkDropTargetPeer.java: Removed file.
* gnu/java/awt/dnd/peer/gtk/GtkDropTargetContextPeer.java
(GtkDropTargetContextPeer): Implemented.
* gnu/java/awt/dnd/peer/gtk/GtkDragSourceContextPeer.java
(GtkDragSourceContextPeer): Added code to set the target.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* java/awt/Component.java
(getToolkit): Search for heavyweight parent and query the
heavyweight's peer.
(checkImage(Image,int,int,ImageObserver)): Likewise.
(checkImage(ImageProducer)): Likewise.
(createImage(int,int)): Likewise.
(createVolatileImage(int,int)): Likewise.
(createVolatileImage(int,int,ImageCapabilities)): Likewise.
(getFontMetrics): Likewise.
(getGraphics): Likewise.
(getLocationOnScreen): Likewise.
(prepareImage): Likewise.
(setCursor): Likewise.
(repaint): Added null check.
(addNotify): Send hierarchy event.
(removeNotify): Send hierarchy event.
(disableEvents): Update hierarchy listener counters.
(enableEvents): Update hierarchy listener counters.
(isHierarchyVisible): New helper method.
(notifyReshape): Do Container specific handling in
Container.
* java/awt/Container.java
(insets): For lightweights, return (0,0,0,0).
* java/awt/Toolkit.java
(lightweightPeer): New static field.
(createComponent): Return shared instance of GLightweightPeer.
(notifyReshape): Override Component method to add some handling
that is specific for Container.
(removeAll): Also send hierarchy and container events here.
Update the hierarchy listener counters.
* gnu/java/awt/peer/GLightweightPeer.java: Made all methods
stubs and added comment.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/java2d/CubicSegment.java: Added import.
(cp1): Renamed from first().
(c2): Renamed from last().
(first): Renamed to cp1().
(getDisplacedSegments): Implemented.
(last): Renamed to cp2().
* gnu/java/awt/java2d/LineSegment.java
(cp1): Renamed from first().
(c2): Renamed from last().
(first): Renamed to cp1().
(last): Renamed to cp2().
* gnu/java/awt/java2d/QuadSegment.java
(cp1): Renamed from first().
(c2): Renamed from last().
(first): Renamed to cp1().
(last): Renamed to cp2().
* gnu/java/awt/java2d/Segment.java: Added comments.
(first): New field.
(Segment): Keep track of first element in list.
(add): Update first & last element variables.
(cp1): Renamed from first().
(c2): Renamed from last().
(first()): Renamed to cp1() to reduce ambiguity.
(last()): Renamed to cp2() to reduce ambiguity.
(reverseAll): Update first element variable..
* gnu/java/awt/peer/gtk/CairoGraphics2D.java
(draw): Remove flattening path iterator.
* java/awt/BasicStroke.java: Clarified comments.
(addSegments): Refactored some code into joinSegments and
joinInnerSegments.
(capEnd): Rename of Segment.first() and Segment.end().
(joinInnerSegments): New method.
(joinOuterSegments): New method.
(joinSegments): Refactored some code into joinOuterSegments.
(solidStroke): Connect segments together properly.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/classpath/jdwp/event/ExceptionEvent.java: Added _klass field to hold
defining class.
(getParameter): Returns _klass field instead of determining
class from _instance.
(setCatchLoc): New method.
(writeData): Now assumes Location deals with empty locations instead of
using null.
* gnu/classpath/jdwp/util/Location.java (write): Check for empty
locations and write out accordingly.
(getEmptyLocation): New method.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/qt/QtCheckboxPeer.java: Removed unneeded imports.
* gnu/java/awt/peer/qt/QtComponentGraphics.java: Likewise.
* gnu/java/awt/peer/qt/QtComponentPeer.java: Likewise.
* gnu/java/awt/peer/qt/QtContainerPeer.java: Likewise.
* gnu/java/awt/peer/qt/QtDialogPeer.java: Likewise.
* gnu/java/awt/peer/qt/QtEmbeddedWindowPeer.java: Likewise.
* gnu/java/awt/peer/qt/QtFontMetrics.java: Likewise.
* gnu/java/awt/peer/qt/QtFontPeer.java: Likewise.
* gnu/java/awt/peer/qt/QtGraphics.java: Likewise.
* gnu/java/awt/peer/qt/QtGraphicsEnvironment.java: Likewise.
* gnu/java/awt/peer/qt/QtImage.java: Likewise.
* gnu/java/awt/peer/qt/QtImageConsumer.java: Likewise.
* gnu/java/awt/peer/qt/QtImageDirectGraphics.java: Likewise.
* gnu/java/awt/peer/qt/QtImageGraphics.java: Likewise.
* gnu/java/awt/peer/qt/QtMenuBarPeer.java: Likewise.
* gnu/java/awt/peer/qt/QtMenuItemPeer.java: Likewise.
* gnu/java/awt/peer/qt/QtPopupMenuPeer.java: Likewise.
* gnu/java/awt/peer/qt/QtScreenDeviceConfiguration.java: Likewise.
* gnu/java/awt/peer/qt/QtScrollPanePeer.java: Likewise.
* gnu/java/awt/peer/qt/QtToolkit.java: Likewise.
* gnu/java/awt/peer/qt/QtVolatileImage.java: Likewise.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/GtkComponentPeer.java
(focusRequest): Removed field.
(postFocusEvent(int,boolean,Component)): Removed.
(postFocusEvent(int,boolean)): Reverted to post event using
the heavyweight component.
(requestFocus): Post focus event using the heavyweight
component.
* gnu/java/awt/peer/gtk/GtkWindowPeer.java
(requestFocus): Post focus event using the heavyweight
component.
* java/awt/AWTEvent.java
(isFocusManagerEvent): New field, indicating if this is
an event that is redispatched by the KeyboardFocusManager.
* java/awt/Component.java
(requestFocusImpl): Register component for
heavyweight->lightweight mapping.
(dispatchEventImpl): Retarget focus events before dispatching
to the KeyboardFocusManager. Use new AWTEvent flag instead
of locking hack. Dispatch all events through the
KeyboardFocusManager. Don't request focus on lightweight
components.
* java/awt/DefaultKeyboardFocusManager.java
(dispatchEvent): Pulled out handling of FOCUS_GAINED and
FOCUS_LOST.
(handleFocusGained): Fixed handling of temporary vs permanent
focus changes. Added some checks.
(handleFocusLost): Fixed handling of temporary vs permanent
focus changes. Added some checks.
* java/awt/EventDispatchThread.java
(run): Don't dispatch to KeyboardFocusManager here. This
is done in Component.dispatchEventImpl().
* java/awt/KeyboardFocusManager.java
(redispatchEvent): Use new AWTEvent flag instead of locking hack.
(focusRequests): New field.
(retargetFocusEvent): New method. Retargets focus events
that come from heavyweights to the correct lightweight component.
(addLightweightFocusRequest): New method. Stores a mapping
for later retargetting of heavyweight focus events.
* java/awt/Window.java
(addFocusListener): Removed bogus method. If at all, this
should be performed in the KeyboardFocusManager.
(Window): Don't install a focus listener on the Window.
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/CairoGraphics2D.java:
(drawLine): Apply shift to line coordinates.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* java/awt/Component.java
(requestFocus()): Reimplemented to use requestFocusImpl().
(requestFocus(boolean)): Reimplemented to use requestFocusImpl().
(requestFocusInWindow()): Reimplemented to use requestFocusImpl().
(requestFocusInWindow(boolean)): Reimplemented to use
requestFocusImpl().
(requestFocusImpl): Reimplemented focus request to use
new peer method. Also added some obvious additional checks
for rejecting focus requests early.
* java/awt/ComponentPeer.java
(requestFocus(Component,boolean,boolean,long)): Documented
this method.
* gnu/java/awt/peer/gtk/GtkComponentPeer.java
(requestFocus): New field.
(gtkWidgetHasFocus): New native method.
(gtkWidgetCanFocus): New native method.
(requestFocus): Replaced with assert false to prevent
usage of obsolete method.
(postFocusEvent(int,boolean,Component)): New overloaded method
for posting the focus event to a specific target.
(postFocusEvent(int,boolean)): Post event to requestFocus
component.
(requestFocus(Component,boolean,boolean,long)): Implemented.
(getWindowFor): New helper method.
(isLightweightDescendant): New helper method.
* gnu/java/awt/peer/gtk/GtkWindowPeer.java
(gtkWindowHasFocus): New native method.
(requestFocus(Component,boolean,boolean,long)): New method.
Overrides GtkComponentPeer method to specially handly the
case when a Window receives a focus request for a lightweight
child.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkComponentPeer.c
(gtkWidgetHasFocus): New native method.
(gtkWidgetCanFocus): New native method.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c
(gtkWindowHasFocus): New native method.
* include/gnu_java_awt_peer_gtk_GtkComponentPeer.h,
* include/gnu_java_awt_peer_gtk_GtkWindowPeer.h:
Regenerated.
|
|
|
|
|
| |
* java/awt/peer/gtk/CairoGraphics.java:
(drawLine): Added special case for 1 pixel lines.
|
|
|
|
|
|
|
|
| |
2006-07-25 Robert Schuster <robertschuster@fsfe.org>
Fixes PR27844.
* java/awt/peer/gtk/CairoGraphics.java:
(drawLine): Removed calls to shifted().
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fixes bug #28413
* gnu/java/util/regex/RETokenEnd.java(check_java_line_terminators):
New field.
(RETokenEnd): New constructer to set check_java_line_terminators.
(matchThis): Checck line terminators if check_java_line_terminators.
* gnu/java/util/regex/RETokenStart.java: Likewise.
* gnu/regexp/RE.java(initialize): Use the new constructors for
RETokenEnd and RETokenStart if REG_MULTILINE is set.
* java/util/regex/Pattern.java(Patteren): Changed so that
gnu/regexp/RE.java may use the new the new constructors.
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/CairoGraphics2D.java
(setPaint): Fixed scaleX and scaleY.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/GtkToolkit.java (createDragGestureRecognizer):
now explicity registerListeners on GtkMouseDragGestureRecognizer
instance.
* gnu/java/awt/dnd/GtkMouseDragGestureRecognizer.java
(unregisterListeners): new method, overrided from base class
to rise visibility (from protected to public).
(registerListeners): Likewise.
(GtkMouseDragGestureRecognizer): fixed potential threading issue:
removed call to registerListeners from the constructor.
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/CairoSurface.java: Optimize pixel swap code a
bit more.
|
|
|
|
|
|
|
|
|
|
| |
* doc/vmintegration.texinfo:
Document getType(String).
* gnu/java/lang/management/MemoryPoolMXBeanImpl.java,
* java/lang/management/MemoryPoolMXBean.java:
(getType()): Implemented.
* vm/reference/gnu/java/lang/management/VMMemoryPoolMXBeanImpl.java
(getType(String)): Implemented.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* doc/vmintegration.texinfo:
Mention callback methods.
* gnu/java/lang/management/MemoryMXBeanImpl.java:
(fireNotification(String,String,long,long,long,long,long)):
Made package-private.
(fireThresholdExceededNotification(String,long,long,long,
long,long)): Likewise.
(fireCollectionThresholdExceededNotification(String,long,
long,long,long,long)): Likewise.
* java/lang/management/MemoryMXBean.java:
Document notifications.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/lang/management/MemoryMXBeanImpl.java:
(fireNotification(String,String,long,long,long,long,long)):
Implemented.
(fireThresholdExceededNotification(String,long,long,long,
long,long)): Likewise.
(fireCollectionThresholdExceededNotification(String,long,
long,long,long,long)): Likewise.
* java/lang/management/MemoryNotificationInfo.java:
Use composite type from MemoryMXBeanImpl.
* javax/management/openmbean/CompositeData.java:
Correct documentation.
* javax/management/openmbean/CompositeDataSupport.java,
* javax/management/openmbean/InvalidKeyException.java:
New files.
|
|
|
|
| |
* gnu/java/security/util/IntegerUtil.java: New file.
|
|
|
|
|
|
|
|
|
|
|
|
| |
PR Classpath/28100
* gnu/javax/crypto/cipher/TripleDES.java: Updated documentation.
(KEY_SIZE): Likewise.
(adjustParity(int,byte[],int): New method.
(adjustParity(byte[],int): Call above method with 3 as 1st argument.
(isParityAdjusted(int,byte[],int)): New method.
(isParityAdjusted): Call above method with 3 as 1st argument.
(keySizes): Add 8 and 16 as other valid key sizes.
(makeKey): Amended to cater for 1, 2 and 3 independent DES keys.
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/CairoSurface.java (CairoSurface): Rearrange
code for the pixel swap routine to be more efficient.
|
|
|
|
|
|
| |
* gnu/java/awt/dnd/GtkMouseDragGestureRecognizer.java:
Removed unused fields.
(GtkMouseDragGestureRecognizer): Removed initializations.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/dnd/GtkMouseDragGestureRecognizer.java
(GtkMouseDragGestureRecognizer): New constructor.
(GtkMouseDragGestureRecognizer): New constructor.
(GtkMouseDragGestureRecognizer): New constructor.
(mouseClicked): Removed FIXME.
(mousePressed): Implemented.
(mouseReleased): Implemented.
(mouseEntered): Implemented.
(mouseDragged): Implemented to check mouse point and trigger origin.
(mouseMoved): Removed FIXME.
(getDropActionFromEvent): New helper function used to convert mouse event
modifiers to a drop action.
* java/awt/dnd/DragSource.java
(getDragThreshold): Changed to return some arbitrary value for testing
purposes.
|
|
|
|
|
|
| |
PR 28440
* gnu/java/awt/peer/gtk/GtkCheckboxPeer.java
(dispose): Reset all fields.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/x/XToolkit.java
(createImage(InputStream)): Only copy image to Pixmap if
it's actually opaque. Transparent images are left as
BufferedImage and composited later onto the screen.
* gnu/java/awt/peer/x/XGraphics.java
(XGraphics): Fetch some parameters for image rendering.
(drawImage): Added special handling of transparent images.
(getRGB): New helper method.
(setRGB): New helper method.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/javax/imageio/IIOInputStream.java: New class. Wraps
ImageInputStreams as normal InputStreams.
* gnu/javax/imageio/gif/GIFStream.java:
Moved to gnu/javax/imageio/IIOInputStream.java.
* gnu/javax/imageio/gif/GIFImageReader.java
(readImage): Use IIOInputStream.
* gnu/javax/imageio/gif/GIFImageReaderSpi.java
(canDecodeInput): Use IIOInputStream.
* gnu/javax/imageio/png/PNGException.java: Make subclass
of IOException.
* gnu/javax/imageio/png/PNGImageReader.java: New class.
Implements the ImageIO ImageReader for PNG.
* gnu/javax/imageio/png/PNGImageReaderSpi.java: New class.
Implements the ImageIO ImageReaderSpi for PNG.
* javax/imageio/spi/IIORegistry.java:
(IIORegistry): Add PNGImageReaderSpi.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* resource/gnu/regexp/MessagesBundle.properties,
* resource/gnu/regexp/MessagesBundle_fr.properties,
* resource/gnu/regexp/MessagesBundle_it.properties:
Moved to resource/gnu/java/util/regex.
* resource/gnu/java/util/regex/MessagesBundle.properties,
* resource/gnu/java/util/regex/MessagesBundle_fr.properties,
* resource/gnu/java/util/regex/MessagesBundle_it.properties:
New files.
* gnu/java/util/regex/RE.java
Use new resource bundle location.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/x/XGraphics.java
(translate): Don't set the clip on the X server.
(clipRect): Use setXClip() to set the clip on the X server.
(hitClip): More efficient and correct implementation.
(setClip): Use setXClip() to set the clip on the X server.
(setClip(Shape)): Use setXClip() to set the clip on the X server.
(copyArea): Translate and clip the source rectangle correctly.
(dispose): Only flush when object is not yet disposed.
(clone): Use setXClip() to set the clip on the X server.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/javax/imageio/png/PNGChunk.java,
* gnu/javax/imageio/png/PNGData.java,
* gnu/javax/imageio/png/PNGDecoder.java,
* gnu/javax/imageio/png/PNGEncoder.java,
* gnu/javax/imageio/png/PNGException.java,
* gnu/javax/imageio/png/PNGFile.java,
* gnu/javax/imageio/png/PNGFilter.java,
* gnu/javax/imageio/png/PNGGamma.java,
* gnu/javax/imageio/png/PNGHeader.java,
* gnu/javax/imageio/png/PNGICCProfile.java,
* gnu/javax/imageio/png/PNGPalette.java,
* gnu/javax/imageio/png/PNGPhys.java,
* gnu/javax/imageio/png/PNGTime.java:
New files.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* examples/gnu/classpath/examples/awt/Demo.java
(DragDropWindow): Fixed typo in Label text.
* gnu/java/awt/dnd/peer/gtk/GtkDragSourceContextPeer.java
(GtkDragSourceContextPeer): Removed unneeded initialization for field.
(startDrag): Initialized context field.
(transferablesFlavorsChanged): Removed FIXME. Nothing is done in this
function.
(dragEnter): New function.
(dragExit): Likewise.
(dragDropEnd): Likewise.
(dragMouseMoved): Likewise.
(dragOver): Likewise.
(dragActionChanged): Likewise.
|
|
|
|
|
|
| |
* gnu/java/awt/peer/x/XGraphics.java
(drawImage(Image,int,int,int,int,int,int,int,int,ImageObserver)):
Fixed ordering of parameters.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/lang/management/MemoryMXBeanImpl.java:
(MemoryMXBeanImpl()): Implemented.
(ListenerData): New private class.
(addNotificationListener(NotificationListener,
NotificationFilter, Object)): Implemented.
(getNotificationInfo()): Likewise.
(removeNotificationListener(NotificationListener)):
Likewise.
(removeNotificationListener(NotificationListener,
NotificationFilter, Object)): Likewise.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/x/XFontPeer.java
(encodeFont): Be more flexible with font sizes.
(validSize): New helper method.
* gnu/java/awt/peer/x/XGraphics.java
(drawImage(Image,int,int,int,int,int,int,int,int,ImageObserver)):
Implemented.
(drawImage(Image,int,int,int,int,int,int,int,int,Color,ImageObserver)):
Implemented.
* gnu/java/awt/peer/x/XImage.java
(properties): New field.
(getProperty): Implemented.
* resource/gnu/java/awt/peer/x/fonts.properties:
Added copyright header. Fixed font size field.
|
|
|
|
|
|
| |
* lib/copy-vmresources.sh.in: Reverted.
* gnu/java/awt/peer/x/fonts.properties: Moved to resource/
* resource/gnu/java/awt/peer/x/fonts.properties: New file.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/x/XDialogPeer.java: New class.
* gnu/java/awt/peer/x/XEventPump.java
(handleEvent): Cast to XWindowPeer rather than XFramePeer.
* gnu/java/awt/peer/x/XFramePeer.java
Made a subclass of XWindowPeer, rather than SwingFramePeer.
* gnu/java/awt/peer/x/XGraphics.java
Made subclass of Graphics rather than Graphics2D. Removed
all Graphics2D specific method stubs.
(setColor): Map colors using the X color map that is
stored in XToolkit.
* gnu/java/awt/peer/x/XToolkit.java
(colorMap): New field.
(getLocalGraphicsEnvironment): Return new XGraphicsEnvironment
instance.
(createDialog): Implemented.
(createImage(ImageProducer)): Implemented.
(createImage(InputStream)): Use createImage(ImageProducer)
to convert the BufferedImage to an XImage.
* gnu/java/awt/peer/x/XWindowPeer.java
(XWindowPeer): Removed debug output.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/BufferedImageGraphics.java: Remove unneeded
imports.
* gnu/java/awt/peer/gtk/CairoSurface.java: Likewise.
* gnu/java/awt/peer/gtk/CairoSurfaceGraphics.java: Likewise.
* gnu/java/awt/peer/gtk/ComponentGraphicsCopy.java: Likewise.
* gnu/java/awt/peer/gtk/GdkFontPeer.java: Likewise.
* gnu/java/awt/peer/gtk/GdkPixbufDecoder.java: Likewise.
* gnu/java/awt/peer/gtk/GtkButtonPeer.java: Likewise.
* gnu/java/awt/peer/gtk/GtkClipboardNotifier.java: Likewise.
* gnu/java/awt/peer/gtk/GtkComponentPeer.java: Likewise.
* gnu/java/awt/peer/gtk/GtkContainerPeer.java: Likewise.
* gnu/java/awt/peer/gtk/GtkDialogPeer.java: Likewise.
* gnu/java/awt/peer/gtk/GtkFramePeer.java: Likewise.
* gnu/java/awt/peer/gtk/GtkImage.java: Likewise.
* gnu/java/awt/peer/gtk/GtkImageConsumer.java: Likewise.
* gnu/java/awt/peer/gtk/GtkMenuBarPeer.java: Likewise.
* gnu/java/awt/peer/gtk/GtkMenuItemPeer.java: Likewise.
* gnu/java/awt/peer/gtk/GtkMouseInfoPeer.java: Likewise.
* gnu/java/awt/peer/gtk/GtkPanelPeer.java: Likewise.
* gnu/java/awt/peer/gtk/GtkPopupMenuPeer.java: Likewise.
* gnu/java/awt/peer/gtk/GtkScrollbarPeer.java: Likewise.
* gnu/java/awt/peer/gtk/GtkWindowPeer.java: Likewise.
* gnu/java/awt/peer/gtk/VolatileImageGraphics.java: Likewise.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* examples/gnu/classpath/examples/awt/Demo.java
(Demo): Added new window for DnD demo.
(DragDropWindow): New class.
* gnu/java/awt/dnd/peer/gtk/GtkDragSourceContextPeer.java:
Added new fields and declarations for native functions.
(GtkDragSourceContextPeer): Implemented.
(getComponentPeer): New function.
(startDrag): Partially implemented.
(getCursor): Implemented.
(setCursor): Implemented.
* include/GtkDragSourceContextPeer.h: New file.
* include/Makefile.am: Added new header file.
* java/awt/Component.java
(addNotify): Added call to the dropTarget's addNotify.
* java/awt/dnd/DragSource.java
(startDrag): Fixed code to use shared instances of peer and
context.
(getDragThreshold): Added stub.
* java/awt/dnd/DropTarget.java
(DropTarget): Implemented fully.
(addNotify): Added code to get the peer of the parent that is
not lightweight.
* java/awt/dnd/DropTargetDragEvent.java
(getTransferable): Added stub.
* native/jni/gtk-peer/GtkDragSourceContextPeer.c: New file.
* native/jni/gtk-peer/Makefile.am: Added new c file.
* gnu/java/awt/dnd/peer/gtk/GtkDropTargetContextPeer.java:
Changed to extend GtkGenericPeer.
(GtkDropTargetContextPeer): New constructor.
* gnu/java/awt/dnd/peer/gtk/GtkDropTargetPeer.java:
Changed to extend GtkGenericPeer.
(GtkDropTargetContextPeer): New constructor.
|