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
-
damageRange(Range)
- Cause the portion of the view responsible for the
given part of the model to be repainted.
-
getActions()
- Fetch the command list for the UI.
-
getHighlights()
- Fetch the object responsible making highlights in the view
of portions of the document.
-
getHorizontalVisibility()
- Get the horizontal visibility.
-
getInsertPosition()
- Fetch the cursor that allows text-oriented navigation over
the view.
-
getKeymap()
- Fetch the keymap being used by the controller
-
getVerticalVisibility()
- Get the vertical visibility.
-
modelToView(Position)
- Convert the given location in the model to a place in
the view coordinate system.
-
setHorizontalVisibility(BoundedRangeModel)
- Set the model to be used for scrolling horizontally.
-
setKeymap(Keymap)
- Set the keymap to use for binding events to
actions.
-
setVerticalVisibility(BoundedRangeModel)
- Set the model to be used for scrolling vertically.
-
viewToModel(Point)
- Convert the given place in the view coordinate system
to the nearest representative location in the model.
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.
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.
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.
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.
getHighlights
public abstract Highlighter getHighlights()
- Fetch the object responsible making highlights in the view
of portions of the document.
getActions
public abstract Action[] getActions()
- Fetch the command list for the UI.
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.
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.
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.
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.
setKeymap
public abstract void setKeymap(Keymap map)
- Set the keymap to use for binding events to
actions.
getKeymap
public abstract Keymap getKeymap()
- Fetch the keymap being used by the controller
All Packages Class Hierarchy This Package Previous Next Index