org.netbeans.editor.view.spi |
|
Java Source File Name | Type | Comment |
EstimatedSpanView.java | Interface | Views that implement this interface
signal that they work in a mode when
they just estimate their size instead
of exact measurements that are likely
more expensive for computation.
By default the view should be in non-estimated mode
i.e. |
FlyView.java | Interface | Interface marking the flyweight views. |
LockView.java | Class | View that allow to lock the view hierarchy. |
RenderingContextView.java | Interface | View providing an access to the
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 . |
ViewFragment.java | Interface | Interface describing a view being fragment of some original view.
It provides information that the fragment usually has to know anyway
but that it's not available through
the
javax.swing.text.View class that the fragment is instance of.
The instances of this interface are created once fragments
of a view have to created e.g. |
ViewHierarchyMutex.java | Class | Mutex that allows only one thread to proceed
other threads must wait until the ONE finishes. |
ViewInsets.java | Class | Immutable analogy of the
java.awt.Insets based
on floats. |
ViewLayoutQueue.java | Class | This is a layout queue similar to the
javax.swing.text.LayoutQueue with certain improvements. |
ViewLayoutState.java | Interface | Wrapper around a view that caches computed layout information
about preferred, minimum and maximum span along minor axis
and the preferred span along the major axis.
It's primarily intended to be used for views being children
of GapBoxView based implementations.
After a change occurs in the wrapped view it calls
getParent().preferenceChanged(this, width, height)
the parent view will notify the layout state by calling
ViewLayoutState.viewPreferenceChanged(width,height) to mark
that the cached values need to be updated.
At some point later the parent view calls
ViewLayoutState.updateLayout() to update the layout of the child
and synchronize the caching variables.
The layout state keeps one of the axes (either View.X_AXIS
or View.Y_AXIS as the major one i.e. |
ViewRenderingContext.java | Class | Context used for rendering of a view.
It provides methods useful for measuring
of the view contents.
It also provides information about additional highlights
that the view should respect when painting
a particular text.
A particular view can obtain an instance
of ViewRenderingContext by using methods in
RenderingContextView .
Only one thread at the time can safely use
the rendering context. |
ViewUtilities.java | Class | Various utility methods related to views. |