APIdia Launch Partner
Top Description Fields Constructors Methods
javax.swing.plaf.multi

public Class MultiTextUI

extends TextUI
Class Inheritance
Imports
java.util.Vector, javax.swing.plaf.TextUI, .ComponentUI, java.lang.String, javax.swing.text.JTextComponent, .BadLocationException, .Position, .EditorKit, .View, java.awt.Point, .Rectangle, .Graphics, .Dimension, javax.swing.JComponent, java.awt.geom.Point2D, .Rectangle2D, javax.accessibility.Accessible

A multiplexing UI used to combine TextUIs.

This file was automatically generated by AutoMulti.

Author
Otto Multey

Field Summary

Modifier and TypeField and Description
protected Vector<ComponentUI>
uis

The vector containing the real UIs.

Constructor Summary

AccessConstructor and Description
public
MultiTextUI()

Constructs a MultiTextUI.

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel
contains
(JComponent a, int b, int c)

Overrides javax.swing.plaf.ComponentUI.contains.

Invokes the contains method on each UI handled by this object.

public static ComponentUI

Returns:

the UI delegate created
createUI
(JComponent
the component to create the UI for
a
)

Hides javax.swing.plaf.ComponentUI.createUI.

Returns a multiplexing UI instance if any of the auxiliary LookAndFeels supports this UI.

public void
damageRange(JTextComponent a, int b, int c)

Implements abstract javax.swing.plaf.TextUI.damageRange.

Invokes the damageRange method on each UI handled by this object.

public void
damageRange(JTextComponent a, int b, int c, Position.Bias d, Position.Bias e)

Implements abstract javax.swing.plaf.TextUI.damageRange.

Invokes the damageRange method on each UI handled by this object.

public Accessible

Returns:

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel
getAccessibleChild
(JComponent a, int b)

Overrides javax.swing.plaf.ComponentUI.getAccessibleChild.

Invokes the getAccessibleChild method on each UI handled by this object.

public int

Returns:

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel
getAccessibleChildrenCount
(JComponent a)

Overrides javax.swing.plaf.ComponentUI.getAccessibleChildrenCount.

Invokes the getAccessibleChildrenCount method on each UI handled by this object.

public EditorKit

Returns:

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel
getEditorKit
(JTextComponent a)

Implements abstract javax.swing.plaf.TextUI.getEditorKit.

Invokes the getEditorKit method on each UI handled by this object.

public Dimension

Returns:

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel
getMaximumSize
(JComponent a)

Overrides javax.swing.plaf.ComponentUI.getMaximumSize.

Invokes the getMaximumSize method on each UI handled by this object.

public Dimension

Returns:

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel
getMinimumSize
(JComponent a)

Overrides javax.swing.plaf.ComponentUI.getMinimumSize.

Invokes the getMinimumSize method on each UI handled by this object.

public int

Returns:

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel
getNextVisualPositionFrom
(JTextComponent a, int b, Position.Bias c, int d, Position.Bias[] e)

Implements abstract javax.swing.plaf.TextUI.getNextVisualPositionFrom.

Invokes the getNextVisualPositionFrom method on each UI handled by this object.

public Dimension

Returns:

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel
getPreferredSize
(JComponent a)

Overrides javax.swing.plaf.ComponentUI.getPreferredSize.

Invokes the getPreferredSize method on each UI handled by this object.

public View

Returns:

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel
getRootView
(JTextComponent a)

Implements abstract javax.swing.plaf.TextUI.getRootView.

Invokes the getRootView method on each UI handled by this object.

public String

Returns:

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel
getToolTipText
(JTextComponent a, Point b)

Overrides javax.swing.plaf.TextUI.getToolTipText.

Invokes the getToolTipText method on each UI handled by this object.

public ComponentUI[]

Returns:

an array of the UI delegates
getUIs
()

Returns the list of UIs associated with this multiplexing UI.

public void
installUI(JComponent a)

Overrides javax.swing.plaf.ComponentUI.installUI.

Invokes the installUI method on each UI handled by this object.

public Rectangle

Returns:

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel
modelToView
(JTextComponent a, int b)

Implements abstract javax.swing.plaf.TextUI.modelToView.

Deprecated since 9. replaced by modelToView2D(JTextComponent, int, Position.Bias)

Invokes the modelToView method on each UI handled by this object.

public Rectangle

Returns:

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel
modelToView
(JTextComponent a, int b, Position.Bias c)

Implements abstract javax.swing.plaf.TextUI.modelToView.

