summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* 2006-11-21 Roman Kennke <kennke@aicas.com>Roman Kennke2006-11-213-113/+357
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * java/awt/text/TextLayout.java (Run): New inner helper class. (length): New field. (naturalBounds): New field. (offset): New field. (runIndices): Removed. This is now encapsulate in a Run object. (runs): Changed to Run[]. (string): Changed to char[]. (totalAdvance): New field. Caches advance value. (TextLayout(String,Font,FontRenderContext)): Change to store string as char[] and run layout as Run[]. Clean out empty run items. (TextLayout(TextLayout,int,int)): Change to store string as char[] and run layout as Run[]. (clone): Call private constructor for maximum efficiency. (determineWhitespace): Adapted to use char[] data. (draw): Adapted to use Run objects. (getAdvance): Cache computed total advance. (getBlackBoxBounds): Adapted to use Run objects. (getCaretInfo): Use natural layout bounds. (getCharacterCount): Return length field. (getLogicalHighlightShape): Adapted to use Run objects. (getNaturalBounds): New helper method. Calculates and returns the natural bounds of this text layout. (getOutline): Adapted to use Run objects. (getStringProperties): Adapted to use char[] data. (getVisibleAdvance): Adapted to use char[] and Run data. (handleJustify): Adapted to use char[] and Run data. (hitTestChar(float,float,Rectangle2D)): Implemented. (hitTestChar(float,float)): Use natural bounds. (setCharIndices): Adapted to use char[] and Run data. (toString): Adapted to use char[] and Run data. * java/text/Bidi.java (requiresBidi): Exclude paragraph separators from bidi-triggers.
* 2006-11-21 Roman Kennke <kennke@aicas.com>Roman Kennke2006-11-218-286/+282
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gnu/java/awt/peer/gtk/GdkFontMetrics.java: Removed. This is now an inner class in GdkFontPeer. * gnu/java/awt/peer/gtk/CairoGraphics2D.java (drawString(float,float)): Use text layout cache from GdkFontPeer. (getFontMetrics): Delegate to GdkFontPeer. * gnu/java/awt/peer/gtk/FreetypeGlyphVector.java (getGlyphCodes): Also check array size. (getGlyphPositions): Also check array size. * gnu/java/awt/peer/gtk/GdkFontPeer.java (GdkFontLineMetrics.fm): Removed. (GdkFontLineMetrics.strikeThroughOffset): Removed. (GdkFontLineMetrics.strikeThroughThickness): Removed. (GdkFontLineMetrics.underlineOffset): Removed. (GdkFontLineMetrics.underlineThickness): Removed. (GdkFontLineMetrics.GdkFontLineMetrics): Don't take FontMetrics argument. Don't init removed fields. (GdkFontLineMetrics.getAscent): Return font peer's field. (GdkFontLineMetrics.getDescent): Return font peer's field. (GdkFontLineMetrics.getHeight): Return font peer's field. (GdkFontLineMetrics.getLeading): Return font peer's field. (GdkFontLineMetrics.getNumChars): Reformat. (GdkFontLineMetrics.getStrikeThroughOffset): Return half ascent. (GdkFontLineMetrics.getStrikeThroughThickness): Return 1. (GdkFontLineMetrics.getUnderlineOffset): Return font peer's field. (GdkFontLineMetrics.getUnderlineThickness): Return font peer's field. (GdkFontMetrics): Moved class in here as inner class. Make it use the font peer's fields and for the char(s) width and string width method, use TextLayout to measure the actual widths. (ascent): New field. (bundle): Removed. (DEFAULT_CTX): New constant field. (descent): New field. (FONT_METRICS_ASCENT): New constant. (FONT_METRICS_DESCENT): New constant. (FONT_METRICS_HEIGHT): New constant. (FONT_METRICS_MAX_ADVANCE): New constant. (FONT_METRICS_MAX_ASCENT): New constant. (FONT_METRICS_MAX_DESCENT): New constant. (FONT_METRICS_UNDERLINE_OFFSET): New constant. (FONT_METRICS_UNDERLINE_THICKNESS): New constant. (height): New field. (maxAdvance): New field. (maxAscent): New field. (maxDescent): New field. (metrics): New field. Stores a FontMetrics for this font. (textLayoutCache): New field. Caches TextLayout instances. (underlineOffset): New field. (underlineThickness): New field. (cinit): Don't initialize resource bundle. (GdkFontPeer): Setup the metrics. (getFontMetrics): Return stored metrics if possible. (getLineMetrics): Adapt to new constructor. (initFont): New helper method. (setupMetrics): New helper method. * gnu/java/awt/peer/gtk/GtkToolkit.java (LRUCache): Made class a static class. (getFontMetrics): Delegate to GdkFontPeer. * native/jni/gtk-peer/gdkfont.h Added new constant defines. * native/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkFontPeer.c (getFontMetrics): Rewritten to fetch the font metrics from FreeType.
* 2006-11-20 Tania Bento <tbento@redhat.com>Tania Bento2006-11-202-0/+10
| | | | | | * javax/swing/ButtonGroup.java: (setSelected): Select the ButtonModel if all conditions are met.
* 2006-11-20 Tania Bento <tbento@redhat.com>Tania Bento2006-11-202-1/+6
| | | | | * javax/swing/JSlider.java: (updateLabelUIs): Removed casting.
* * gnu/java/util/regex/RE.java (messages): Don't initialize.Mark Wielaard2006-11-203-6/+23
| | | | | | | | | (bundle): New static final String field. (getLocalizedMessage): Initialize messages when still null. * gnu/java/util/regex/RESyntax.java (SYNTAX_IS_FINAL): Removed. (set): Use RE.getLocalizedMessage(). (clear): Likewise. (setLineSeparator): Likewise.
* 2006-11-20 Roman Kennke <kennke@aicas.com>Roman Kennke2006-11-202-33/+48
| | | | | | | | | | | * javax/swing/text/html/StyleSheet.java (linked): New field. (styleSheet): Replaced by linked. (addStyleSheet): Use an arraylist for simplicity. (getRule): Removed useless instantiation. (getStyleSheets): Convert array list to array. (removeStyleSheet): Use an arraylist for simplicity. (resolveStyle): Include styles from linked lists.
* 2006-11-20 Roman Kennke <kennke@aicas.com>Roman Kennke2006-11-208-89/+187
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * javax/swing/text/BoxView.java (BoxView): Initialize with invalid req's. (forwardUpdate): Trigger repaint when children changed the major axis. (getResizeWeight): Return resizable when the pref differs from the min or the pref differs from the max size. (layoutMajorAxis): Actually sum up the preferred sizes. (paint): Made binary search more robust. (replace): Let arrays shrink when needed. (replaceLayoutArray): Let arrays shrink when needed. (setAxis): Trigger preferenceChanged. * javax/swing/text/CompositeView.java (getInsideAllocation): Call insets method to take account of overriding subclasses. * javax/swing/text/DefaultStyledDocument.java (ElementBuffer.finishEdit): Clear the stack and edits buffer. (ElementBuffer.insertUpdate): Only remove the found element, not all. * javax/swing/text/GlyphView.java (insertUpdate): Pass null in preferenceChanged. (removeUpdate): Pass null in preferenceChanged. (changedUpdate): Pass null in preferenceChanged. * javax/swing/text/Utilities.java (drawTabbedText): Avoid single calls to charWidth() and instead call charsWidth() on whole chunks. * javax/swing/text/html/HTMLDocument.java (BlockElement.getName): Fall back to super when necessary. (RunElement.getName): Fall back to super when necessary. (HTMLReader.MAX_THRESHOLD): New constant field. (HTMLReader.GROW_THRESHOLD): New constant field. (HTMLReader.theshold): New field. (HTMLReader.HTMLReader): Fetch threshold from document. (HTMLReader.addContent): Sucessivly grow the threshold. (createLeafElement): Don't create two elemens and don't set attribute. * javax/swing/text/html/TableView.java (RowView.replace): Invalidate grid. (gridValid): Made package private. (layoutMinorAxis): Mark all rows as invalid. (replace): Invalidate grid.
* 2006-11-20 Roman Kennke <kennke@aicas.com>Roman Kennke2006-11-202-87/+139
| | | | | | | | | | | | | | | | | | | | | | | * javax/swing/text/AbstractDocument.java (DefaultDocumentEvent.changes): Changed to be a HashMap. (DefaultDocumentEvent.modified): Made private. (DefaultDocumentEvent.THRESHOLD): New constant field. (DefaultDocumentEvent.DefaultDocumentEvent): Don't initialize changes table. (DefaultDocumentEvent.addEdit): Switch to hashmap only when exceeding threshold. (DefaultDocumentEvent.getChange): Use iterative approach when we have no hashmap yet. (documentCV): Removed. (numWriters): Renamed from numWritersWaiting. (createPosition): Reformat. (getCurrentWriter): Synchronized. (readLock): Implement more straightforward. (readUnlock): Implement more straightforward. (writeLock): Implement more straightforward. (writeUnlock): Implement more straightforward. (remove): Write-lock here. (removeImpl): Don't write-lock here.
* 2006-11-20 Roman Kennke <kennke@aicas.com>Roman Kennke2006-11-202-0/+6
| | | | | * javax/swing/JEditorPane.java (setPage): Set priority on loading thread.
* 2006-11-20 Roman Kennke <kennke@aicas.com>Roman Kennke2006-11-202-10/+64
| | | | | | | | | | | | * javax/swing/plaf/basic/BasicTextUI.java (RootView.paint): Avoid allocation. (cachedInsets): New field. Caches an Insets instance. (getNextVisualPositionFrom): Read-lock the document to avoid thread nastiness. Push allocation. (getPreferredSize): Push fake allocation when not yet laid out. (getVisibleEditorRect): Use cached insets. (viewToModel): Read-lock the document to avoid thread nastiness. Push allocation.
* 2006-11-20 Roman Kennke <kennke@aicas.com>Roman Kennke2006-11-202-7/+26
| | | | | | | | | | | * javax/swing/text/StyleContext.java (attributeSetPool): Synchronize this map. (addAttribute): Synchronize this method. (addAttributes: Synchronize this method. (readObject): Install synchronized map on target object. (removeAttribute): Synchronize this method. (removeAttributes): Synchronize this method. (removeAttributes): Synchronize this method.
* 2006-11-20 Roman Kennke <kennke@aicas.com>Roman Kennke2006-11-202-232/+327
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * javax/swing/text/GapContent.java (GapContentPosition.GapContentPosition): Removed constructor. (Mark): Made subclass of WeakReference to refer directly to the associated position. (Mark.refCount): Removed. (Mark.Mark(int,GapContentPosition,ReferenceQueue): New constructor. Used to reference a position and register the reference queue. (Mark.Mark(index)): Call super and don't adjust mark offset. (Mark.compareTo): Removed. (Mark.equals): Removed. (Mark.getOffset): Return at least null. Removed assert. (Mark.getPosition): New helper method. (garbageMarks): New field. (positions): Removed. (searchMark): New field. (GapContent): Removed init of positions map. (addImpl): New helper method. (adjustPositionsInRange): Removed. (compare): New helper method. (createPosition): Rewritten for new datastructures. This now performs a much more efficient binary search for finding a position at the requested offste. (garbageCollect): Rewritten to collect unused marks. (getPositionsInRange): Adjusted for new data structures. (removeImpl): New helper method. (replace): Use new addImpl() and removeImpl() helper method for correctly adjusting the positions and gap. (search): Rewritten. Implements a more suitable binary search. (searchFirst): New helper method. (setPositionsInRange): Removed. (shiftEnd): Update the marks here. (shiftGap): Update the marks here. (shiftGapEndUp): Update the marks here. (shiftGapStartDown): Update the marks here.
* 2006-11-20 Marco Trudel <mtrudel@gmx.ch>Raif S. Naffah2006-11-202-121/+64
| | | | | | | | | * java/util/jar/JarFile.java (digestAlgorithms): New field used to cache digest algorithm implementations. (readSignatures): Parse the manifest once and reuse that data. Add support for line breaks. (verifyHashes): Use the parsed manifest entry. (readManifestEntry): Removed.
* 2006-11-20 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2006-11-203-41/+547
| | | | | | | | | | | | | | | | | | | | | | | | | | * java/beans/beancontext/BeanContextServicesSupport.java: Added more documentation. (addService(Class,BeanContextServiceProvider,boolean)): Synchronized over global hierarchy lock. (bcsPreDeserializationHook(ObjectInputStream)): Implemented. (bcsPreSerializationHook(ObjectOutputStream)): Implemented. (childJustRemovedHook(Object,BCSChild)): Implemented. (createBCSSServiceProvider(Class,BeanContextServiceProvider)): Implemented. (fireServiceRevoked(BeanContextServiceRevokedEvent)): Added revocation-only listeners. (getBeanContextServicesPeer()): Implemented. (getCurrentServiceClasses(Class)): Synchronized over global hierarchy lock. (getCurrentServiceSelectors(Class)): Synchronized over global hierarchy lock, and fixed FIXME. (getService(BeanContextChild,Object,Class,Object, BeanContextServiceRevokedListener)): Implemented. (hasService(Class)): Synchronized over global hierarchy lock. (releaseService(BeanContextChild,Object,Object)): Implemented. (revokeService(Class,BeanContextServiceProvider,boolean)): Implemented. * java/beans/beancontext/BeanContextSupport.java: (remove(Object, boolean)): Documentation correction.
* 2006-11-19 Roman Kennke <kennke@aicas.com>Roman Kennke2006-11-196-51/+325
| | | | | | | | | | | | | | | | | | | | | | | * javax/swing/JEditorPane.java (PageStream): New inner class. (PageLoader): New inner class. (loading): New field. (setPage): Implemented asynchronous loading. * javax/swing/text/DefaultStyledDocument.java (ElementBuffer.create): New helper method. (create): Use new ElementBuffer method instead of hack. * javax/swing/text/html/HTMLDocument.java (HTMLReader.flushImpl): New helper method. (HTMLReader.addContent): Use flushImpl(). (HTMLReader.blockClose): Added null check. (HTMLReader.flush): Use flushImpl(). * javax/swing/text/html/HTMLEditorKit.java (createDefaultDocument): Set load priority to 4 and token threshold to 100. * javax/swing/text/html/TableView.java (insertUpdate): Overridden to provide correct view factory. (removeUpdate): Overridden to provide correct view factory. (changedUpdate): Overridden to provide correct view factory.
* 2006-11-19 Roman Kennke <kennke@aicas.com>Roman Kennke2006-11-194-108/+220
| | | | | | | | | | | | | | | | | | | | | | * javax/swing/text/BoxView.java (clipRect): New field. (tmpRect): New field. (layout): Reorganized code. Now uses layoutAxis() helper method. (layoutAxis): New helper method. (paint): Optimized by using cached Rectangle objects and a binary search for child views inside the clip. * javax/swing/text/CompositeView.java (insideAllocation): Made private and initialized in constructor. (getInsideAllocation): Removed initialization block for insideAllocation field. Avoid unnecessary allocations. * javax/swing/text/GlyphView.java (DefaultGlyphPainter.paint): Only paint the actual glyphs here The remaining stuff (background, underline and striking) is done in the GlpyhView itself. Avoid unnecessary allocations. (cached): A cached Segment instance. (getText): Return cached segment. (paint): Paint underline, strike and background here. Avoid unecessary allocs.
* 2006-11-19 Roman Kennke <kennke@aicas.com>Roman Kennke2006-11-192-3/+71
| | | | | | | | * javax/swing/text/html/StyleSheet.java (getFontSize): Removed debug output. (ListPainter.tmpRect): New field. (ListPainter.paint): Align bullet vertically centered to the first line of the paragraph.
* 2006-11-13 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2006-11-182-0/+13
| | | | | * gnu/java/util/regex/RETokenNamedProperty.java: (getHandler(String)): Add support for 'all'.
* 2006-11-18 Andrew John Hughes <gnu_andrew@member.fsf.org>Andrew John Hughes2006-11-185-0/+2934
| | | | | | | | | * gnu/javax/management/Server.java: Initial implementation of a GNU management server. * javax/management/MBeanPermission.java, * javax/management/MBeanRegistration.java, * javax/management/MBeanTrustPermission.java: Implemented.
* 2006-11-17 Roman Kennke <kennke@aicas.com>Roman Kennke2006-11-174-11/+154
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * gnu/javax/swing/text/html/css/CSSParser.java (parseDeclaration): Trim string before reporting. * gnu/javax/swing/text/html/css/FontSize.java (size): New field. (isRelative): New field. (sizeIndex): New field. (FontSize): Initialize new fields. (getValue): Changed to call getValue(int). (getValue(int)): New method. Implements relative font sizes. (isRelative): New method. (mapAbsolute): Store index. (mapEM): New helper method. (mapLarger): New helper method. (mapPercent): New helper method. (mapRelative): New helper method. (mapSmaller): New helper method. (mapValue): New helper method. * javax/swing/text/html/CSS.java (parseBackgroundShorthand): Create CSSColor directly. * javax/swing/text/html/StyleSheet.java (addRule): Invalidate resolved styles. (getFont): Call new getFontSize() method to resolve relative font sizes. (getFontSize): New helper method. Resolves relative font sizes. (translateHTMLToCSS): Create CSS objects directly.
* * docs/www.gnu.org/newsitems.txt: Add Sun GPL news announcement.Mark Wielaard2006-11-172-0/+11
|
* 2006-11-17 Gary Benson <gbenson@redhat.com>Gary Benson2006-11-172-3/+8
| | | | | * java/net/DatagramSocket.java (getLocalAddress, connect, receive): Perform security check on address not hostname.
* 2006-11-16 Roman Kennke <kennke@aicas.com>Roman Kennke2006-11-162-10/+12
| | | | | | * gnu/javax/swing/text/html/parser/support/Parser.java (_handleText): Fixed condition for consuming whitespace. Removed validator check, this is superfluous now.
* 2006-11-16 Roman Kennke <kennke@aicas.com>Roman Kennke2006-11-165-17/+76
| | | | | | | | | | | | | | | | | | | * gnu/javax/swing/text/html/css/CSSParser.java (parseRuleset): Support 'combined' selectors. (main): Adapt callback for combined selectors support. * gnu/javax/swing/text/html/css/CSSParserCallback.java (startStatement): Take selector array as argument, to support combined selectors. * javax/swing/text/html/BlockView.java (calculateMinorAxisRequirements): Fetch and apply alignment. * javax/swing/text/html/StyleSheet.java (CSSStyle): Inverted the constants for correct precedence. (CSSStyleSheetParserCallback.styles): New field. Stores the current styles. (CSSStyleSheetParserCallback.style): Removed. (CSSStyleSheetParserCallback.declaration): Update multiple styles. (CSSStyleSheetParserCallback.end): Push multiple styles. (CSSStyleSheetParserCallback.start): Initialize multiple styles.
* 2006-11-16 Roman Kennke <kennke@aicas.com>Roman Kennke2006-11-165-75/+78
| | | | | | | | | | | | | | | | | | | | | * javax/swing/text/FlowView.java (LogicalView.getPreferredSpan): Calculate maximum correctly. * javax/swing/text/GlyphView.java (tabExpander): New field. (tabX): New field. (breakView): Set tabX on broken view. (getPartialSpan): Let the painter fetch the span. (getTabbedSpan): Update the tab expander field. Maybe trigger relayout. (getTabExpander): Simply return the stored expander. * javax/swing/text/Utilities.java (getTabbedTextOffset): Made algoritm a little smarter and more efficient. (getTabbedTextWidth): Don't add single char widths, instead add chunks of characters. * javax/swing/text/html/ParagraphView.java (calculateMinorAxisRequirements): Adjust margin only when the CSS span is not fixed.
* 2006-11-16 David Gilbert <david.gilbert@object-refinery.com>David Gilbert2006-11-162-18/+107
| | | | | | | | | | * java/beans/beancontext/BeanContextSupport.java (getChildBeanContextMembershipListener): Implemented, (getChildPropertyChangeListener): Implemented, (getChildSerializable): Implemented, (getChildVetoableChangeListener): Implemented, (getChildVisibility): Implemented, (setDesignTime): Use same property name as Sun's implementation.
* 2006-11-16 David Gilbert <david.gilbert@object-refinery.com>David Gilbert2006-11-163-50/+62
| | | | | | * java/beans/DesignMode.java: Reformatted and removed a FIXME, * java/beans/Statement.java (toString): Updated to match reference implementation.
* 2006-11-15 Roman Kennke <kennke@aicas.com>Roman Kennke2006-11-152-28/+179
| | | | | | | | | | | | | * javax/swing/text/html/HTMLEditorKit.java (InsertHTMLTextAction.actionPerformed): Also try inserting the alternate tag. Adjust the selection accordingly. (InsertHTMLTextAction.adjustSelection): New helper method. Adjusts the selection after an insertion. (insertAtBoundary): Delegate to deprecated method. (insertAtBoundry): Implemented missing method. (tryInsert): New helper method. (defaultActions): Implemented to fill the array with a couple of InsertHTMLTextActions.
* 2006-11-15 Roman Kennke <kennke@aicas.com>Roman Kennke2006-11-152-95/+213
| | | | | | | | | | | | | | | | | | | | | | | | | | | * javax/swing/text/html/ImageView.java (Observer): New class. Observes image loading. (haveHeight): New field. (haveWidth): New field. (height): New field. (width): New field. (image): New field. (imageIcon): New field. (loading): New field. (observer): New field. (reloadImage): New field. (reloadProperties): New field. (ImageView): Initialize observer and some flags. (getImage): Update the image state and return the image. (loadImage): New helper method. Actually starts loading. (paint): Rewritten to paint the image directly, not via Icon. (reloadImage): Rewritten. Loads the image and its properties. (renderIcon): Removed. No more necessary. (setPropertiesFromAttributes): Don't nullify image here. Added comment about missing impl. (setSize): Added comment about missing impl. (updateSize): New helper method. Updates the size attributes. (updateState): New helper method. Makes sure the image and its properties are valid.
* 2006-11-15 Roman Kennke <kennke@aicas.com>Roman Kennke2006-11-152-0/+11
| | | | | | * gnu/javax/swing/text/html/parser/support/Parser.java (_handleEndTag_remaining): Consume whitespace after a closing block like tag.
* 2006-11-15 Roman Kennke <kennke@aicas.com>Roman Kennke2006-11-154-27/+28
| | | | | | | | | | | | | | | | | | | | * javax/swing/text/html/HTMLDocument.java (HTMLReader.ParagraphAction.end): Call super instead of blockClose() directly. (HTMLReader.ParagraphAction.start): Call super instead of blockOpen() directly. (HTMLReader.parseStack): Removed. (HTMLReader.blockClose): Simply call addContent() with ' ' instead of doing more complicated stuff. Removed parseStack handling. (HTMLReader.blockOpen): Removed parseStack handling. (getInsertingReader): Removed parseStack init. * gnu/javax/swing/text/html/parser/htmlValidator.java (closeTag): Return true only when the tag actually should be closed. * gnu/javax/swing/text/html/parser/support/Parser.java (_handleEndTag): Only actually close the tag when the validator allows it.
* 2006-11-15 Roman Kennke <kennke@aicas.com>Roman Kennke2006-11-154-10/+173
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * javax/swing/text/html/CSS.java (Attribute.BORDER_SPACING): New field for the CSS border-spacing attribute. * javax/swing/text/html/StyleSheet.java (BoxPainter.bottomPadding): New field. (BoxPainter.leftPadding): New field. (BoxPainter.rightPadding): New field. (BoxPainter.topPadding): New field. (BoxPainter.BoxPainter): Fetch the MARGIN and PADDING* attributes too. (BoxPainter.getInset): Recognize and include the padding. (translateHTMLToCSS): Added mapping for CELLPADDING and CELLSPACING. javax/swing/text/html/TableView.java (RowView.calculateMajorAxisRequirements): Adjust req's for cellSpacing. (RowView.layoutMajorAxis): Adjust multi-column span for cellSpacing. (cellSpacing): New field. (columnRequirements): Made package private to avoid accessor method. (calculateMinorAxisRequirements): Include cellSpacing. (calculateMajorAxisRequirements): Overridden to include cellSpacing. (layoutMajorAxis): Likewise. (layoutColumns): Respect cellSpacing. (setParent): Overridden to fetch the CSS attributes when view gets connected. (setPropertiesFromAttributes): New method. Fetches the cell spacing from the CSS attributes.
* 2006-11-15 Roman Kennke <kennke@aicas.com>Roman Kennke2006-11-154-16/+39
| | | | | | | | | | | | * gnu/javax/swing/text/html/parser/support/Parser.java (_handleText): Consume whitespace directly before a closing tag. (restOfTag): Consume whitespace directly after opening. * gnu/javax/swing/text/html/parser/support/textPreProcessor.java (preprocess): Don't perform array boundary checking by catch AIOOBE, instead check the boundary in loop condition. * gnu/javax/swing/text/html/parser/support/low/Constants.java (TAG_CLOSE): New constants. Describes the token pattern for a closing tag.
* 2006-11-14 Roman Kennke <kennke@aicas.com>Roman Kennke2006-11-145-14/+76
| | | | | | | | | | | | | | | | | | * javax/swing/text/html/ImageView.java (getPreferredSpan): Use CSS length values. * javax/swing/text/html/TableView.java (CellView.calculateMajorAxisRequirements): Overridden to set the maximum reqs to maximum. (RowView.getMaximumSize): For the X_AXIS, set the maximum span to maximum. (RowView.getMinimumSpan): Overridden. For the X_AXIS, return the total column reqs. (RowView.getPreferredSpan): Overridden. For the X_AXIS, return the total column reqs. * gnu/javax/swing/text/html/css/CSSColor.java (convertValue): Catch NumberFormatExceptions for more robustness. * gnu/javax/swing/text/html/css/FontSize.java (mapPixels): Actually map px values. Catch NFE for more robustness.
* 2006-11-14 Roman Kennke <kennke@aicas.com>Roman Kennke2006-11-1418-3/+787
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * gnu/java/awt/font/autofit/AxisHints.java, * gnu/java/awt/font/autofit/Constants.java, * gnu/java/awt/font/autofit/GlyphHints.java, * nu/java/awt/font/autofit/Latin.java, * nu/java/awt/font/autofit/LatinAxis.java, * gnu/java/awt/font/autofit/LatinMetrics.java, * gnu/java/awt/font/autofit/Scaler.java, * gnu/java/awt/font/autofit/Script.java, * gnu/java/awt/font/autofit/ScriptMetrics.java, * gnu/java/awt/font/autofit/Segment.java, * gnu/java/awt/font/autofit/Width.java: New classes. This is some skeleton stuff for the FreeType-alike auto-gridfitter. * gnu/java/awt/font/opentype/CharGlyphMap.java: Made class public. * gnu/java/awt/font/opentype/OpenTypeFont.java (unitsPerEm): Made field public. (getRawGlyphOutline): New method. Fetches the raw outline. * gnu/java/awt/font/opentype/Scaler.java (getRawGlyphOutline): New method. Fetches the raw outline. * gnu/java/awt/font/opentype/truetype/GlyphLoader.java (loadGlyph): New method. This is used to load raw outlines. * gnu/java/awt/font/opentype/truetype/TrueTypeScaler.java (getRawOutline): New method. Fetches the raw outline. * gnu/java/awt/font/opentype/truetype/Zone.java: Made class public.
* 2006-11-14 Roman Kennke <kennke@aicas.com>Roman Kennke2006-11-142-2/+30
| | | | | | * javax/swing/RepaintManager.java (RepaintManager): Fetch the default state for the double buffering from a system property gnu.swing.doublebuffering.
* 2006-11-14 Roman Kennke <kennke@aicas.com>Roman Kennke2006-11-142-3/+37
| | | | | | | | * gnu/java/awt/peer/GLightweightPeer.java (handleEvent): Try to do something reasonable and trigger painting for the lightweight component. (getFontMetrics): Fetch and return a font metrics object from the Toolkit.
* 2006-11-13 Andreas Tobler <a.tobler@schweiz.org>Andreas Tobler2006-11-132-0/+5
| | | | * AUTHORS: Add myself.
* 2006-11-13 Thomas Fitzsimmons <fitzsim@redhat.com>Thomas Fitzsimmons2006-11-132-2/+12
| | | | | | * AUTHORS: Add Tania Bento, Thomas Fitzsimmons, Francis Kung and Dalibor Topic. Re-order 'K' section. Remove trailing space from Roman Kennke's entry.
* 2006-11-13 Roman Kennke <kennke@aicas.com>Roman Kennke2006-11-132-1/+26
| | | | | * java/awt/image/IndexColorModel.java (createCompatibleSampleModel): Implemented missing method.
* 2006-11-11 Andreas Tobler <a.tobler@schweiz.org>generics-merge-20061112Andreas Tobler2006-11-112-13/+35
| | | | | * gnu/java/awt/peer/gtk/GtkImageConsumer.java (setPixels): Handle data from big endian systems correctly.
* 2006-11-11 Roman Kennke <kennke@aicas.com>Roman Kennke2006-11-118-30/+184
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gnu/javax/swing/text/html/css/CSSColor.java (isValidColor): New helper method. Checks strings if they form a valid color value. * gnu/javax/swing/text/html/css/Length.java (Length): Catch number format exceptions. * javax/swing/text/html/CSS.java (addInternal): New method. Checks for shorthand CSS attributes and parses them. (parseBackgroundShorthand): New method. Parses the background shorthand attribute. * javax/swing/text/html/HTMLDocument.java (HTMLReader.LinkAction): Made class a subclass of HiddenAction. (HTMLReader.LinkAction.start): Implemented to load the linked stylesheet. (HTMLReader.LinkAction.end): Removed. This is not needed. * javax/swing/text/html/StyleSheet.java (CSSStyleSheetParserCallback.declaration): Push declaration through CSS.addInternal() to parse shorthand attributes. (addCSSAttribute): Push declaration through CSS.addInternal() to parse shorthand attributes. (importStyleSheet): Implemented. This adds a stylesheet from an URL. * javax/swing/text/html/TableView.java (calculateColumnRequirements): Increase column index for non CellView children to avoid endless loop. * javax/swing/text/CompositeView.java (setParent): Comparen with numChildren not with real arraylength.
* 2006-11-11 David Gilbert <david.gilbert@object-refinery.com>David Gilbert2006-11-112-4/+27
| | | | | * java/beans/beancontext/BeanContextSupport.java (getChildBeanContextChild): Implemented.
* 2006-11-10 Roman Kennke <kennke@aicas.com>Roman Kennke2006-11-102-4/+11
| | | | | * javax/swing/text/View.java (updateLayout): Only repaint when needed.
* 2006-11-10 David Gilbert <david.gilbert@object-refinery.com>David Gilbert2006-11-102-6/+15
| | | | | | * java/util/Collections.java (sort(List)): Minor API doc addition, (sort(List, Comparator)): Likewise.
* 2006-11-10 David Fu <fchoong@netbeans.jp>Roman Kennke2006-11-102-46/+12
| | | | | | | | * javax/swing/text/html/HTMLWriter.java (traverse): Removed Classpath specific handling of implied tags. (traverseHtmlFragment): Removed Classpath specific handling of implied tags.
* 2006-11-10 Roman Kennke <kennke@aicas.com>Roman Kennke2006-11-103-57/+279
| | | | | | | | | | | | | | | | | | | | | | | * javax/swing/text/ParagraphView.java (Row.getMaximumSize): Removed. This method is not necessary. * javax/swing/text/html/TableView.java (CellView): Moved attribute init to setPropertiesFromAttributes(). (setPropertiesFromAttributes): Fetch attributes here. (RowView.RowView): Documented. (RowView.getMaximumSpan): Overridden to restrict the max span in the Y direction. (RowView.layoutMajorAxis): Correctly layout the spans. (columnWidths): New field. Stores the width attributes of the columns. (calculateColumnRequirements): Added support for relative (== percent) width attributes. (calculateMajorAxisRequirements): Removed. (calculateMinorAxisRequirements): Removed unnecessary code. (getMaximumSpan): Overridden to restrict the table's width. (layoutColumns): Documented. Implement more clever table layout, i.e. for relative columns etc. (layoutMinorAxis): Don't mark rows invalid. (updateGrid): Added docs. Initialize column widths.
* Commit missing pieces.Roman Kennke2006-11-101-48/+90
|
* 2006-11-09 Roman Kennke <kennke@aicas.com>Roman Kennke2006-11-094-0/+477
| | | | | | | | | * gnu/java/awt/peer/headless/HeadlessGraphicsEnvironment, * gnu/java/awt/peer/headless/HeadlessToolkit: New classes. Implement basic headless toolkit. * java/awt/Toolkit.java (getDefaultToolkit): Check headless property and create headless toolkit when true.