All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface com.sun.java.swing.text.TextUI

public interface TextUI
extends ComponentUI
Text editor user interface


Method Index

 o damageRange(Range)
Cause the portion of the view responsible for the given part of the model to be repainted.
 o getActions()
Fetch the command list for the UI.
 o getHighlights()
Fetch the object responsible making highlights in the view of portions of the document.
 o getHorizontalVisibility()
Get the horizontal visibility.
 o getInsertPosition()
Fetch the cursor that allows text-oriented navigation over the view.
 o getKeymap()
Fetch the keymap being used by the controller
 o getVerticalVisibility()
Get the vertical visibility.
 o modelToView(Position)
Convert the given location in the model to a place in the view coordinate system.
 o setHorizontalVisibility(BoundedRangeModel)
Set the model to be used for scrolling horizontally.
 o setKeymap(Keymap)
Set the keymap to use for binding events to actions.
 o setVerticalVisibility(BoundedRangeModel)
Set the model to be used for scrolling vertically.
 o viewToModel(Point)
Convert the given place in the view coordinate system to the nearest representative location in the model.

Methods

 o modelToView
 public abstract Rectangle modelToView(Position pos) throws BadLocation
Convert the given location in the model to a place in the view coordinate system.

Parameters:
pos - The local in the model to translate.
Throws: BadLocation
If the given position does not represent a valid location in the associated document.
 o viewToModel
 public abstract Position viewToModel(Point pt)
Convert the given place in the view coordinate system to the nearest representative location in the model.

Parameters:
pt - The location in the view to translate. This should be in the same coordinate system as the mouse events.
 o damageRange
 public abstract void damageRange(Range rng)
Cause the portion of the view responsible for the given part of the model to be repainted.

Parameters:
rng - The portion of the model to repaint the view for.
 o getInsertPosition
 public abstract InsertPosition getInsertPosition()
Fetch the cursor that allows text-oriented navigation over the view. This is a read-only attribute as the nature of the definition is determined by the type of content being edited.

 o getHighlights
 public abstract Highlighter getHighlights()
Fetch the object responsible making highlights in the view of portions of the document.

 o getActions
 public abstract Action[] getActions()
Fetch the command list for the UI.

 o setHorizontalVisibility
 public abstract void setHorizontalVisibility(BoundedRangeModel hvis)
Set the model to be used for scrolling horizontally. If this is set to null, the view will not be scrollable in the horizontal direction. If set, the minimum, maximum, and extent properties will be set by the associated view.

Parameters:
hvis - The scrolling model to use.
 o getHorizontalVisibility
 public abstract BoundedRangeModel getHorizontalVisibility()
Get the horizontal visibility. If null, the view is entirely visible horizontally.

Returns:
s The model used for scrolling horizontally. If the view is not scrollable in the horizontal direction, null will be returned.
 o setVerticalVisibility
 public abstract void setVerticalVisibility(BoundedRangeModel hvis)
Set the model to be used for scrolling vertically. If this is set to null, the view will not be scrollable in the vertical direction. If set, the minimum, maximum, and extent properties will be set by the associated view.

Parameters:
hvis - The scrolling model to use.
 o getVerticalVisibility
 public abstract BoundedRangeModel getVerticalVisibility()
Get the vertical visibility. If null, the view is entirely visible vertically.

Returns:
s The model used for scrolling vertically. If the view is not scrollable in the vertical direction, null will be returned.
 o setKeymap
 public abstract void setKeymap(Keymap map)
Set the keymap to use for binding events to actions.

 o getKeymap
 public abstract Keymap getKeymap()
Fetch the keymap being used by the controller


All Packages  Class Hierarchy  This Package  Previous  Next  Index