Deprecated since 9. replaced by modelToView2D(JTextComponent, int, Position.Bias)

Invokes the modelToView method on each UI handled by this object.

public Rectangle2D
modelToView2D(JTextComponent a, int b, Position.Bias c)

Overrides javax.swing.plaf.TextUI.modelToView2D.

Converts the given location in the model to a place in the view coordinate system.

public void
paint(Graphics a, JComponent b)

Overrides javax.swing.plaf.ComponentUI.paint.

Invokes the paint method on each UI handled by this object.

public void
uninstallUI(JComponent a)

Overrides javax.swing.plaf.ComponentUI.uninstallUI.

Invokes the uninstallUI method on each UI handled by this object.

public void
update(Graphics a, JComponent b)

Overrides javax.swing.plaf.ComponentUI.update.

Invokes the update method on each UI handled by this object.

public int

Returns:

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel
viewToModel
(JTextComponent a, Point b)

Implements abstract javax.swing.plaf.TextUI.viewToModel.

Deprecated since 9.

Invokes the viewToModel method on each UI handled by this object.

public int

Returns:

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel
viewToModel
(JTextComponent a, Point b, Position.Bias[] c)

Implements abstract javax.swing.plaf.TextUI.viewToModel.

Deprecated since 9.

Invokes the viewToModel method on each UI handled by this object.

public int
viewToModel2D(JTextComponent a, Point2D b, Position.Bias[] c)

Overrides javax.swing.plaf.TextUI.viewToModel2D.

Provides a mapping from the view coordinate space to the logical coordinate space of the model.

Inherited from javax.swing.plaf.TextUI:
getToolTipText2D

Field Detail

uisback to summary
protected Vector<ComponentUI> uis

The vector containing the real UIs. This is populated in the call to createUI, and can be obtained by calling the getUIs method. The first element is guaranteed to be the real UI obtained from the default look and feel.

Constructor Detail

MultiTextUIback to summary
public MultiTextUI()

Constructs a MultiTextUI.

Method Detail

containsback to summary
public boolean contains(JComponent a, int b, int c)

Overrides javax.swing.plaf.ComponentUI.contains.

Invokes the contains method on each UI handled by this object.

Returns:boolean

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel

createUIback to summary
public static ComponentUI createUI(JComponent a)

Hides javax.swing.plaf.ComponentUI.createUI.

Returns a multiplexing UI instance if any of the auxiliary LookAndFeels supports this UI. Otherwise, just returns the UI object obtained from the default LookAndFeel.

Parameters
a:JComponent

the component to create the UI for

Returns:ComponentUI

the UI delegate created

damageRangeback to summary
public void damageRange(JTextComponent a, int b, int c)

Implements abstract javax.swing.plaf.TextUI.damageRange.

Invokes the damageRange method on each UI handled by this object.

damageRangeback to summary
public void damageRange(JTextComponent a, int b, int c, Position.Bias d, Position.Bias e)

Implements abstract javax.swing.plaf.TextUI.damageRange.

Invokes the damageRange method on each UI handled by this object.

getAccessibleChildback to summary
public Accessible getAccessibleChild(JComponent a, int b)

Overrides javax.swing.plaf.ComponentUI.getAccessibleChild.

Invokes the getAccessibleChild method on each UI handled by this object.

Returns:Accessible

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel

getAccessibleChildrenCountback to summary
public int getAccessibleChildrenCount(JComponent a)

Overrides javax.swing.plaf.ComponentUI.getAccessibleChildrenCount.

Invokes the getAccessibleChildrenCount method on each UI handled by this object.

Returns:int

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel

getEditorKitback to summary
public EditorKit getEditorKit(JTextComponent a)

Implements abstract javax.swing.plaf.TextUI.getEditorKit.

Invokes the getEditorKit method on each UI handled by this object.

Returns:EditorKit

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel

getMaximumSizeback to summary
public Dimension getMaximumSize(JComponent a)

Overrides javax.swing.plaf.ComponentUI.getMaximumSize.

Invokes the getMaximumSize method on each UI handled by this object.

Returns:Dimension

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel

getMinimumSizeback to summary
public Dimension getMinimumSize(JComponent a)

Overrides javax.swing.plaf.ComponentUI.getMinimumSize.

Invokes the getMinimumSize method on each UI handled by this object.

Returns:Dimension

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel

getNextVisualPositionFromback to summary
public int getNextVisualPositionFrom(JTextComponent a, int b, Position.Bias c, int d, Position.Bias[] e) throws BadLocationException

