protected static class AbstractRegionPainter.PaintContext extends Object
| Modifier and Type | Class and Description | 
|---|---|
| protected static class  | AbstractRegionPainter.PaintContext.CacheMode | 
| Constructor and Description | 
|---|
| PaintContext(Insets insets, Dimension canvasSize, boolean inverted)
              创建一个新的PaintContext,它不会尝试缓存或缩放任何缓存的图像。 
             | 
| PaintContext(Insets insets, Dimension canvasSize, boolean inverted, AbstractRegionPainter.PaintContext.CacheMode cacheMode, double maxH, double maxV)
              创建一个新的PaintContext。 
             | 
public PaintContext(Insets insets, Dimension canvasSize, boolean inverted)
insets - 伸展插图。 
            可能为null。 
            如果为空,则假定为0,0,0,0。 
           canvasSize - 编码各种x / y值时使用的画布的大小。 
            可能为null。 
            如果为空,则假设没有编码值,并且对“decode”方法之一的任何调用将返回传入的值。 
           inverted - 是否“颠倒”九平方格网格和拉伸插图的意义 
           public PaintContext(Insets insets, Dimension canvasSize, boolean inverted, AbstractRegionPainter.PaintContext.CacheMode cacheMode, double maxH, double maxV)
insets - 拉伸插图。 
            可能为null。 
            如果为空,则假定为0,0,0,0。 
           canvasSize - 编码各种x / y值时使用的画布的大小。 
            可能为null。 
            如果为空,则假设没有编码值,并且对“decode”方法之一的任何调用将返回传入的值。 
           inverted - 是否“颠倒”九平方格网格和拉伸插图的意义 
           cacheMode - 关于使用哪种缓存模式的提示。 
            如果为空,则设置为无缓存。 
           maxH - 从头开始重新绘制之前使用的水平方向的最大刻度。 
            例如,如果maxH为2,那么我们将尝试在从头开始重绘之前将任何高速缓存的图像缩放到两倍的画布宽度。 
            合理的maxH值可以提高涂装性能。 
            如果设置得太高,那么在较高的缩放级别下,您可能会看到较差的图形。 
            必须> = 1。 
           maxV - 在从头开始重新绘制之前使用的垂直方向的最大刻度。 
            例如,如果maxV为2,那么我们将尝试将任何高速缓存的图像缩放至两倍于画布高度,然后从头开始重绘。 
            合理的maxV值可以提高涂装性能。 
            如果设置得太高,那么在较高的缩放级别下,您可能会看到较差的图形。 
            必须> = 1。 
            Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.