summaryrefslogtreecommitdiff
path: root/gnu/java/awt/java2d/ShapeCache.java
Commit message (Collapse)AuthorAgeFilesLines
* 2007-05-08 Roman Kennke <roman@kennke.org>Roman Kennke2007-05-081-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gnu/java/awt/java2d/AbstractGraphics2D.java (AA_SAMPLING): Removed. (alpha): Removed field. (edgeTable): Removed field. (fillScanlineAA): Removed obsolete method. (drawPolyline): Implemented by using a GeneralPath. (drawPolygon): Reset the cached polygon. (fillPolygon): Reset the cached polygon. (fillShape): Default to antialias on for text. (rawDrawLine): Use ShapeCache. (rawDrawRect): Use ShapeCache. (rawFillRect): Use ShapeCache. (fillScanlineAA): New method for antialiased rendering. * gnu/java/awt/java2d/ScanlineConverter.java (scanlinesPerPixel): New field. (minX,maxX): New fields. (scanlineYCov,scanlineXCov): New fields. (slPix0): New field. (alphaRes): New field. (renderShape): Add antialiasing functionality. (doScanline): Add antialiasing functionality. (setResolution): Add antialiasing functionality. (addShape): Determine span in X direction. (fit): Fix thinko. * gnu/java/awt/java2d/ShapeCache.java (polyline): New field for caching polylines.
* 2006-09-29 Roman Kennke <kennke@aicas.com>Roman Kennke2006-09-291-0/+85
* gnu/java/awt/java2d/AbstractGraphics2D.java: Updated API docs. (isOptimized): Initialize with true. (paintRaster): Removed unneeded field. (shapeCache): New static field. Caches certain shapes for reuse. (computeIntersection): Removed unneeded casts. (drawArc): Use shape cache. (drawImage): Removed unneeded statement. (drawLine): Use shape cache. Pass untranslated coordinates to rawDrawLine(). (drawOval): Use shape cache. (drawPolygon): Use shape cache. (drawRect): Overridden to provide accelerated rectangle drawing if possible and to use the shape cache. (drawRoundRect): Use shape cache. (fillArc): Use shape cache. (fillOval): Use shape cache. (fillPolygon): Use shape cache. (fillRect): Pass untranslated coordinates to rawFillRect(). Use shape cache. (fillRoundRect): Use shape cache. (fillScanlineAA): Removed unneeded statement. (fillScanline): Updated API docs. (fillShapeAntialias): Removed unnecessary cast. (fillShapeImpl): Update API docs. Removed unnecessary cast. (fillShape): Updated API docs. (getShapeCache): New helper method. * gnu/java/awt/java2d/ShapeCache.java: New class. Caches certain shapes for reuse in AbstractGraphics2D.