CVSROOT: /cvsroot/classpath Module name: classpath Changes by: Roman Kennke <rabbit78> 07/01/01 23:28:01
Modified files: . : ChangeLog gnu/java/awt/java2d: AbstractGraphics2D.java PolyEdge.java Added files: gnu/java/awt/java2d: ActiveEdges.java Scanline.java ScanlineConverter.java Log message: 2007-01-02 Roman Kennke <[EMAIL PROTECTED]> * 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. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/classpath/ChangeLog?cvsroot=classpath&r1=1.9032&r2=1.9033 http://cvs.savannah.gnu.org/viewcvs/classpath/gnu/java/awt/java2d/AbstractGraphics2D.java?cvsroot=classpath&r1=1.13&r2=1.14 http://cvs.savannah.gnu.org/viewcvs/classpath/gnu/java/awt/java2d/PolyEdge.java?cvsroot=classpath&r1=1.3&r2=1.4 http://cvs.savannah.gnu.org/viewcvs/classpath/gnu/java/awt/java2d/ActiveEdges.java?cvsroot=classpath&rev=1.1 http://cvs.savannah.gnu.org/viewcvs/classpath/gnu/java/awt/java2d/Scanline.java?cvsroot=classpath&rev=1.1 http://cvs.savannah.gnu.org/viewcvs/classpath/gnu/java/awt/java2d/ScanlineConverter.java?cvsroot=classpath&rev=1.1