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
-拉伸插图。可能是空的。如果为空,则假定为0,0,0,0。
canvasSize
-时使用的编码不同的X / Y值的画布的大小。可能是空的。如果为空,则假定有没有编码的值,和任何调用的“解码”的方法将返回传递的值。
inverted
-是否“反转”的9-square网格的含义和拉伸的插图
public PaintContext(Insets insets, Dimension canvasSize, boolean inverted, AbstractRegionPainter.PaintContext.CacheMode cacheMode, double maxH, double maxV)
insets
-拉伸插图。可能是空的。如果为空,则假定为0,0,0,0。
canvasSize
-时使用的编码不同的X / Y值的画布的大小。可能是空的。如果为空,则假定有没有编码的值,和任何调用的“解码”的方法将返回传递的值。
inverted
-是否“反转”的9-square网格的含义和拉伸的插图
cacheMode
-一个提示,使用缓存模式。如果为空,则设置为不缓存。
maxH
在水平方向最大规模使用前泛舟,重新从零开始。例如,如果maxh是2,然后我们会尝试任何规模的缓存图像高达2倍的画布的宽度在重新从头开始。合理的maxh值可能会提高绘画表现。如果设置得太高,那么你可能会得到可怜的图形在更高的缩放级别。必须> = 1。
maxV
-在垂直方向上的最大规模使用前泛舟,重新从零开始。例如,如果MaxV是2,然后我们会尝试任何规模的缓存图像高达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.