All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Class java.awt.swing.multi.MultiTextUI

java.lang.Object
    |
    +----java.awt.swing.plaf.ComponentUI
            |
            +----java.awt.swing.plaf.TextUI
                    |
                    +----java.awt.swing.multi.MultiTextUI

public class MultiTextUI
extends TextUI
implements Serializable
MultiTextUI implementation


Variable Index

 o uis
The Vector containing the real UI's.

Constructor Index

 o MultiTextUI()

Method Index

 o contains(JComponent, int, int)
 o createUI(JComponent)
 o damageRange(int, int)
Causes the portion of the view responsible for the given part of the model to be repainted.
 o getDefaultMargin()
Fetches the default margin space for the text ui.
 o getEditorKit()
Fetches the binding of services that set a policy for the type of document being edited.
 o getMaximumSize(JComponent)
 o getMinimumSize(JComponent)
 o getPreferredSize(JComponent)
 o getRootView()
Fetches a View with the allocation of the associated text component (ie the root of the hierarchy) that can be traversed to determine how the model is being represented spatially.
 o getUIs()
Return the list of UI's associated with this multiplexing UI.
 o installUI(JComponent)
 o modelToView(int)
Converts the given location in the model to a place in the view coordinate system.
 o paint(Graphics, JComponent)
 o uninstallUI(JComponent)
 o viewToModel(Point)
Converts the given place in the view coordinate system to the nearest representative location in the model.

Variables

 o uis
protected Vector uis
The Vector containing the real UI's. This is populated in the call to createUI, and can be obtained by calling getUIs. The first element is guaranteed to the real UI obtained from the default look and feel.

Constructors

 o MultiTextUI
public MultiTextUI()

Methods

 o createUI
public static ComponentUI createUI(JComponent c)
 o getUIs
public ComponentUI[] getUIs()
Return the list of UI's associated with this multiplexing UI. This allows processing of the UI's by an application aware of multiplexing UI's on components.

 o installUI
public void installUI(JComponent c)
Overrides:
installUI in class ComponentUI
 o uninstallUI
public void uninstallUI(JComponent c)
Overrides:
uninstallUI in class ComponentUI
 o paint
public void paint(Graphics g,
                  JComponent c)
Overrides:
paint in class ComponentUI
 o getPreferredSize
public Dimension getPreferredSize(JComponent c)
Overrides:
getPreferredSize in class ComponentUI
 o getMinimumSize
public Dimension getMinimumSize(JComponent c)
Overrides:
getMinimumSize in class ComponentUI
 o getMaximumSize
public Dimension getMaximumSize(JComponent c)
Overrides:
getMaximumSize in class ComponentUI
 o contains
public boolean contains(JComponent c,
                        int x,
                        int y)
Overrides:
contains in class ComponentUI
 o modelToView
public Rectangle modelToView(int pos) throws BadLocationException
Converts the given location in the model to a place in the view coordinate system.

Overrides:
modelToView in class TextUI
 o viewToModel
public int viewToModel(Point p)
Converts the given place in the view coordinate system to the nearest representative location in the model.

Overrides:
viewToModel in class TextUI
 o damageRange
public void damageRange(int p0,
                        int p1)
Causes the portion of the view responsible for the given part of the model to be repainted.

Overrides:
damageRange in class TextUI
 o getEditorKit
public EditorKit getEditorKit()
Fetches the binding of services that set a policy for the type of document being edited.

Overrides:
getEditorKit in class TextUI
 o getRootView
public View getRootView()
Fetches a View with the allocation of the associated text component (ie the root of the hierarchy) that can be traversed to determine how the model is being represented spatially.

Overrides:
getRootView in class TextUI
 o getDefaultMargin
public Insets getDefaultMargin()
Fetches the default margin space for the text ui.

Overrides:
getDefaultMargin in class TextUI

All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Submit a bug or feature