Implements abstract javax.swing.plaf.TextUI.getNextVisualPositionFrom.

Invokes the getNextVisualPositionFrom method on each UI handled by this object.

Returns:int

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel

Exceptions
BadLocationException:

Doc from javax.swing.plaf.TextUI.getNextVisualPositionFrom.

for a bad location within a document model

getPreferredSizeback to summary
public Dimension getPreferredSize(JComponent a)

Overrides javax.swing.plaf.ComponentUI.getPreferredSize.

Invokes the getPreferredSize method on each UI handled by this object.

Returns:Dimension

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel

getRootViewback to summary
public View getRootView(JTextComponent a)

Implements abstract javax.swing.plaf.TextUI.getRootView.

Invokes the getRootView method on each UI handled by this object.

Returns:View

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel

getToolTipTextback to summary
public String getToolTipText(JTextComponent a, Point b)

Overrides javax.swing.plaf.TextUI.getToolTipText.

Invokes the getToolTipText method on each UI handled by this object.

Returns:String

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel

Annotations
@SuppressWarnings:deprecation
Since
1.4
getUIsback to summary
public ComponentUI[] getUIs()

Returns the list of UIs associated with this multiplexing UI. This allows processing of the UIs by an application aware of multiplexing UIs on components.

Returns:ComponentUI[]

an array of the UI delegates

installUIback to summary
public void installUI(JComponent a)

Overrides javax.swing.plaf.ComponentUI.installUI.

Invokes the installUI method on each UI handled by this object.

modelToViewback to summary
public Rectangle modelToView(JTextComponent a, int b) throws BadLocationException

Implements abstract javax.swing.plaf.TextUI.modelToView.

Invokes the modelToView method on each UI handled by this object.

Returns:Rectangle

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel

Annotations
@Deprecated
since:9
Exceptions
BadLocationException:

Doc from javax.swing.plaf.TextUI.modelToView.

if the given position does not represent a valid location in the associated document

modelToViewback to summary
public Rectangle modelToView(JTextComponent a, int b, Position.Bias c) throws BadLocationException

Implements abstract javax.swing.plaf.TextUI.modelToView.

Invokes the modelToView method on each UI handled by this object.

Returns:Rectangle

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel

Annotations
@Deprecated
since:9
@Override
Exceptions
BadLocationException:

Doc from javax.swing.plaf.TextUI.modelToView.

if the given position does not represent a valid location in the associated document

modelToView2Dback to summary
public Rectangle2D modelToView2D(JTextComponent a, int b, Position.Bias c) throws BadLocationException

Overrides javax.swing.plaf.TextUI.modelToView2D.

Doc from javax.swing.plaf.TextUI.modelToView2D.

Converts the given location in the model to a place in the view coordinate system.

Annotations
@Override
Exceptions
BadLocationException:
if the given position does not represent a valid location in the associated document
paintback to summary
public void paint(Graphics a, JComponent b)

Overrides javax.swing.plaf.ComponentUI.paint.

Invokes the paint method on each UI handled by this object.

uninstallUIback to summary
public void uninstallUI(JComponent a)

Overrides javax.swing.plaf.ComponentUI.uninstallUI.

Invokes the uninstallUI method on each UI handled by this object.

updateback to summary
public void update(Graphics a, JComponent b)

Overrides javax.swing.plaf.ComponentUI.update.

Invokes the update method on each UI handled by this object.

viewToModelback to summary
public int viewToModel(JTextComponent a, Point b)

Implements abstract javax.swing.plaf.TextUI.viewToModel.

Deprecated

since 9.

Invokes the viewToModel method on each UI handled by this object.

Returns:int

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel

Annotations
@Deprecated
since:9
@Override
viewToModelback to summary
public int viewToModel(JTextComponent a, Point b, Position.Bias[] c)

Implements abstract javax.swing.plaf.TextUI.viewToModel.

Deprecated

since 9.

Invokes the viewToModel method on each UI handled by this object.

Returns:int

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel

Annotations
@Deprecated
since:9
@Override
viewToModel2Dback to summary
public int viewToModel2D(JTextComponent a, Point2D b, Position.Bias[] c)

Overrides javax.swing.plaf.TextUI.viewToModel2D.

Doc from javax.swing.plaf.TextUI.viewToModel2D.

Provides a mapping from the view coordinate space to the logical coordinate space of the model.

Annotations
@Override