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
uis- The Vector containing the real UI's.
MultiTextUI()
-
contains(JComponent, int, int)
-
createUI(JComponent)
-
damageRange(int, int)
- Causes the portion of the view responsible for the
given part of the model to be repainted.
getDefaultMargin()
- Fetches the default margin space for the text ui.
getEditorKit()
- Fetches the binding of services that set a policy
for the type of document being edited.
getMaximumSize(JComponent)
-
getMinimumSize(JComponent)
-
getPreferredSize(JComponent)
-
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.
getUIs()
- Return the list of UI's associated with this multiplexing UI.
installUI(JComponent)
-
modelToView(int)
- Converts the given location in the model to a place in
the view coordinate system.
paint(Graphics, JComponent)
-
uninstallUI(JComponent)
-
viewToModel(Point)
- Converts the given place in the view coordinate system
to the nearest representative location in the model.
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.
MultiTextUI
public MultiTextUI()
createUI
public static ComponentUI createUI(JComponent c)
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.
installUI
public void installUI(JComponent c)
- Overrides:
- installUI in class ComponentUI
uninstallUI
public void uninstallUI(JComponent c)
- Overrides:
- uninstallUI in class ComponentUI
paint
public void paint(Graphics g,
JComponent c)
- Overrides:
- paint in class ComponentUI
getPreferredSize
public Dimension getPreferredSize(JComponent c)
- Overrides:
- getPreferredSize in class ComponentUI
getMinimumSize
public Dimension getMinimumSize(JComponent c)
- Overrides:
- getMinimumSize in class ComponentUI
getMaximumSize
public Dimension getMaximumSize(JComponent c)
- Overrides:
- getMaximumSize in class ComponentUI
contains
public boolean contains(JComponent c,
int x,
int y)
- Overrides:
- contains in class ComponentUI
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
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
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
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
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
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