| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |
|
|
|
|
|
|
| |
* gnu/java/lang/management/BeanImpl.java:
(getAttribute(String)): Fix Map and List conversion.
* java/lang/management/ManagementFactory.java:
(newPlatformMXBeanProxy(MBeanServerConnection,
String, Class<T>)): Add a comma.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Genericized.
(VMNetworkInterface): Updated.
* java/net/URLClassLoader.java (urls): Genericized.
(urlinfos): Likewise.
(addURLImpl): Updated.
(findClass): Likewise.
(newInstance): Likewise.
* java/net/URL.java (ph_cache): Genericized.
(getURLStreamHandler): Updated.
* java/net/ResolverCache.java (cache): Genericized.
(killqueue): Likewise.
* java/net/NetworkInterface.java (getInetAddresses): Genericized.
* java/net/MimeTypeMapper.java (mime_types): Genericized.
(fillFromFile): Likewise.
(main): Likewise.
* gnu/java/net/protocol/jar/Handler.java (flat): Genericized.
* gnu/java/net/protocol/jar/Connection.java (JarFileCache.cache):
Genericized.
(JarFileCache.get): Updated.
* gnu/java/net/protocol/http/SimpleCookieManager.java (cookies):
Genericized.
(SimpleCookieManager): Updated.
(setCookie): Likewise.
(getCookies): Likewise.
(addCookies): Likewise.
* gnu/java/net/protocol/http/Request.java (responseHeaderHandlers):
Genericized.
(Request): Updated.
(createResponseBodyStream): Removed unused variable.
* gnu/java/net/protocol/http/HTTPURLConnection.java (connect): Remove
unused variable.
(getRequestProperties): Genericized.
* gnu/java/net/protocol/http/HTTPConnection.java
(handshakeCompletedListeners): Genericized.
(nonceCounts): Likewise.
(HTTPConnection): Updated.
(Pool.connectionPool): Likewise.
(getNonceCount): Updated.
(incrementNonce): Likewise.
* gnu/java/net/protocol/http/Headers.java (headers): Genericized.
* gnu/java/net/protocol/http/ChunkedInputStream.java (CR, LF): Removed
unused fields.
* gnu/java/net/protocol/ftp/FTPURLConnection.java (connect):
Genericized.
(getRequestProperties): Likewise.
(addRequestPropertyValue): Likewise. Fixed return result.
* gnu/java/net/protocol/ftp/FTPConnection.java (nameList):
Genericized.
* gnu/java/net/local/LocalSocket.java: Fixed imports.
* gnu/java/net/local/LocalServerSocket.java: Fixed imports.
* gnu/java/net/loader/URLStreamHandlerCache.java (factoryCache):
Genericized.
(add): Updated.
(get): Likewise.
* gnu/java/net/loader/URLLoader.java (getClassPath): Genericized.
* gnu/java/net/loader/JarURLLoader.java (classPath): Genericized.
(initialize): Updated.
(getClassPath): Genericized.
* gnu/java/net/IndexListParser.java (prefixes): Genericized.
(IndexListParser): Updated.
(getHeaders): Likewise.
* gnu/java/net/HeaderFieldHelper.java (headerFieldKeys): Genericized.
(headerFieldValues): Likewise.
(HeaderFieldHelper): Updated.
(getHeaderFieldValueByKey): Likewise.
(getHeaderFields): Likewise.
* gnu/java/net/GetLocalHostAction.java: Genericized.
* gnu/java/net/DefaultContentHandlerFactory.java (imageTypes):
Genericized.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* java/util/prefs/AbstractPreferences.java (childCache): Genericized.
(nodeListeners): Likewise.
(preferenceListeners): Likewise.
(cachedChildren): Rewrote.
(childrenNames): Updated.
(addNodeChangeListener): Likewise.
(addPreferenceChangeListener): Likewise.
* gnu/java/util/prefs/gconf/GConfNativePeer.java (getKeys):
Genericized.
(getChildrenNodes): Likewise.
(gconf_client_all_nodes): Likewise.
(gconf_client_all_keys): Likewise.
* gnu/java/util/prefs/MemoryBasedPreferences.java (entries):
Genericized.
(keysSpi): Likewise.
(getSpi): Likewise.
* gnu/java/util/prefs/GConfBasedPreferences.java (childrenNamesSpi):
Genericized.
(keysSpi): Likewise.
(postorderRemove): Likewise.
* gnu/java/util/prefs/EventDispatcher.java (queue): Genericized.
(run): Updated.
|
| |
|
|
|
| |
* gnu/java/awt/peer/gtk/BufferedImageGraphics.java
(drawGlyphVector): Round bounds instead of casting & truncating..
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/font/FontDelegate.java
(FLAG_FITTED): New constant field.
(FLAG_NO_HINT_HORIZONTAL): New constant field.
(FLAG_NO_HINT_VERTICAL): New constant field.w
(FLAG_NO_HINT_EDGE_POINTS): New constant field.
(FLAG_NO_HINT_STRONG_POINTS): New constant field.
(FLAG_NO_HINT_WEAK_POINTS): New constant field.
(TYPE_FITTED): Replaced by flags above.
(TYPE_SCALED): Replaced by flags above.
(TYPE_ORIGINAL): Replaced by flags above.
* gnu/java/awt/font/GNUGlyphVector.java
(getGlyphOutline): Use FLAG_FITTED.
* gnu/java/awt/font/autofit/AutoHinter.java
(setFlags): New method. Sets hinting flags.
* gnu/java/awt/font/autofit/GlyphHints.java
(flags): New field.
(alignStrongPoint): Use 16.16 fixed arithmetic.
(doAlignEdgePoints): New helper method.
(doAlignStrongPoints): New helper method.
(doAlignWeakPoints): New helper method.
(doHorizonal): Check flags.
(doVertical): Check flags.
* gnu/java/awt/font/autofit/Latin.java
(applyHints): Check hinting flags.
(computeEdges): Also initialize fitted position.
(scaleMetricsDim): Commented out buggy block.
* gnu/java/awt/font/opentype/Hinter.java
(setFlags): New method.
* gnu/java/awt/font/opentype/OpenTypeFont.java
(checkHinter): Accept flags parameter.
(createGlyphVector): Pass flags to hinter.
(getGlyphOutline): Pass flags to hinter.
* gnu/java/awt/font/opentype/truetype/Fixed.java
(floatValue16): New method.
* gnu/java/awt/font/opentype/truetype/Zone.java
(getX): Use new flags.
(getY): Use new flags.
|
| |
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/CairoGraphics2D.java:
(draw): Pass boolean to setAntialias.
(drawGlyphVector): Likewise.
(drawString): Likewise.
(fill): Likewise.
(setAntialias): Change signature to accept boolean.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/font/FontDelegate.java
(TYPE_FITTED): New constant.
(TYPE_ORIGINAL): New constant.
(TYPE_SCALED): New constant.
(getGlyphOutline): Allow the kind of outline be specified as one
of the constants above.
* gnu/java/awt/font/GNUGlyphVector.java
(getGlyphOutline(int,int)): Add type parameter for fetching
the intermediate outlines for debugging.
(getGlyphOutline(int)): Fetch TYPE_FITTED outline from font
delegate.
(getOutline(float,float,int)): Added for debugging purpose.
(performDefaultLayout): Round the advance here for better hinting.
This is only a workaround for not hinting the metrics right now.
* gnu/java/awt/font/autofit/AxisHints.java
(getEdgeIndex): New helper method. Fetches the index of
a given edge in the array.
(newEdge): Fixed sorting.
* gnu/java/awt/font/autofit/Edge.java
(pos): New field. Stores the fitted position.
(scale): New field.
(toString): More debug output.
* gnu/java/awt/font/autofit/GlyphHints.java
(alignEdgePoints): New method. Aligns the points of an outline
to their edges hinted positions.
(alignStrongPoints): New method. Aligns strong points.
(alignWeakPoints): New method. Aligns weak points.
(getPointIndex): New helper method.
(iupInterp): New helper method. Interpolates points.
(iupShift): New helper method. Shifts a complete contour.
(storePoint): New helper method.
* gnu/java/awt/font/autofit/Latin.java
(alignEdgePoints): Moved to GlyphHints.
(alignLinkedEdge): New helper method.
(alignSerifEdge): New helper method.
(alignStrongPoints): Moved to GlyphHints.
(alignWeakPoints): Moved to GlyphHints.
(applyHints): Call moved methods on GlyphHints.
(computeStemWidth): New helper method.
(doHorzSnap): New helper method.
(doVertSnap): New helper method.
(doMono): New helper method.
(doneWidth): New helper method.
(doStemAdjust): New helper method.
(hintEdges): Implemented.
(initWidths): Removed old comment.
(snapWidth): New helper method.
* gnu/java/awt/font/autofit/Width.java
(toString): More debug output.
* gnu/java/awt/font/opentype/OpenTypeFont.java
(getGlyphOutline): Add type parameter for debugging.
* gnu/java/awt/font/opentype/Scaler.java
(getOutline): Add type parameter for debugging.
* gnu/java/awt/font/opentype/truetype/Point.java
Make all flags of short type. Add new accessor methods for
coordinates that can return scaled and original shapes too.
* gnu/java/awt/font/opentype/truetype/TrueTypeScaler.java
(getOutline): Add type parameter for debugging.
* gnu/java/awt/font/opentype/truetype/Zone.java
Add type parameter to X and Y accessors.
(getPath): Add type parameter.
(getPathIterator): Likewise.
(transform): Do store transformed value in the x and y fields too.
* gnu/java/awt/font/opentype/truetype/ZonePathIterator.java
(type): New field.
(ZonePathIterator): Add type parameter.
(getSegment): Fetch coordinates with type.
(getStartSegment): Likewise.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/CairoGraphics2D.java
(antialias): New private field.
(ignoreAA): New private field.
(cairoSetAntialias): New native method.
(draw): Check anti-alias setting.
(drawGlyphVector): Likewise.
(drawString): Likewise.
(fill): Likewise.
(setAntialias): New private method.
(setup): Set default antialias value.
* include/gnu_java_awt_peer_gtk_CairoGraphics2D.h: Regenerated.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoGraphics2D.c:
(gnu_java_awt_peer_gtk_CairoGraphics2D_cairoSetAntialias): New method.
|
| |
|
|
|
| |
* gnu/java/nio/ChannelInputStream.java (read): New overload.
(read): Mask return result.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
imports.
(getHeaderFields): Change return type to Map<String,List<String>>
* gnu/java/net/protocol/http/Headers.java: Clean imports.
(headers) Change type to ArrayList<HeaderElement>.
(iterator) Change return type to Iterator<HeaderElement>.
(getValue) Remove casts.
(put) Same.
(putAll) Same.
(remove) Same.
(getAsMap) Change return type to Map<String,List<String>> and use
generics internally.
(getHeaderName) Remove casts.
(getHeaderValue) Same.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/font/autofit/HintScaler.java
Renamed Scaler to HintScaler to avoid name-clash.
* gnu/java/awt/font/autofit/AutoHinter.java
(scaler): New field.
(applyHints): Scale the metrics before applying the hints.
(init): Copy font into scaler.
* gnu/java/awt/font/autofit/Edge.java
(blueEdge): New field.
(toString): Include first and last fields in debug output.
* gnu/java/awt/font/autofit/GlyphHints.java
(reload): Grab the scales here.
* gnu/java/awt/font/autofit/Latin.java
(computeBlueEdges): Implemented blue-edge detection.
(computeEdges): Correctly calculate edgeDistanceThreshold and
the scaled edge position.
(initWidths): Renamed Scaler to HintScaler. Sort widths and
store widthCount.
(scaleMetrics): Add HintScaler parameter. Implemented to scale
the metrics.
(scaleMetricsDim): New helper method.
* gnu/java/awt/font/autofit/LatinAxis.java
(orgDelta): New field.
(orgScale): New field.
* gnu/java/awt/font/autofit/LatinBlue.java: Reordered flags.
(FLAG_BLUE_ACTIVE): New flag.
* gnu/java/awt/font/autofit/Scaler.java: Renamed to HintScaler.
* gnu/java/awt/font/autofit/Script.java
(scaleMetrics): Add HintScaler argument.
* gnu/java/awt/font/autofit/ScriptMetrics.java
Renamed Scaler to HintScaler.
* gnu/java/awt/font/autofit/Utils.java
(sort(int,Width[])): New helper method. Sorts Width arrays.
(mulDiv): New helper method.
(pixFloor): New helper method.
(pixRound): New helper method.
* gnu/java/awt/font/autofit/Width.java
(toString): New method. For debug output.
* gnu/java/awt/font/opentype/truetype/Fixed.java
(mul16): New method. Multiplies with 16.16 fixed point arithmetics.
(div16): New method. Divides with 16.16 fixed point arithmetics.
(valueOf16): New method. Converts double to 16.16 fixed point.
* gnu/java/awt/font/opentype/truetype/Zone.java
(scaleX): New field.
(scaleY): New field.
(shearX): New field.
(shearY): New field.
(transform): Store translation and shearing in fields instead of
local vars.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/font/autofit/AutoHinter.java
(hints): New field.
(applyHints): New method. Implements the actual hinting.
* gnu/java/awt/font/autofit/AxisHints.java
(edges): New field.
(AxisHints): Initialize edges field.
(newEdge): New method. Records a new edge and sorts it into the
existing list.
* gnu/java/awt/font/autofit/Edge.java: New class.
* gnu/java/awt/font/autofit/GlyphHints.java
(GlyphHints): Initialize the scales with 1.
(doHorizontal): New method.
(doVertical): New method.
* gnu/java/awt/font/autofit/Latin.java
(alignEdgePoints): New stub method.
(alignStrongPoints): New stub method.
(alignWeakPoints): New stub method.
(applyHints): Take outline as argument. Implemented skeleton.
(computeBlueEdges): New stub method.
(computeEdges): New method. Detects edges on a glyph outline.
(detectFeatures): New methods. Performs local feature analysis.
(hintEdges): New stub method.
(initBlues): Remove debug output.
* gnu/java/awt/font/autofit/LatinAxis.java
(edgeDistanceThreshold): Changed to be an int
(as fixed-point decimal).
* gnu/java/awt/font/autofit/Script.java
(applyHints): Include the outline in the method call.
* gnu/java/awt/font/autofit/Segment.java
(FLAG_EDGE_NORMAL): Set value to 0.
(FLAG_EDGE_SERIF): New constant.
(FLAG_EDGE_DONE): New constant.
(edge): New field.
(edgeNext): New field.
* gnu/java/awt/font/opentype/Hinter.java
(applyHints): New method. Applies the hints to the specified outline.
* gnu/java/awt/font/opentype/OpenTypeFont.java
(getGlyphOutline): Check the hinter and call the scaler with the
hinter.
* gnu/java/awt/font/opentype/Scaler.java
(getOutline): Also pass a Hinter.
* gnu/java/awt/font/opentype/truetype/GlyphLoader.java
(loadCompoundGlyph): Also accept a hinter argument.
(loadGlyph): Also accept a hinter argument.
(loadSimpleGlyph): Also accept a hinter argument. Hint the
resulting outline.
(loadSubGlyph): Also accept a hinter argument.
* gnu/java/awt/font/opentype/truetype/TrueTypeScaler.java
(getOutline): Accept hinter and pass it to the loader.
(getRawOutline): Pass null hinter to the loader.
|
| |
|
|
|
| |
* gnu/java/awt/font/autofit/LatinBlue.java:
New class.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/font/autofit/Latin.java
(CAPITAL_TOP): New constant.
(CAPITAL_BOTTOM): New constant.
(SMALL_F_TOP): New constant.
(SMALL_TOP): New constant.
(SMALL_BOTTOM): New constant.
(SMALL_MINOR): New constant.
(BLUE_MAX): New constant.
(IDENTITY): New constant transform.
(MAX_TEST_CHARS): New constant.
(TEST_CHARS): New constants.
(initBlues): Implemented.
(initWidths): Use constant identity transform for loading
the test glyph.
(isTopBlue): New helper method.
* gnu/java/awt/font/autofit/LatinAxis.java
(widths): Initialize in constructor.
(blues): New field. Stores the blue zones.
(blueCount): New field. The number of blue zones.
(LatinAxis): New constructor.
* gnu/java/awt/font/autofit/Utils.java
(sort): New helper method.
* gnu/java/awt/font/opentype/truetype/Zone.java
(getContourEnd): New helper method.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/font/autofit/AutoHinter.java: New class. The entry
point into the autohinter.
* gnu/java/awt/font/autofit/AxisHints.java
(majorDir): New field.
(numEdges): New field.
(numSegments): New field.
(AxisHints): New constructor.
(newSegment): New method. Records a new segment.
* gnu/java/awt/font/autofit/Constants.java
(DIR_DOWN): New constant.
(DIR_LEFT): New constant.
(DIR_RIGHT): New constant.
(DIR_TOP): New constant.
(DIR_NONE): New constant.
* gnu/java/awt/font/autofit/GlyphHints.java
(contours): New field.
(numContours): New field.
(maxPoints): New field.
(metrics): New field.
(numPoints): New field.
(points): New field.
(GlyphHints): New constructor.
(computeInflectionPoints): New helper method.
(computeSegments): Moved to Latin.
(linkSegments): Moved to Lating.
(reload): Implemented.
(rescale): Copy the metrics.
(setWeakPoint): New helper method.
* gnu/java/awt/font/autofit/Latin.java
(MAX_WIDTH): Make package private.
(computeSegments): New method. Computes the segments to a glyph.
(initWidths): Implemented. Determines the standard widths of stems
for the font.
(linkSegments): New method. Links stem segments and determines
serif segments.
* gnu/java/awt/font/autofit/LatinMetrics.java
(LatinMetrics()): New constructor.
(LatinMetrics(OpenTypeFont)): New constructor.
* gnu/java/awt/font/autofit/ScriptMetrics.java
(ScriptMetrics): New constructor.
* gnu/java/awt/font/autofit/Segment.java
(FLAG_EDGE_NORMAL): New constant.
(FLAG_EDGE_ROUND): New constant.
(contour): New field.
(dir): New field.
(first): New field.
(flags): New field.
(index): Removed.
(last): New field.
(len): New field.
(maxPos): New field.
(minPos): New field.
(numLinked): New field.
(score): New field.
(serif): New field.
(toString): New method. For debug output.
* gnu/java/awt/font/autofit/Utils.java: New utility class.
* gnu/java/awt/font/opentype/Hinter.java: New interface for
hinter implementations.
* gnu/java/awt/font/opentype/OpenTypeFont.java
(hinter): New field. Stores the hinter for that font.
(checkHinter): Checks if a hinter is installed and installs one
if necessary.
(createGlyphVector): Check installed hinter.
* gnu/java/awt/font/opentype/truetype/Fixed.java: Make class public
for access in the autohinting package.
* gnu/java/awt/font/opentype/truetype/Point.java: New class. Stores
coordinates and additional info that describe the outline of a glyph.
* gnu/java/awt/font/opentype/truetype/Zone.java: Use Point class
for storing the points.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/lang/management/BeanImpl.java:
(translate(String)): Trim strings of whitespace.
* javax/management/MBeanAttributeInfo.java:
(MBeanAttributeInfo(String,String,Method,Method)):
Use Class.getName() for normal (non-parameterized) cases.
* javax/management/MBeanConstructorInfo.java:
(MBeanConstructorInfo(String, Constructor)):
Likewise.
* javax/management/MBeanOperationInfo.java:
(MBeanOperationInfo(String, Method)):
Likewise.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/lang/management/BeanImpl.java:
(translate(String)): Handle Map and List as
Strings of the form "java.util.Map<K,V>" and
"java.util.List<E>"
* javax/management/MBeanAttributeInfo.java:
(MBeanAttributeInfo(String,String,Method,Method)):
Use generic parameter and return types.
* javax/management/MBeanConstructorInfo.java:
(MBeanConstructorInfo(String, Constructor)):
Use generic parameter types.
* javax/management/MBeanOperationInfo.java:
(MBeanOperationInfo(String, Method)):
Use generic parameter and return types.
|
| |
|
|
|
|
|
|
|
| |
* gnu/java/lang/management/BeanImpl.java:
(translate(String)): Comment out code for using type
variables for Map and List.
* java/lang/Thread.java:
(Thread(ThreadGroup,Runnable,String,long)): Fix
incrementation of totalThreadsCreated to be prior to use.
|
| |
|
|
| |
* Merge of generics-branch to HEAD (woohoo!)
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
SocketException.
(HTTPConnection): Handle NumberFormatException in properties parsing.
(Pool.get): Set timeout on reused sockets.
* gnu/java/net/protocol/http/HTTPURLConnection.java (proxyPort):
Initialize.
(HTTPURLConnection): Cleanup properties handling.
(getConnection): Use both connection and read timeouts.
(setConnectTimeout): Removed.
(setReadTimeout): New method.
* java/net/URLConnection.java (timeout): Renamed to...
(connectTimeout): ... connectTimeout throughout.
(readTimeout): New field.
(getReadTimeout): New method.
(setReadTimeout): New method.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/AsyncImage.java
(Loader.run): Synchronize on the AsyncImage to avoid threading
issues.
(addObservers): Check for obs==null outside and synchronize on
this inside to avoid locking issues.
(checkImage): New helper method.
(notifyObservers): Check that the correct lock is held and
remove actual locking.
* gnu/java/awt/peer/gtk/GtkToolkit.java
(checkImage): Added special handling for AsyncImages.
|
| |
|
|
| |
null Observer.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/AsyncImage.java
(Loader.run): Nullify observers after loading.
(observers): Made package private.
(addObserver): Check for null observers field. Create local
variable for thread safety.
(getHeight): Use addObserver() for checking state of field
and notifying observer when necessary.
(getWidth): Use addObserver() for checking state of field
and notifying observer when necessary.
(getProperty): Use addObserver() for checking state of field
and notifying observer when necessary.
(notifyObservers): Check for null observers field. Create local
variable for thread safety.
|
| |
|
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/AsyncImage.java
(addObserver): Check for null and ignore null observers.
(getWidth): Check for null and ignore null observers.
(getHeight): Check for null and ignore null observers.
(getProperty): Check for null and ignore null observers.
|
| |
|
|
|
|
| |
* gnu/java/awt/peer/gtk/BufferedImageGraphics.java
(constructor): Handle translated subimages properly, ie, if the image's
0,0 position is not the data buffer's first element.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/AsyncImage.java: New class. Supports
asynchronous loading of images.
* gnu/java/awt/peer/gtk/CairoGraphics2D.java
(drawImage): Fetch real image from possibly AsyncImage.
* gnu/java/awt/peer/gtk/ComponentGraphics.java
(drawImage): Fetch real image from possibly AsyncImage.
* gnu/java/awt/peer/gtk/GtkToolkit.java
(createImage(URL)): Create async image.
(imageOrError): Made method static for easy access from AsyncImage.
(prepareImage): For async images, register the observer to the
image.
|
| |
|
|
|
| |
(paintComponent): Include paint area from event.
(updateComponent): Include paint area from event.
|
| |
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/FreetypeGlyphVector.java
(FreeTypeGlyphVector): Don't filter control chars here.
(getGlyphs): Filter control chars and replace them by
hair space char.
|
| |
|
|
|
|
|
|
|
|
|
| |
* gnu/java/lang/management/BeanImpl.java:
(translate(String)): Don't assume the list uses "E",
just use the first and only type variable.
* java/lang/management/ManagementFactory.java:
(getPlatformMBeanServer()): Register logging bean.
* javax/management/openmbean/OpenType.java:
(OpenType(String,String,String)): Actually use
the string created to handle arrays.
|
| |
|
|
|
|
|
| |
to currentPaintArea.
(paintComponent): Work with local reference to currentPaintArea.
(updateComponent): Likewise.
(coalescePaintEvent): Set currentPaintArea.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/java/awt/peer/gtk/BufferedImageGraphics.java
(draw): Set transform in buffered composite.
(drawComposite): Do not transform bounds; round bounds.
(drawGlyphVector): Set transform in buffered composite.
(drawRenderedImage): Set transform in buffered composite.
(fill): Set transform in buffered composite.
(updateBufferedImage): Fix scanline & height calculations.
* gnu/java/awt/peer/gtk/CairoGraphics2D.java
(createPath): Simplify width & height calculation.
(drawImage): Also transform width & height.
|
| |
|
|
|
| |
* gnu/java/awt/peer/gtk/CairoGraphics2D.java
(drawLine): Remove hard-coded pixel shifting.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
| | |
|
| |
|
|
|
|
|
|
|
| |
* 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.
|
| |
|
|
|
|
|
| |
* 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.
|
| |
|
|
|
| |
* gnu/java/awt/java2d/QuadSegment.java
(offsetSubdivided): Handle special straight-line cases.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
| |
|
|
|
| |
* gnu/java/awt/peer/headless/HeadlessGraphicsEnvironment.java
(createGraphics): Try to use Cairo graphics if available.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
| |
|
|
|
|
|
|
|
| |
(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.
|
| |
|
|
|
| |
* gnu/java/util/regex/RETokenNamedProperty.java:
(getHandler(String)): Add support for 'all'.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
| |
|
|
|
|
|
|
| |
* 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.
|
| |
|
|
|
| |
* gnu/java/awt/peer/gtk/GtkImageConsumer.java (setPixels): Handle data
from big endian systems correctly.
|
| |
|
|
|
|
|
|
|
| |
* 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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
2006-11-09 Roman Kennke <kennke@aicas.com>
* gnu/java/awt/peer/swing/SwingButtonPeer.java
(SwingButton.button): New field.
(SwingButton.SwingButton): Added constructor.
(SwingButton.isShowing): Access button field instead of
the surrounding class.
(SwingButton.getParent): Access button field instead of
the surrounding class.
(SwingButtonPeer): Call new SwingButton constructor.
* gnu/java/awt/peer/swing/SwingComponent.java:
Several documentation updates.
* gnu/java/awt/peer/swing/SwingComponentPeer.java
(currentPaintEvents): New field.
(peerFont): New field.
(SwingComponentPeer): Initialize currentPaintEvents fields.
(coalescePaintEvents): Implemented.
(dispose): Unregister peer from heavyweight list of its container.
(getGraphics): Fetch graphics from parent component.
(handleEvent): Discard paint event if its coalesced.
(init): Register component with its container for proper painting.
(paint): Call peerPaint().
(peerPaint): Added argument that indicates if we should update.
Call paint or update on the actual AWT component.
(peerPaintComponent): New method. Paints the peer (Swing) component.
(setFont): Set peerFont field.
* gnu/java/awt/peer/swing/SwingContainerPeer.java
(backbuffer): New field.
(focusOwner): New field.
(heavyweightDescendents): New field.
(SwingContainerPeer): Take Container as argument. Don't call init
yet.
(addHeavyweightDescendent): New method.
(getFocusOwner): New helper method.
(getInsets): Delegate to insets().
(handleKeyEvent): Dispatch event to focus owner.
(handleMouseEvent): Dispatch to child component.
(isDoubleBuffering): New helper method.
(peerPaint): Overridden to implement container painting with
double buffering.
(peerPaintChildren): New method. Paints the descendents of this
container.
(removeHeavyweightDescendent): New helper method.
* gnu/java/awt/peer/swing/SwingFramePeer.java
(peerPaint): Removed.
(peerPaintComponent): Overridden to paint the menu bar.
* gnu/java/awt/peer/swing/SwingLabelPeer.java
(SwingLabel.label): New field.
(SwingLabel.SwingLabel): Added constructor with Label argument.
(SwingLabel.getGraphics): Implemented to fetch the graphics from
the actual AWT component.
(SwingLabel.getParent): Implemented to fetch the parent from
the AWT component.
(SwingLabel.isShowing): Access the label field.
(SwingLabelPeer): Set alignment from label.
* gnu/java/awt/peer/swing/SwingListPeer.java: New class.
* gnu/java/awt/peer/swing/SwingMenuBarPeer.java: Documentation
fixlet.
* gnu/java/awt/peer/swing/SwingPanelPeer.java:
Don't be a lighweight peer.
(SwingPanelPeer): Call init.
* gnu/java/awt/peer/swing/SwingTextAreaPeer.java: New class.
* gnu/java/awt/peer/swing/SwingTextFieldPeer.java
(SwingTextField.textField): New field.
(SwingTextField.SwingTextField): New constructor.
(SwingTextField.isShowing): Access field not enclosing class.
(SwingTextField.getGraphics): New method.
(SwingTextField.getParent): New method.
(SwingTextFieldPeer): Call new constructor.
(select): Renamed arguments.
* gnu/java/awt/peer/swing/SwingWindowPeer.java
(SwingWindowPeer): Call init.
|