Access | Constructor and Description |
---|---|
protected |
Modifier and Type | Method and Description |
---|---|
public abstract void | damageRange(JTextComponent
the text component for which this UI is installed t, int the beginning of the range >= 0 p0, int the end of the range >= p0 p1)Causes the portion of the view responsible for the given part of the model to be repainted. |
public abstract void | damageRange(JTextComponent
the text component for which this UI is installed t, int the beginning of the range >= 0 p0, int the end of the range >= p0 p1, Position.the bias of the first character position, toward the
previous character or the next character firstBias,the bias of the second character position, toward the
previous character or the next character secondBiasCauses the portion of the view responsible for the given part of the model to be repainted. |
public abstract EditorKit | Returns: the editor kit bindingthe text component for which this UI is installed t)Fetches the binding of services that set a policy for the type of document being edited. |
public abstract int | Returns: the location within the model that best represents the next location visual positionthe text component for which this UI is installed t, int the position to convert >= 0 pos, Position.the bias for the position b,the direction from the current position that can
be thought of as the arrow keys typically found on a keyboard.
This may be SwingConstants.WEST, SwingConstants.EAST,
SwingConstants.NORTH, or SwingConstants.SOUTH direction, Position.an array to contain the bias for the returned position biasRetProvides a way to determine the next visually represented model location that one might place a caret. |
public abstract View | Returns: aView with the allocation of the associated
text componentthe text component for which this UI is installed t)Fetches a View with the allocation of the associated text component (i.e. the root of the hierarchy) that can be traversed to determine how the model is being represented spatially. |
public String | Returns: aString containing the tooltipthe text component for which this UI is installed t, Point a pt)Point specifying location for which to get a tooltip
Deprecated
since 9. replaced by
Returns the string to be used as the tooltip at the passed in location.
getToolTipText2D(JTextComponent, Point2D)
|
public String | Returns: aString containing the tooltipthe text component for which this UI is installed t, Point2D a pt)Point specifying location for which to get a tooltipReturns the string to be used as the tooltip at the passed in location. |
public abstract Rectangle | Returns: the coordinates as aRectangle the text component for which this UI is installed t, int the local location in the model to translate >= 0 pos)
Deprecated
since 9. replaced by
Converts the given location in the model to a place in
the view coordinate system.
modelToView2D(JTextComponent, int, Position.
|
public abstract Rectangle | Returns: the coordinates as aRectangle the text component for which this UI is installed t, int the local location in the model to translate >= 0 pos, Position.the bias for the position bias
Deprecated
since 9. replaced by
Converts the given location in the model to a place in
the view coordinate system.
modelToView2D(JTextComponent, int, Position.
|
public Rectangle2D | Returns: the coordinates as aRectangle2D the text component for which this UI is installed t, int the local location in the model to translate pos, Position.>= 0 the bias for the position biasConverts the given location in the model to a place in the view coordinate system. |
public abstract int | Returns: the offset from the start of the document >= 0the text component for which this UI is installed t, Point the location in the view to translate. This
should be in the same coordinate system as the mouse
events. pt)
Deprecated
since 9. replaced by
Converts the given place in the view coordinate system
to the nearest representative location in the model.
viewToModel2D(JTextComponent, Point2D, Position.
|
public abstract int | Returns: the location within the model that best represents the given point in the view >= 0the text component for which this UI is installed t, Point the location in the view to translate.
This should be in the same coordinate system
as the mouse events. pt, Position.filled in by this method to indicate whether
the point given is closer to the previous or the next
character in the model biasReturn
Deprecated
since 9. replaced by
Provides a mapping from the view coordinate space to the logical
coordinate space of the model.
viewToModel2D(JTextComponent, Point2D, Position.
|
public int | Returns: the location within the model that best represents the given point in the view>= 0 the text component for which this UI is installed t, Point2D the location in the view to translate. pt, Position.filled in by this method to indicate whether
the point given is closer to the previous or the next
character in the model biasReturnProvides a mapping from the view coordinate space to the logical coordinate space of the model. |
TextUI | back to summary |
---|---|
protected TextUI() Constructor for subclasses to call. |
damageRange | back to summary |
---|---|
public abstract void damageRange(JTextComponent t, int p0, int p1) Causes the portion of the view responsible for the given part of the model to be repainted.
|
damageRange | back to summary |
---|---|
public abstract void damageRange(JTextComponent t, int p0, int p1, Position. Causes the portion of the view responsible for the given part of the model to be repainted.
|
getEditorKit | back to summary |
---|---|
public abstract EditorKit getEditorKit(JTextComponent t) Fetches the binding of services that set a policy for the type of document being edited. This contains things like the commands available, stream readers and writers, etc.
|
getNextVisualPositionFrom | back to summary |
---|---|
public abstract int getNextVisualPositionFrom(JTextComponent t, int pos, Position. Provides a way to determine the next visually represented model location that one might place a caret. Some views may not be visible, they might not be in the same order found in the model, or they just might not allow access to some of the locations in the model.
|
getRootView | back to summary |
---|---|
public abstract View getRootView(JTextComponent t) Fetches a View with the allocation of the associated text component (i.e. the root of the hierarchy) that can be traversed to determine how the model is being represented spatially.
|
getToolTipText | back to summary |
---|---|
public String getToolTipText(JTextComponent t, Point pt)
Returns the string to be used as the tooltip at the passed in location.
|
getToolTipText2D | back to summary |
---|---|
public String getToolTipText2D(JTextComponent t, Point2D pt) Returns the string to be used as the tooltip at the passed in location. Implementation Specification This implementation calls
|
modelToView | back to summary |
---|---|
public abstract Rectangle modelToView(JTextComponent t, int pos) throws BadLocationException
Converts the given location in the model to a place in the view coordinate system.
|
modelToView | back to summary |
---|---|
public abstract Rectangle modelToView(JTextComponent t, int pos, Position. Converts the given location in the model to a place in the view coordinate system.
|
modelToView2D | back to summary |
---|---|
public Rectangle2D modelToView2D(JTextComponent t, int pos, Position. Converts the given location in the model to a place in the view coordinate system. Implementation Specification This implementation calls
|
viewToModel | back to summary |
---|---|
public abstract int viewToModel(JTextComponent t, Point pt)
Converts the given place in the view coordinate system to the nearest representative location in the model.
|
viewToModel | back to summary |
---|---|
public abstract int viewToModel(JTextComponent t, Point pt, Position. Provides a mapping from the view coordinate space to the logical coordinate space of the model.
|
viewToModel2D | back to summary |
---|---|
public int viewToModel2D(JTextComponent t, Point2D pt, Position. Provides a mapping from the view coordinate space to the logical coordinate space of the model. Implementation Specification This implementation calls
|