|
org.netbeans.modules.editor.lib/1 1.14.0 3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface ViewLayoutState.Parent
Interface that the parent view of the view
wrapped by ViewLayoutState
is expected to implement.
Method Summary | |
---|---|
float |
getMinorAxisSpan(ViewLayoutState child)
Get span of the given child along the minor axis. |
void |
layoutInvalid(ViewLayoutState child)
Notify this view that layout of the particular child has become invalid and needs to be updated. |
void |
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 |
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 |
repaint(ViewLayoutState child,
double majorAxisOffset,
double majorAxisSpan,
float minorAxisOffset,
float minorAxisSpan)
Inform the parent that the child layout state needs a repaint. |
Method Detail |
---|
void majorAxisPreferenceChanged(ViewLayoutState child, double majorAxisSpanDelta)
ViewLayoutState.updateLayout()
execution.
child
- child layout state which preference has changed.majorAxisSpanDelta
- delta between the new span and the original span.void minorAxisPreferenceChanged(ViewLayoutState child)
ViewLayoutState.updateLayout()
execution.
child
- child layout state which preference has changed.void layoutInvalid(ViewLayoutState child)
float getMinorAxisSpan(ViewLayoutState child)
child
- child layout state for which the span is being
determined.void repaint(ViewLayoutState child, double majorAxisOffset, double majorAxisSpan, float minorAxisOffset, float minorAxisSpan)
updateLayout()
.
child
- child that needs its area to be repainted.majorAxisOffset
- offset along the major axis defining
the begining of the repaint region. If the allocation
has changed along the major axis the view is fully repainted
(see majorAxisPreferenceChanged()
).
minorAxisOffset
- offset along the minor axis
defining the begining of the repaint region.majorAxisSpan
- span along the major axis
that should be repainted. If it is set to zero then
it means that the end of the repaint region along the major axis
span is determined by the span allocated for the child
in this parent.minorAxisSpan
- span along the minor axis
that should be repainted. If it is set to zero then
it means that the end of the repaint region along the minor axis
span is determined by the span of this parent.
|
org.netbeans.modules.editor.lib/1 1.14.0 3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |