Package | Description |
---|---|
org.netbeans.editor.view.spi | |
org.netbeans.lib.editor.view |
Modifier and Type | Method and Description |
---|---|
ViewLayoutState |
ViewLayoutState.selectLayoutMajorAxis(int majorAxis)
Select which axis will be used as major axis by this layout state.
|
Modifier and Type | Method and Description |
---|---|
float |
ViewLayoutState.Parent.getMinorAxisSpan(ViewLayoutState child)
Get span of the given child along the minor axis.
|
void |
ViewLayoutState.Parent.layoutInvalid(ViewLayoutState child)
Notify this view that layout of the particular child
has become invalid and needs to be updated.
|
void |
ViewLayoutState.Parent.majorAxisPreferenceChanged(ViewLayoutState child,
double majorAxisSpanDelta)
By using this method a child layout state notifies its parent that
its requirement for span along the major axis has changed
against the previous value.
|
void |
ViewLayoutState.Parent.minorAxisPreferenceChanged(ViewLayoutState child)
By using this method a child layout state notifies its parent that
either preferred, minimum or maximum spans or aligment
along the minor axis has changed against their previous values.
|
void |
ViewLayoutState.Parent.repaint(ViewLayoutState child,
double majorAxisOffset,
double majorAxisSpan,
float minorAxisOffset,
float minorAxisSpan)
Inform the parent that the child layout state needs a repaint.
|
Modifier and Type | Class and Description |
---|---|
class |
DefaultViewLayoutState
Extension of
SimpleViewLayoutState
that thoroughly handles minimum and maximum spans. |
class |
GapBoxView
Composite view implementation inspired
by the
AsyncBoxView
holding its children in GapObjectArray
and capable of posting complex layout changes
into a separate layout thread. |
class |
GapDocumentView
View responsible for holding all line views for a particular document.
|
class |
GapLineView
Extension of
GapBoxView encapsulating
one line of a text capable of doing baseline layout
and line wrapping. |
class |
GapMultiLineView
Extension of
GapLineView capable of encapsulating
one or more lines depending on a possible presence of collapsed
fold views as children of this view. |
class |
SimpleViewLayoutState
Implementation of
ViewLayoutState
for non-flyweight views that only caches preferred spans
along both axes. |
Modifier and Type | Method and Description |
---|---|
protected ViewLayoutState |
GapBoxView.createChild(View v)
New ViewLayoutState records are created through
this method to allow subclasses the extend
the ViewLayoutState records to do/hold more
|
protected ViewLayoutState |
GapBoxView.createDefaultChild(View v)
Return default implementation of the view layout state wrapper.
|
protected ViewLayoutState |
GapBoxView.getChild(int index)
Fetch the object representing the layout state of
of the child at the given index.
|
ViewLayoutState |
GapBoxView.selectLayoutMajorAxis(int axis) |
ViewLayoutState |
SimpleViewLayoutState.selectLayoutMajorAxis(int axis) |
Modifier and Type | Method and Description |
---|---|
protected int |
GapBoxView.getChildIndex(ViewLayoutState child)
Get the index of the given child layout state in this view.
|
protected int |
GapBoxView.getChildIndexNoCheck(ViewLayoutState child)
Get the index of the given child layout state in this view.
|
float |
GapBoxView.getMinorAxisSpan(ViewLayoutState child)
Get span of the given child along the minor axis of this view.
|
void |
GapBoxView.layoutInvalid(ViewLayoutState child)
Called by children to mark layout of this view invalid.
|
void |
GapBoxView.majorAxisPreferenceChanged(ViewLayoutState child,
double majorAxisSpanDelta)
Preference of one of the children has changed along the major axis.
|
void |
GapBoxView.minorAxisPreferenceChanged(ViewLayoutState child)
Preference of one of the children has changed along the minor axis.
|
void |
GapBoxView.repaint(ViewLayoutState child,
double majorAxisOffset,
double majorAxisSpan,
float minorAxisOffset,
float minorAxisSpan) |
void |
GapDocumentView.repaint(ViewLayoutState child,
double majorAxisOffset,
double majorAxisSpan,
float minorAxisOffset,
float minorAxisSpan) |