summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* 2006-11-29 Francis Kung <fkung@redhat.com>Francis Kung2006-11-292-1/+6
| | | | | * gnu/java/awt/peer/gtk/CairoGraphics2D.java (drawLine): Remove hard-coded pixel shifting.
* 2006-11-29 Roman Kennke <kennke@aicas.com>Roman Kennke2006-11-294-77/+93
| | | | | | | | | | | | | | | | | | | | | * java/awt/Component.java (isShowing): Simplified condition code and avoid unnecessary if-codepaths. (coalesceEvents): Always coalesce paint events and let the peer figure out the expanding of the repaint area. * gnu/java/awt/peer/swing/SwingComponentPeer.java (currentPaintEvents): Removed. Replaced by paintArea. (paintArea): New field. Tracks the dirty area. (SwingComponentPeer): Removed init of currentPaintEvents. (coalescePaintEvent): Simplified to only union the dirty regions. (handleEvent): Paint dirty region that was tracked in paintArea. * gnu/java/awt/peer/gtk/GtkComponentPeer.java (paintArea): New field. Tracks the dirty region. (coalescePaintEvent): Implemented to track the dirty region. (paintComponent): Use the dirty region in paintArea. Protect state by putting the paint and dispose code in a try-finally. (updateComponent): Use the dirty region in paintArea. Protect state by putting the paint and dispose code in a try-finally.
* 2006-11-29 Roman Kennke <kennke@aicas.com>Roman Kennke2006-11-292-2/+5
| | | | | * java/awt/font/TextLayout.java (getVisualHighlightShape): Removed debug output.
* Fix for printing Double.MIN_VALUE and Float.MIN_VALUEgenerics-merge-20061128Dalibor Topic2006-11-282-125/+216
| | | | | | | | | | | | | | 2006-11-28 Dalibor Topic <robilad@kaffe.org> * native/jni/java-lang/java_lang_VMDouble.c: (parseDoubleFromChars) New function. Factored out from ... (Java_java_lang_VMDouble_parseDouble): Factored out the parsing. (dtoa_toString): New function. Factored out from ... (Java_java_lang_VMDouble_toString) : Factored out the conversion. Changed conversion mode to 2, as modes 0 and 1 don't round as the API spec demands. Invoke conversion function as often as necessary with growing precision until a reversible representation of the double in form of a string is reached.
* 2006-11-28 Roman Kennke <kennke@aicas.com>Roman Kennke2006-11-282-1/+12
| | | | | | * javax/swing/JComponent.java (putClientProperty): Do not fire event when both old and new value are == null.
* 2006-11-27Ê Casey MarshallÊ <csm@gnu.org>Casey Marshall2006-11-283-35/+29
| | | | | | | | | * java/util/jar/JarEntry.java (certs): removed. (jarfile): new field. (getCertificates): read the certificates from the containing JarFile. * java/util/jar/JarFile.java (JarEnumeration.nextElement): don't fill in 'certs,' fill in 'jarfile' for the entry. (getEntry): likewise.
* 2006-11-27 Francis Kung <fkung@redhat.com>Francis Kung2006-11-272-0/+24
| | | | | * java/awt/image/WritableRaster.java (createChild): Implemented.
* 2006-11-27 Roman Kennke <kennke@aicas.com>Roman Kennke2006-11-272-5/+86
| | | | | | | | | * java/awt/font/TextLayout.java (TextLayout(TextLayout,int,int)): Also layout the new runs. (getVisualHighlightShape): Implemented. (layoutRuns): Fixed boundary so that the last run is also laid out. (left): New helper method. (right): New helper method.
* 2006-11-27 Roman Kennke <kennke@aicas.com>Roman Kennke2006-11-272-10/+67
| | | | | | | | | | * java/awt/font/TextLayout.java (getCaretShape(TextHitInfo,Rectangle2D)): Implemented. (getCaretShape(TextHitInfo)): Use natural bounds. (getCaretShapes(int,Rectangle2D,CaretPolicy)): New API method. (getCaretShapes(int,Rectangle2D)): Delegate to new method above with DEFAULT_CARET_POLICY. (getCaretShapes(int)): Use natural bounds.
* 2006-11-27 Roman Kennke <kennke@aicas.com>Roman Kennke2006-11-272-11/+114
| | | | | | | | | | | | | | | | * java/awt/font/TextLayout.java (Run.font): New field. (Run.location): New field. (Run.Run): Initialize font. (font): Removed field. This is moved into Run as the actual font is something run-specific. (TextLayout(String,Font,FontRenderContext)): Set font on the single runs. Layout the runs here. (TextLayout(TextLayout,int,int)): Copy over the run fonts. (findRunAtIndex): New helper method. (getCaretInfo): Implemented. (layoutRuns): New helper method. (toString): Don't put font in output string.
* 2006-11-27 Raif S. Naffah <classpath@naffah-raif.name>Raif S. Naffah2006-11-272-0/+5
| | | | * AUTHORS: Added Jeroen Fritjers.
* 2006-11-27 neugens <neugens@nirvana.limasoftware.net>Mario Torre2006-11-272-5/+46
| | | | | | | | | * java/text/DecimalFormat.java (formatInternal): Add an explicit test for FieldPosition to be null. Check if the factional part is just 0 and can be omitted from the result. (scanNegativePattern): Fixed index out of bound exception when searching for international currency symbol in negative pattern.
* 2006-11-27 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2006-11-272-23/+141
| | | | | | | | | | | | | * java/beans/beancontext/BeanContextSupport.java: (readObject(ObjectInputStream)): Implemented. (writeObject(ObjectOutputStream)): Likewise. (BCSChild.getTargetChild()): Added. (bcsPreDeserializationHook()): Implemented. (bcsPreSerializationHook()): Likewise. (childDeserializedHook(Object,BCSChild)): Likewise. (isSerializing()): Likewise. (readChildren(ObjectInputStream)): Likewise. (writeChildren(ObjectOutputStream)): Likewise.
* Fix for bug #25557Dalibor Topic2006-11-262-2/+13
| | | | | | | | | | | 2006-11-26 Roger Sayle <roger <at> eyesopen.com> Ian Lance Taylor <ian <at> airs.com> Paolo Bonzini <bonzini <at> gnu.org> Fixes bug #25557. * lib/gen-classlist.sh.in: Avoid using test's -ef operator for increased portability. Likewise, use -f instead of -e.
* * lib/Makefile.am (propertydirs): Removed.Mark Wielaard2006-11-261-0/+5
| | | | (resources): Explicitly create all dirs.
* * gnu/java/net/PlainSocketImpl.java (accept): Reset timeout on Socket.Mark Wielaard2006-11-261-8/+8
|
* * gnu/java/net/PlainSocketImpl.java (accept): Reset timeout on Socket.Mark Wielaard2006-11-262-2/+9
|
* removed unused native/target directoryDalibor Topic2006-11-264-6/+9
| | | | | | | | | | | 2006-11-26 Dalibor Topic <robilad@kaffe.org> * native/target/.cvsignore, native/target/generic/.cvsignore, native/target/Linux/.cvsignore: Removed no longer used files. * native/target: Removed no longer used directory.
* Fix for bug #29133.Dalibor Topic2006-11-262-3/+20
| | | | | | | | | | | | | 2006-11-26 Dalibor Topic <robilad@kaffe.org> Fixes bug #29133. * libraries/clib/nio/gnu_java_nio_VMSelector.c (Java_gnu_java_nio_VMSelector_select): Use strerror if strerror_r is not available. Reported by: Michael Franz <mvfranz <at> gmail.com>, Riccardo Mottola <zuse <at> libero.it>
* fixed bug #26756Dalibor Topic2006-11-262-1/+12
| | | | | | | | | | 2006-11-26 Dalibor Topic <robilad@kaffe.org> Fixes bug #26756. * native/jni/midi-dssi/Makefile.am (AM_CFLAGS): Removed STRICT_WARNING_CFLAGS since it caused the build to fail on GNU/Linux.
* 2006-11-26 Ian Rogers <ian.rogers@manchester.ac.uk>Mark Wielaard2006-11-262-39/+95
| | | | * doc/vmintegration.texinfo: Update VM Threading Model section.
* 2006-11-26 Tom Tromey <tromey@redhat.com>Mark Wielaard2006-11-264-5/+22
| | | | | | | | | | | | * native/jni/java-net/java_net_VMNetworkInterface.c: Conditionally include ifaddrs.h. (Java_java_net_VMNetworkInterface_getVMInterfaces): Updated conditional. * native/jni/java-net/gnu_java_net_VMPlainSocketImpl.c: Conditionally include ifaddrs.h. (getif_address): Updated conditional. (getif_index): Likewise. * configure.ac: Check for ifaddrs.h.
* * java/io/File.java (list): Return empty list for unreadable dirs.Mark Wielaard2006-11-252-1/+6
|
* 2006-11-25 Mark Wielaard <mark@klomp.org>Mark Wielaard2006-11-253-6/+20
| | | | | | | | | * gnu/java/awt/peer/gtk/CairoGraphics2D.java (drawGlyphVector): Synchronize on font peer. (setFont): Likewise. * gnu/java/awt/peer/gtk/GdkFontPeer.java (getFontMetrics): Mark synchronized. (getTextMetrics): Likewise.
* 2006-11-25 Roman Kennke <kennke@aicas.com>Roman Kennke2006-11-252-15/+31
| | | | | | | * javax/swing/text/GapContent.java (getPositionsInRange): Rewritten to use the more efficient binary search searchFirst() and avoid an NPE that was caused by GC'ed positions.
* * javax/swing/text/CompositeView.java (modelToView): Never returnMark Wielaard2006-11-252-5/+10
| | | | null.
* * javax/swing/text/html/TableView.java (calculateColumnRequirements):Mark Wielaard2006-11-252-9/+27
| | | | | Check whether rowView instanceof RowView. (updateGrid): Likewise.
* * javax/swing/text/html/StyleSheet.java (paint): Guard againstMark Wielaard2006-11-252-3/+11
| | | | getChildAllocation() returning null.
* 2006-11-25 Mario Torre <neugens@nirvana.limasoftware.net>Mario Torre2006-11-255-1124/+1878
| | | | | | | | | | | | PR28462 * java/text/DecimalFormat.java: Almost new rewrite, and update to 1.5. * java/text/NumberFormat.java (format): all format methods, fixed FieldPosition argument should never be null. (format(Object, StringBuffer, FieldPosition)): fixed signature, method is not final. * java/text/DecimalFormatSymbols.java (clone): fixed to also clone locale. * AUTHORS: added my name to the file.
* * gnu/javax/swing/text/html/css/Selector.java (calculateSpecificity):Mark Wielaard2006-11-252-1/+6
| | | | Use clazzIndex for id substring.
* * java/awt/EventQueue.java (pop): Only terminate dispatchThread whenMark Wielaard2006-11-252-2/+10
| | | | it is still running.
* Fixes bug #28822Mark Wielaard2006-11-252-0/+8
| | | | | * doc/api/Makefile.am (create_html): Guard GJDOC invocation with CREATE_API_DOCS
* 2006-11-24 Tania Bento <tbento@redhat.com>Tania Bento2006-11-242-1/+10
| | | | | | * java/awt/font/TextHitInfo.java (equals(TextHitInfo)): If TextHitInfo parameter is null, return false. (beforeOffset): Decreased first parameter by 1.
* 2006-11-24 Francis Kung <fkung@redhat.com>Francis Kung2006-11-242-11/+47
| | | | | | | * gnu/java/awt/peer/gtk/BufferedImageGraphics.java (constructor): Check sample model when setting fastCM flag. (updateBufferedImage): Check scanline and sample model offsets before copying data directly into the image data buffer.
* 2006-11-24 Francis Kung <fkung@redhat.com>Francis Kung2006-11-242-19/+55
| | | | | * gnu/java/awt/java2d/QuadSegment.java (offsetSubdivided): Handle special straight-line cases.
* 2006-11-24 Roman Kennke <kennke@aicas.com>Roman Kennke2006-11-242-21/+133
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * java/awt/dnd/DropTarget.java (DropTargetAutoScroller.HYSTERESIS): New constant. (DropTargetAutoScroller.DELAY): New constant. (DropTargetAutoScroller.inner): New field. A cached Rectangle instance. (DropTargetAutoScroller.outer): New field. A cached Rectangle instance. (DropTargetAutoScroller.timer): New field. The actual timer. (DropTargetAutoScroller.DropTargetAutoScroller): Initialize timer. (DropTargetAutoScroller.actionPerformed): Implemented. (DropTargetAutoScroller.stop): Implemented. (DropTargetAutoScroller.updateLocation): Implemented. (clearAutoscroll): Stop the autoscroller before nullifying it. (createDropTargetAutoScroller): Don't set the field here, only return a new instance. (dragEnter): Only do something when active. Initialize auto scrolling. (dragExit): Only do something when active. Stop auto scrolling. (dragOver): Only do something when active. Update auto scrolling. (drop): Only do something when active. Update auto scrolling. (dropActionChanged): Only do something when active. Update auto scrolling. (initializeAutoScrolling): Check if component is an instance of Autoscroll, otherwise do nothing. (setActive): Disable autoscrolling when deactivating. (setComponent): When component is set to null, disable autoscrolling.
* 2006-11-24 David Gilbert <david.gilbert@object-refinery.com>David Gilbert2006-11-242-3/+19
| | | | | * java/beans/beancontext/BeanContextServicesSupport.java (getChildBeanContextServicesListener): Implemented.
* 2006-11-23 Roman Kennke <kennke@aicas.com>Roman Kennke2006-11-234-12/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gnu/java/awt/peer/headless/HeadlessGraphicsEnvironment.java (createGraphics): Use constructor to create new instance of BufferedImageGraphics. * java/awt/Toolkit.java (getDefaultToolkit): Really try to get a real toolkit. Only use HeadlessToolkit if no other is available. * gnu/java/awt/peer/gtk/GtkToolkit.java (checkHeadless): New helper method. Checks for headless environment and throws HeadlessException if appropriate. (createButton): Check for headless. (createCanvas): Check for headless. (createCheckbox): Check for headless. (createCheckboxMenuItem): Check for headless. (createChoice): Check for headless. (createDialog): Check for headless. (createDragGestureRecognizer): Check for headless. (createDragSourceContextPeer): Check for headless. (createEmbeddedWindow): Check for headless. (createFileDialog): Check for headless. (createFrame): Check for headless. (createCheckbox): Check for headless. (createLabel): Check for headless. (createList): Check for headless. (createMenu): Check for headless. (createMenuBar): Check for headless. (createMenuItem): Check for headless. (createPanel): Check for headless. (createPopupMenu): Check for headless. (createScrollbar): Check for headless. (createScrollPane): Check for headless. (createTextArea): Check for headless. (createTextField): Check for headless. (createWindow): Check for headless.
* 2006-11-23 David Gilbert <david.gilbert@object-refinery.com>David Gilbert2006-11-232-5/+50
| | | | | | * java/beans/beancontext/BeanContextSupport.java (deserialize): Implemented, (serialize): Implemented.
* 2006-11-23 Roman Kennke <kennke@aicas.com>Roman Kennke2006-11-232-1/+35
| | | | | * gnu/java/awt/peer/headless/HeadlessGraphicsEnvironment.java (createGraphics): Try to use Cairo graphics if available.
* 2006-11-22 David Gilbert <david.gilbert@object-refinery.com>David Gilbert2006-11-222-3/+20
| | | | | | * java/beans/beancontext/BeanContextSupport.java (toArray): Added API docs, (toArray(Object[])): Added API docs, removed NotImplementedException.
* 2006-11-22 Tania Bento <tbento@redhat.com>Tania Bento2006-11-222-3/+15
| | | | | | * javax/swing/JRootPane.java (setLayeredPane): Added documentation; throw IllegalComponentStateException if layered pane parameter is null.
* 2006-11-22 David Gilbert <david.gilbert@object-refinery.com>David Gilbert2006-11-222-1/+5
| | | | | * java/beans/beancontext/BeanContextSupport.java (avoidingGui): Removed NotImplementedException.
* 2006-11-22 Francis Kung <fkung@redhat.com>Francis Kung2006-11-223-32/+75
| | | | | | | | | | | | * gnu/java/awt/peer/gtk/BufferedImageGraphics.java (drawGlyphVector): Clip updated area to glyph bounds. * gnu/java/awt/peer/gtk/CairoGraphics2D.java (createPath): Eliminate distortion when pixel-shifting rectangles; separate x-coordinate and y-coordinate pixel shifting. (shifted): Removed method. (shiftX): New method, recognising scaling transforms. (shiftY): New method, recognising scaling transforms. (walkPath): Separate x-coordinate and y-coordinate pixel shifting.
* 2006-11-22 Roman Kennke <kennke@aicas.com>Roman Kennke2006-11-222-2/+19
| | | | | | * java/awt/font/TextLayout.java (hash): New field. Caches the hash code. (hashCode): Implemented.
* 2006-11-22 Roman Kennke <kennke@aicas.com>Roman Kennke2006-11-227-597/+569
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * java/awt/image/ImageFilter.java Reformat whole class. (getFilterInstance): Don't touch the consumer field. Don't check consumer. (imageComplete): Don't check consumer. (setColorModel): Don't check consumer. (setDimensions): Don't check consumer. (setHints): Don't check consumer. (setPixels): Don't check consumer. (setProperties): Pass the original property too. * java/awt/image/IndexColorModel.java (IndexColorModel(int,int,byte[],byte[],byte[],int)): Set the transparent pixel by calling the new helper method. (IndexColorModel(int,int,byte[],int,boolean,int)): Set the transparent pixel by calling the new helper method. (IndexColorModel(int,int,int[],int,boolean,int,int)): Set the transparent pixel by calling the new helper method. (coerceData): Removed. This is not needed. (getAlpha): Simply return value from color map. The transparent pixel has to be there. (setTransparentPixel): New helper method. Inserts the transparent pixel. * java/awt/image/RGBImageFilter.java Reformat whole class. (convertColorModelToDefault): Removed. No longer needed. (filterIndexColorModel): Don't handle transparent pixels separately. (filterRGBPixels): Set pixels on consumer already. (makeColor): Removed. No longer needed. * java/awt/image/ReplicateScaleFilter.java (replicatePixels): Removed. (setDimension): Correctly compute destination size, avoid double calculations. (setPixels): Avoid double calculations. Fixed some boundary cases. (setupSources): New helper method. * java/awt/image/SampleModel.java (setDataElements): Also handle TYPE_SHORT, TYPE_FLOAT and TYPE_DOUBLE. * java/awt/image/SinglePixelPackedSampleModel.java (setDataElements(int,int,int,int,Object,DataBuffer)): Removed. This is not needed as the superclass already copies line by line. (setDataElements(int,int,Object,DataBuffer)): Simplified code, removed some checks that the RI also doesn't perform. Call DataBuffer.setElem().
* 2006-11-22 Roman Kennke <kennke@aicas.com>Roman Kennke2006-11-222-2/+58
| | | | | * java/awt/text/TextLayout.java (getLogicalRangesForVisualSelection): Implemented.
* 2006-11-21 Roman Kennke <kennke@aicas.com>Roman Kennke2006-11-212-18/+272
| | | | | | | | | | | | | | | | | | | | | | | | * java/awt/text/TextLayout.java (Run.isLeftToRight): New helper method. (logicalToVisual): New field. Maps logical indices to visual indices. (visualToLogical): New field. Maps visual indices to logical indices. (TextLayout): Setup mappings. (setupMappings): New method for setting up the mappings. (getCharacterLevel): Reorganized code. (getNextLeftHit(int)): Implemented. (getNextLeftHit(int,CaretPolicy)): New method. (getNextLeftHit(TextHitInfo)): Implemented. (getNextRightHit(int)): Implemented. (getNextRightHit(int,CaretPolicy)): New method. (getNextRightHit(TextHitInfo)): New method. (getVisualOtherHit): Implemented. (checkHitInfo): New helper methods for checking parameters. (hitToCaret): New helper method. Maps hit infos to caret locations. (caretToHit): New helper method. Maps caret locations to hit infos. (isCharacterLTR): New helper method. (CaretPolicy.getStrongCaret): Implemented.
* 2006-11-21 Francis Kung <fkung@redhat.com>Francis Kung2006-11-214-79/+98
| | | | | | | | | | | | | | | | | | | * gnu/java/awt/peer/gtk/BufferedImageGraphics.java (draw): Include stroke width when calculating bounds. (updateBufferedImage): Round bounds more generously, handle negative height/width values, and clip more intelligently. * gnu/java/awt/peer/gtk/CairoGraphics2D.java (createPath): Add shortcut optimization for lines. (draw): Include stroke width when calculating bounds. (drawLine): Delegate to main draw() method. (drawRect): Likewise. (fillRect): Delegate to main fill() method. (findStrokedBounds): New method. (setCustomPaint): Round bounds more generously. * gnu/java/awt/peer/gtk/ComponentGraphics.java (drawLine): Removed. (drawRect): Removed. (fillRect): Removed.
* 2006-11-21 Francis Kung <fkung@redhat.com>Francis Kung2006-11-217-51/+176
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gnu/java/awt/java2d/TexturePaintContext.java (getRaster): Handle negative coordinate values. * gnu/java/awt/peer/gtk/CairoGraphics2D.java (setPaint): Moved custom paint processing to a new method. (setPaintPixels): Added x, y parameters. (getRealBounds): Added documentation. (copy): Copy clipping information. (drawLine): Process custom paints. (setCustomPaint): New method. (fill): Process custom paints. (drawGlyphVector): Process custom paints. (drawRect): Process custom paints. (draw): Process custom paints. * gnu/java/awt/peer/gtk/CairoSurface.java (cairoCM_opaque): New constant. * gnu/java/awt/peer/gtk/BufferedImageGraphics.java (argb32): Removed constant. (rgb32): Removed constant. (BufferedImageGraphics(BufferedImage)): Updated constant names. (BufferedImageGraphics(BufferedImageGraphics)): Copy color model flags. (updateBufferedImage): Transform to device-space before updating. * include/gnu_java_awt_peer_gtk_CairoGraphics2D.h (Java_gnu_java_awt_peer_gtk_CairoGraphics2D_setPaintPixels): Added x, y parameters. * native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoGraphics2D.c (Java_gnu_java_awt_peer_gtk_CairoGraphics2D_setPaintPixels): Set pattern source at designated x, y origin.