|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* gnu/classpath/CPStringBuilder.java:
Removed.
* gnu/java/awt/font/OpenTypeFontPeer.java,
* gnu/java/awt/font/autofit/Edge.java,
* gnu/java/awt/font/autofit/LatinBlue.java,
* gnu/java/awt/font/autofit/Segment.java,
* gnu/java/awt/font/autofit/Width.java,
* gnu/java/awt/font/opentype/truetype/Point.java,
* gnu/java/awt/java2d/ActiveEdges.java,
* gnu/java/awt/peer/GnomeDesktopPeer.java,
* gnu/java/awt/peer/KDEDesktopPeer.java,
* gnu/java/awt/peer/x/XFontPeer.java:
Use CPStringBuilder.
* gnu/java/lang/CPStringBuilder.java:
Moved from gnu.classpath.
* gnu/java/lang/ClassHelper.java,
* gnu/java/lang/reflect/GenericSignatureParser.java,
* gnu/java/lang/reflect/TypeSignature.java,
* gnu/java/net/protocol/http/ChunkedInputStream.java,
* gnu/java/net/protocol/http/Cookie.java,
* gnu/java/net/protocol/http/HTTPConnection.java,
* gnu/java/net/protocol/http/Headers.java,
* gnu/java/net/protocol/http/Request.java:
Use CPStringBuilder.
* java/lang/reflect/Modifier.java:
Corrected import to point to correct package.
* java/util/Formatter.java:
Use CPStringBuilder.
* vm/reference/java/lang/reflect/Constructor.java,
* vm/reference/java/lang/reflect/Field.java,
* vm/reference/java/lang/reflect/Method.java:
Corrected import to point to correct package.
|
|
* gnu/java/awt/java2d/AbstractGraphics2D.java
(FONT): New constant field. This is the default font to use as long
as nothing else is set.
(paintContext): New field. Temporarily stores the paint context.
(scanlineConverters): New field. Stores the scanline converters
for each thread.
(shapeCache): Genericified.
(STANDARD_HINTS): New constant field. The standard rendering hints
as long as nothing else is set.
(STANDARD_STROKE): New constant field. The standard stroke as long
as nothing else is set.
(static_initializer): Initialize standard hints.
(AbstractGraphics2D): Use constant fields for hints and stroke.
(drawGlyphVector): Use simpler method to draw the outline.
(fillScanline): Use paintContext field.
(fillShape): Use new ScanlineConverter to fill shapes.
(fillShapeAntialias): Removed. This will be done in fillShape.
(fillShapeImpl): Removed. This is done now in the ScanlineConverter
class.
(getScanlineConverter): New method. Returns the scanline converter
for each thread.
(getSegments): Removed. This is now implemented in ScanlineConverter.
(getShapeCache): Use genericified shapeCache field.
(init): Use fixed default font. Don't fetch destination raster here.
* gnu/java/awt/java2d/ActiveEdges.java: New class. Stores a set
of active edges for scanline conversion.
* gnu/java/awt/java2d/PolyEdge.java
(poolNext): Implements linked list for edge pool.
(scanlineNext): Implements linked list for scanline edge lists.
(slope): Use fixed point decimal.
(slope,x0,y0,x1,y1,xIntersection): Use fixed point decimal.
(PolyEdge()): New constructor.
(PolyEdge): Use fixed point decimals.
(init): Use fixed point decimals.
(intersect): New method. Intersects this edge with a scanline.
* gnu/java/awt/java2d/Scanline.java: New class. A list of edges
for a scanline plus utilities.
* gnu/java/awt/java2d/ScanlineConverter.java: New class. Implements
an efficient scanline converter for rendering Shape objects.
|