|
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 | |||||||||
java.lang.Objectjavax.swing.text.View
org.netbeans.editor.view.spi.LockView
public class LockView
View that allow to lock the view hierarchy. It's a filter view that is being installed under the root view.
| Field Summary |
|---|
| Fields inherited from class javax.swing.text.View |
|---|
BadBreakWeight, ExcellentBreakWeight, ForcedBreakWeight, GoodBreakWeight, X_AXIS, Y_AXIS |
| Fields inherited from interface javax.swing.SwingConstants |
|---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
| Constructor Summary | |
|---|---|
LockView(View view)
|
|
| Method Summary | |
|---|---|
View |
breakView(int axis,
float len,
Shape a)
|
void |
changedUpdate(DocumentEvent e,
Shape a,
ViewFactory f)
|
static LockView |
get(View view)
Find the LockView instance in a view hierarchy
by traversing it up to the root view. |
float |
getAlignment(int axis)
|
AttributeSet |
getAttributes()
Fetches the attributes to use when rendering. |
Shape |
getChildAllocation(int index,
Shape a)
|
Document |
getDocument()
|
Element |
getElement()
|
int |
getEndOffset()
|
Thread |
getLockThread()
Return the thread that holds a lock on the view hierarchy. |
float |
getMaximumSpan(int axis)
|
float |
getMinimumSpan(int axis)
|
int |
getNextVisualPositionFrom(int pos,
Position.Bias b,
Shape a,
int direction,
Position.Bias[] biasRet)
|
float |
getPreferredSpan(int axis)
|
int |
getResizeWeight(int axis)
|
int |
getStartOffset()
|
String |
getToolTipText(float x,
float y,
Shape allocation)
|
View |
getView(int n)
Gets the n-th view in this container. |
int |
getViewCount()
|
static PriorityMutex |
getViewHierarchyMutex(JTextComponent component)
Get mutex used to lock the view hierarchy. |
int |
getViewIndex(int pos,
Position.Bias b)
|
void |
insertUpdate(DocumentEvent e,
Shape a,
ViewFactory f)
|
boolean |
isPriorityThreadWaiting()
|
void |
lock()
|
Shape |
modelToView(int p0,
Position.Bias b0,
int p1,
Position.Bias b1,
Shape a)
|
Shape |
modelToView(int pos,
Shape a,
Position.Bias b)
|
void |
paint(Graphics g,
Shape allocation)
|
void |
preferenceChanged(View child,
boolean width,
boolean height)
|
void |
removeUpdate(DocumentEvent e,
Shape a,
ViewFactory f)
|
void |
render(Runnable r)
|
void |
setParent(View parent)
|
protected void |
setParentLocked(View parent)
|
void |
setSize(float width,
float height)
|
void |
setView(View v)
Set a new single child of this view. |
void |
unlock()
|
int |
viewToModel(float x,
float y,
Shape a,
Position.Bias[] bias)
|
| Methods inherited from class javax.swing.text.View |
|---|
append, breakView, createFragment, forwardUpdate, forwardUpdateToView, getBreakWeight, getContainer, getGraphics, getParent, getViewFactory, getViewIndex, insert, isVisible, modelToView, remove, removeAll, replace, updateChildren, updateLayout, viewToModel |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LockView(View view)
| Method Detail |
|---|
public static PriorityMutex getViewHierarchyMutex(JTextComponent component)
LockView itself uses this mutex
as well as the code folding hierarchy.
public static LockView get(View view)
LockView instance in a view hierarchy
by traversing it up to the root view.
view - view in the view hierarchy. null is accepted too.
LockView or null
if there is no LockView instance present
in the view hierarchy of the view is no longer
part of the view hierarchy.public void setParent(View parent)
protected void setParentLocked(View parent)
public void setView(View v)
public void lock()
public void unlock()
public boolean isPriorityThreadWaiting()
public Thread getLockThread()
public void render(Runnable r)
public AttributeSet getAttributes()
getAttributes in class Viewpublic float getPreferredSpan(int axis)
getPreferredSpan in class Viewpublic float getMinimumSpan(int axis)
getMinimumSpan in class Viewpublic float getMaximumSpan(int axis)
getMaximumSpan in class Viewpublic void preferenceChanged(View child, boolean width, boolean height)
preferenceChanged in class Viewpublic float getAlignment(int axis)
getAlignment in class Viewpublic void paint(Graphics g, Shape allocation)
public int getViewCount()
getViewCount in class Viewpublic View getView(int n)
n - the number of the view to get
public int getViewIndex(int pos,
Position.Bias b)
getViewIndex in class Viewpublic Shape getChildAllocation(int index, Shape a)
getChildAllocation in class Viewpublic Shape modelToView(int pos, Shape a, Position.Bias b) throws BadLocationException
modelToView in class ViewBadLocationExceptionpublic Shape modelToView(int p0, Position.Bias b0, int p1, Position.Bias b1, Shape a) throws BadLocationException
modelToView in class ViewBadLocationException
public int viewToModel(float x,
float y,
Shape a,
Position.Bias[] bias)
viewToModel in class View
public int getNextVisualPositionFrom(int pos,
Position.Bias b,
Shape a,
int direction,
Position.Bias[] biasRet)
throws BadLocationException
getNextVisualPositionFrom in class ViewBadLocationExceptionpublic void insertUpdate(DocumentEvent e, Shape a, ViewFactory f)
insertUpdate in class Viewpublic void removeUpdate(DocumentEvent e, Shape a, ViewFactory f)
removeUpdate in class Viewpublic void changedUpdate(DocumentEvent e, Shape a, ViewFactory f)
changedUpdate in class Viewpublic String getToolTipText(float x, float y, Shape allocation)
getToolTipText in class Viewpublic Document getDocument()
getDocument in class Viewpublic int getStartOffset()
getStartOffset in class Viewpublic int getEndOffset()
getEndOffset in class Viewpublic Element getElement()
getElement in class Viewpublic View breakView(int axis, float len, Shape a)
public int getResizeWeight(int axis)
getResizeWeight in class View
public void setSize(float width,
float height)
|
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 | |||||||||