Uses of Class javax.swing.text.Position.Bias

Uses in package javax.swing.text.html

Methods with parameter type javax.swing.text.Position.Bias

Shape
ImageView.modelToView(int pos, Shape area, Position.Bias bias)
This is currently implemented always to return the area of the image view, as the image is not divideable by character positions.
int
ImageView.viewToModel(float x, float y, Shape shape, Position.Bias[] bias)
Maps the picture co-ordinates into the image position in the model.

Uses in package javax.swing.plaf.basic

Methods with parameter type javax.swing.text.Position.Bias

void
BasicTextUI.damageRange(JTextComponent t, int p0, int p1, Position.Bias firstBias, Position.Bias secondBias)
Marks the specified range inside the text component's model as damaged and queues a repaint request.
int
Gets the next position inside the document model that is visible on screen, starting from pos.
Rectangle
Maps a position in the document into the coordinate space of the View.
int
Maps a point in the View coordinate space to a position inside a document model.

Uses in package javax.swing.plaf

Methods with parameter type javax.swing.text.Position.Bias

void
TextUI.damageRange(JTextComponent tc, int start, int end, Position.Bias startBias, Position.Bias endBias)
Repaints a range of characters, also specifying the bias for the start and end of the range.
int
TextUI.getNextVisualPositionFrom(JTextComponent tc, int pos, Position.Bias bias, int direction, Position.Bias[] outBias)
Calculates the caret position that is visually next to the given position.
Rectangle
Calculates the geometric extent of the character at the given offset.
int
Finds the caret position which is closest to the specified visual location.

Uses in package javax.swing.plaf.multi

Methods with parameter type javax.swing.text.Position.Bias

void
MultiTextUI.damageRange(JTextComponent tc, int start, int end, Position.Bias startBias, Position.Bias endBias)
Calls the TextUI.damageRange(JTextComponent,int,int,Position.Bias,Position.Bias) method for all the UI delegates managed by this MultiTextUI.
int
MultiTextUI.getNextVisualPositionFrom(JTextComponent tc, int pos, Position.Bias bias, int direction, Position.Bias[] outBias)
Calls the TextUI.getNextVisualPositionFrom(JTextComponent,int,Position.Bias,int,Position.Bias[]) method for all the UI delegates managed by this MultiTextUI, returning the position for the UI delegate from the primary look and feel.
Rectangle
Calls the TextUI.modelToView(JTextComponent,int,Position.Bias) method for all the UI delegates managed by this MultiTextUI, returning the bounds for the UI delegate from the primary look and feel.
int
Calls the TextUI.viewToModel(JTextComponent, Point, Bias[]) method for all the UI delegates managed by this MultiTextUI, returning the position for the UI delegate from the primary look and feel.

Uses in package javax.swing

Methods with parameter type javax.swing.text.Position.Bias

int
JList.getNextMatch(String prefix, int startIndex, Position.Bias direction)
Returns the index of the next list element (beginning at startIndex and moving in the specified direction through the list, looping around if necessary) that starts with prefix (ignoring case).
TreePath
JTree.getNextMatch(String prefix, int startingRow, Position.Bias bias)
Returns the next table element (beginning from the row startingRow that starts with prefix.

Uses in package javax.swing.text

Fields of type javax.swing.text.Position.Bias

Position.Bias
Position.Bias

Methods with parameter type javax.swing.text.Position.Bias

boolean
Determines if the next view in horinzontal direction is located to the east or west of the view at position pos.
boolean
Determines if the next view in horinzontal direction is located to the east or west of the view at position pos.
int
ParagraphView.getClosestPositionTo(int pos, Position.Bias bias, Shape a, int direction, Position.Bias[] biasRet, int rowIndex, int x)
int
Returns the next model location that is visible in east or west direction.
int
Returns the next model location that is visible in north or south direction.
int
CompositeView.getNextVisualPositionFrom(int pos, Position.Bias b, Shape a, int direction, Position.Bias[] biasRet)
Returns the next model location that is visible in eiter north / south direction or east / west direction.
int
GlyphView.getNextVisualPositionFrom(int pos, Position.Bias bias, Shape a, int direction, Position.Bias[] biasRet)
Returns the model location that should be used to place a caret when moving the caret through the document.
int
View.getNextVisualPositionFrom(int pos, Position.Bias b, Shape a, int d, Position.Bias[] biasRet)
Returns the document position that is (visually) nearest to the given document position pos in the given direction d.
int
Returns the model location that should be used to place a caret when moving the caret through the document.
int
Returns the next visual position in the specified direction at which one would place a caret.
int
Returns the view index of the child view that represents the specified model position.
int
Returns the index of the child view that represents the specified model location.
int
int
Returns the child view index of the view that represents the specified position in the document model.
Shape
Maps a model location to view coordinates.
Shape
BoxView.modelToView(int pos, Shape a, Position.Bias bias)
Maps the document model position pos to a Shape in the view coordinate space.
Shape
Maps a position in the document into the coordinate space of the View.
Shape
Maps a position in the document into the coordinate space of the View.
Shape
Maps a position in the document into the coordinate space of the View.
Shape
Maps a position in the document into the coordinate space of the View.
Shape
Maps a position in the document into the coordinate space of the View.
Shape
Provides a mapping from the document model coordinate space to the coordinate space of the view mapped to it.
Shape
PlainView.modelToView(int position, Shape a, Position.Bias b)
Shape
Maps a position in the document into the coordinate space of the View.
Shape
Maps a region in the document into the coordinate space of the View.
Shape
View.modelToView(int p1, Position.Bias b1, int p2, Position.Bias b2, Shape a)
Maps a region in the document into the coordinate space of the View.
Shape
Maps a position in the document into the coordinate space of the View.
void
void
void
void
int
AsyncBoxView.viewToModel(float x, float y, Shape a, Position.Bias[] b)
Maps view coordinates to a model location.
int
BoxView.viewToModel(float x, float y, Shape a, Position.Bias[] bias)
Maps coordinates from the View's space into a position in the document model.
int
ComponentView.viewToModel(float x, float y, Shape a, Position.Bias[] b)
Maps coordinates from the View's space into a position in the document model.
int
CompositeView.viewToModel(float x, float y, Shape a, Position.Bias[] b)
Maps coordinates from the View's space into a position in the document model.
int
FieldView.viewToModel(float fx, float fy, Shape a, Position.Bias[] bias)
Maps coordinates from the View's space into a position in the document model.
int
GlyphView.viewToModel(float x, float y, Shape a, Position.Bias[] b)
Maps coordinates from the View's space into a position in the document model.
int
IconView.viewToModel(float x, float y, Shape a, Position.Bias[] b)
Maps coordinates from the View's space into a position in the document model.
int
PasswordView.viewToModel(float fx, float fy, Shape a, Position.Bias[] bias)
Provides a mapping from the view coordinate space to the logical coordinate space of the model.
int
PlainView.viewToModel(float x, float y, Shape a, Position.Bias[] b)
Maps coordinates from the View's space into a position in the document model.
int
View.viewToModel(float x, float y, Shape a, Position.Bias[] b)
Maps coordinates from the View's space into a position in the document model.
int
GlyphView.GlyphPainter.viewToModel(GlyphView v, float x, float y, Shape a, Position.Bias[] biasRet)
Maps a visual position into a document location.