| Modifier and Type | Class and Description |
|---|---|
| private static enum | CacheFilter.
Defines the state when we're in the midst of scrolling a cached image |
| Modifier and Type | Field and Description |
|---|---|
| private Rectangle | |
| private ImageData | |
| private double | |
| private double | |
| private double | |
| private double | |
| private final Affine2D | |
| private double | |
| private CacheHint | |
| private static final double | |
| private double | |
| private double | |
| private NGNode | |
| private boolean | |
| private boolean | |
| private final Affine2D | |
| private CacheFilter. | |
| private static final RectBounds | |
| private static final Affine3D | |
| private static final DirtyRegionContainer | |
| private static final Rectangle | |
| private RTTexture | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv BaseBounds | |
| private Rectangle | |
| pack-priv ImageData | createImageData(FilterContext fctx, Rectangle bounds)
Create the ImageData for the cached bitmap, with the specified bounds. |
| public void | |
| pack-priv Rectangle | getCacheBounds(Rectangle
rectangle to store bounds to bounds, BaseTransform transformation xform)Get the cache bounds. |
| pack-priv void | |
| public void | |
| pack-priv void | |
| pack-priv final boolean | |
| pack-priv final boolean | |
| private boolean | |
| pack-priv boolean | matchesHint(CacheHint cacheHint)
Indicates whether this CacheFilter's hint matches the CacheHint passed in. |
| pack-priv void | moveCacheBy(ImageData
cache cachedImageData, double x-axis delta xDelta, double y-axis delta yDelta)Moves a subregion of the cache, "scrolling" the cache by x/y Delta. |
| private boolean | needToRenderCache(BaseTransform renderXform, double[] xformInfo, float pixelScaleX, float pixelScaleY)
|
| pack-priv void | |
| pack-priv void | renderCacheToScreen(Object implGraphics, Filterable implImage, double mxt, double myt)
Render the cached image to the screen, translated by mxt, myt. |
| pack-priv void | renderNodeToCache(ImageData
the cache cacheData, Rectangle cache bounds cacheBounds, BaseTransform transformation xform, Rectangle null or dirty rectangle to be rendered dirtyBounds)Render node to cache. |
| pack-priv void | renderNodeToScreen(Object implGraphics)
Render the node directly to the screen, in the case that the cached image is unexpectedly null. |
| pack-priv boolean | |
| public void | |
| pack-priv double | Returns: -1.0 if the matrix element is negative, otherwise 1.0the matrix element representing a scale factor v)Return the unit distance in a direction compatible with the matrix element. |
| pack-priv double[] | unmatrix(BaseTransform xform)
Given a BaseTransform, decompose it into values for scaleX, scaleY and rotate. |
| pack-priv boolean | |
| pack-priv void | |
| pack-priv void | v2combine(double[] v0, double[] v1, double[] result, double scalarA, double scalarB)
make a linear combination of two vectors and return the result result = (v0 * scalarA) + (v1 * scalarB) From V3Combine() in GGVecLib.c |
| pack-priv double | |
| pack-priv double | |
| pack-priv void |
| cacheBounds | back to summary |
|---|---|
| private Rectangle cacheBounds | |
| cachedImageData | back to summary |
|---|---|
| private ImageData cachedImageData | |
| cachedRotate | back to summary |
|---|---|
| private double cachedRotate | |
| cachedScaleX | back to summary |
|---|---|
| private double cachedScaleX | |
| cachedScaleY | back to summary |
|---|---|
| private double cachedScaleY | |
| cachedX | back to summary |
|---|---|
| private double cachedX | |
| cachedXform | back to summary |
|---|---|
| private final Affine2D cachedXform | |
| cachedY | back to summary |
|---|---|
| private double cachedY | |
| cacheHint | back to summary |
|---|---|
| private CacheHint cacheHint | |
| EPSILON | back to summary |
|---|---|
| private static final double EPSILON | |
| lastXDelta | back to summary |
|---|---|
| private double lastXDelta | |
| lastYDelta | back to summary |
|---|---|
| private double lastYDelta | |
| node | back to summary |
|---|---|
| private NGNode node | |
| rotateHint | back to summary |
|---|---|
| private boolean rotateHint | |
| scaleHint | back to summary |
|---|---|
| private boolean scaleHint | |
| screenXform | back to summary |
|---|---|
| private final Affine2D screenXform | |
| scrollCacheState | back to summary |
|---|---|
| private CacheFilter. | |
| TEMP_BOUNDS | back to summary |
|---|---|
| private static final RectBounds TEMP_BOUNDS | |
| TEMP_CACHEFILTER_TRANSFORM | back to summary |
|---|---|
| private static final Affine3D TEMP_CACHEFILTER_TRANSFORM | |
| TEMP_CONTAINER | back to summary |
|---|---|
| private static final DirtyRegionContainer TEMP_CONTAINER | |
| TEMP_RECT | back to summary |
|---|---|
| private static final Rectangle TEMP_RECT | |
| tempTexture | back to summary |
|---|---|
| private RTTexture tempTexture | |
| wasUnsupported | back to summary |
|---|---|
| private boolean wasUnsupported | |
| CacheFilter | back to summary |
|---|---|
| protected CacheFilter(NGNode node, CacheHint cacheHint) | |
| computeDirtyBounds | back to summary |
|---|---|
| pack-priv BaseBounds computeDirtyBounds(BaseBounds region, BaseTransform tx, GeneralTransform3D pvTx) | |
| computeDirtyRegionForTranslate | back to summary |
|---|---|
| private Rectangle computeDirtyRegionForTranslate() Compute the dirty region that must be re-rendered after scrolling | |
| createImageData | back to summary |
|---|---|
| pack-priv ImageData createImageData(FilterContext fctx, Rectangle bounds) Create the ImageData for the cached bitmap, with the specified bounds. | |
| dispose | back to summary |
|---|---|
| public void dispose() | |
| getCacheBounds | back to summary |
|---|---|
| pack-priv Rectangle getCacheBounds(Rectangle bounds, BaseTransform xform) Get the cache bounds.
| |
| imageDataUnref | back to summary |
|---|---|
| pack-priv void imageDataUnref() | |
| invalidate | back to summary |
|---|---|
| public void invalidate() | |
| invalidateByTranslation | back to summary |
|---|---|
| pack-priv void invalidateByTranslation(double translateXDelta, double translateYDelta) | |
| isRotateHint | back to summary |
|---|---|
| pack-priv final boolean isRotateHint() | |
| isScaleHint | back to summary |
|---|---|
| pack-priv final boolean isScaleHint() | |
| isXformScrollCacheCapable | back to summary |
|---|---|
| private boolean isXformScrollCacheCapable(double[] xformInfo) | |
| matchesHint | back to summary |
|---|---|
| pack-priv boolean matchesHint(CacheHint cacheHint) Indicates whether this CacheFilter's hint matches the CacheHint passed in. | |
| moveCacheBy | back to summary |
|---|---|
| pack-priv void moveCacheBy(ImageData cachedImageData, double xDelta, double yDelta) Moves a subregion of the cache, "scrolling" the cache by x/y Delta. On of xDelta/yDelta must be zero. The rest of the pixels will be cleared.
| |
| needToRenderCache | back to summary |
|---|---|
| private boolean needToRenderCache(BaseTransform renderXform, double[] xformInfo, float pixelScaleX, float pixelScaleY) | |
| render | back to summary |
|---|---|
| pack-priv void render(Graphics g) | |
| renderCacheToScreen | back to summary |
|---|---|
| pack-priv void renderCacheToScreen(Object implGraphics, Filterable implImage, double mxt, double myt) Render the cached image to the screen, translated by mxt, myt. | |
| renderNodeToCache | back to summary |
|---|---|
| pack-priv void renderNodeToCache(ImageData cacheData, Rectangle cacheBounds, BaseTransform xform, Rectangle dirtyBounds) Render node to cache.
| |
| renderNodeToScreen | back to summary |
|---|---|
| pack-priv void renderNodeToScreen(Object implGraphics) Render the node directly to the screen, in the case that the cached image is unexpectedly null. See JDK-8108473. | |
| scrollCacheCapable | back to summary |
|---|---|
| pack-priv boolean scrollCacheCapable() True if we can use scrolling optimization on this node. | |
| setHint | back to summary |
|---|---|
| public void setHint(CacheHint cacheHint) | |
| unitDir | back to summary |
|---|---|
| pack-priv double unitDir(double v) Return the unit distance in a direction compatible with the matrix element.
| |
| unmatrix | back to summary |
|---|---|
| pack-priv double[] unmatrix(BaseTransform xform) Given a BaseTransform, decompose it into values for scaleX, scaleY and rotate. The return value is a double[3], the values being: [0]: scaleX [1]: scaleY [2]: rotation angle, in radians, between *** and *** From unmatrix() in unmatrix.c | |
| unsupported | back to summary |
|---|---|
| pack-priv boolean unsupported(double[] xformInfo) Are we attempting to use cache for an unsupported transform mode? Mostly this is for trying to rotate while scaling the object by different amounts in the x and y directions (this also includes shearing). | |
| updateScreenXform | back to summary |
|---|---|
| pack-priv void updateScreenXform(double[] xformInfo) | |
| v2combine | back to summary |
|---|---|
| pack-priv void v2combine(double[] v0, double[] v1, double[] result, double scalarA, double scalarB) make a linear combination of two vectors and return the result result = (v0 * scalarA) + (v1 * scalarB) From V3Combine() in GGVecLib.c | |
| v2dot | back to summary |
|---|---|
| pack-priv double v2dot(double[] v0, double[] v1) dot product of 2 vectors of length 2 | |
| v2length | back to summary |
|---|---|
| pack-priv double v2length(double[] v) returns length of input vector Based on V3Length() in GGVecLib.c | |
| v2scale | back to summary |
|---|---|
| pack-priv void v2scale(double[] v, double newLen) scale v[] to be relative to newLen From V3Scale() in GGVecLib.c | |
| Modifier and Type | Field and Description |
|---|---|
| public static final CacheFilter. | |
| public static final CacheFilter. | |
| public static final CacheFilter. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static CacheFilter. | |
| public static CacheFilter. |
| CHECKING_PRECONDITIONS | back to summary |
|---|---|
| public static final CacheFilter. | |
| DISABLED | back to summary |
|---|---|
| public static final CacheFilter. | |
| ENABLED | back to summary |
|---|---|
| public static final CacheFilter. | |
| ScrollCacheState | back to summary |
|---|---|
| private ScrollCacheState() | |
| valueOf | back to summary |
|---|---|
| public static CacheFilter. | |
| values | back to summary |
|---|---|
| public static CacheFilter. | |