public interface RenderingContextView
ViewRenderingContext
in the view hierarchy.
Accessing of the ViewRenderingContext
from a view must always be done like this:
RenderingContextView rcView = RenderingContextView.get(view);
if (rcView != null) {
rcView.acquireRenderingContext();
try {
...
} finally {
rcView.releaseRenderingContext();
}
}
Only one thread at the time can safely access methods
of the RenderingContextView. It does not have
to be event dispatch thread.
| Modifier and Type | Method and Description |
|---|---|
ViewRenderingContext |
acquireRenderingContext(View v)
Acquire an instance of rendering context.
|
void |
releaseRenderingContext(ViewRenderingContext vrc)
Release rendering context previously acquired by
acquireRenderingContext(javax.swing.text.View). |
ViewRenderingContext acquireRenderingContext(View v)
#releaseContext().v - view for which the rendering context is being obtained.void releaseRenderingContext(ViewRenderingContext vrc)
acquireRenderingContext(javax.swing.text.View).vrc - rendering context to be released.Built on May 16 2013. | Portions Copyright 1997-2013 Oracle. All rights reserved.