public class MultiTextUI extends TextUI
TextUIs.
This file was automatically generated by AutoMulti.
| Modifier and Type | Field and Description |
|---|---|
protected Vector |
uis
The vector containing the real UIs.
|
| Constructor and Description |
|---|
MultiTextUI()
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(JComponent
Invokes the
contains method on each UI handled by this object.
|
static ComponentUI |
createUI(JComponent
Returns a multiplexing UI instance if any of the auxiliary
LookAndFeels supports this UI.
|
void |
damageRange(JTextComponent
Invokes the
damageRange method on each UI handled by this object.
|
void |
damageRange(JTextComponent
Invokes the
damageRange method on each UI handled by this object.
|
Accessible |
getAccessibleChild(JComponent
Invokes the
getAccessibleChild method on each UI handled by this object.
|
int |
getAccessibleChildrenCount(JComponent
Invokes the
getAccessibleChildrenCount method on each UI handled by this object.
|
EditorKit |
getEditorKit(JTextComponent
Invokes the
getEditorKit method on each UI handled by this object.
|
Dimension |
getMaximumSize(JComponent
Invokes the
getMaximumSize method on each UI handled by this object.
|
Dimension |
getMinimumSize(JComponent
Invokes the
getMinimumSize method on each UI handled by this object.
|
int |
getNextVisualPositionFrom(JTextComponent
Invokes the
getNextVisualPositionFrom method on each UI handled by this object.
|
Dimension |
getPreferredSize(JComponent
Invokes the
getPreferredSize method on each UI handled by this object.
|
View |
getRootView(JTextComponent
Invokes the
getRootView method on each UI handled by this object.
|
String |
getToolTipText(JTextComponent
Invokes the
getToolTipText method on each UI handled by this object.
|
ComponentUI |
getUIs()
Returns the list of UIs associated with this multiplexing UI.
|
void |
installUI(JComponent
Invokes the
installUI method on each UI handled by this object.
|
Rectangle |
modelToView(JTextComponent
Invokes the
modelToView method on each UI handled by this object.
|
Rectangle |
modelToView(JTextComponent
Invokes the
modelToView method on each UI handled by this object.
|
void |
paint(Graphics
Invokes the
paint method on each UI handled by this object.
|
void |
uninstallUI(JComponent
Invokes the
uninstallUI method on each UI handled by this object.
|
void |
update(Graphics
Invokes the
update method on each UI handled by this object.
|
int |
viewToModel(JTextComponent
Invokes the
viewToModel method on each UI handled by this object.
|
int |
viewToModel(JTextComponent
Invokes the
viewToModel method on each UI handled by this object.
|
getBaseline, getBaselineResizeBehaviorprotected Vectoruis
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.
public ComponentUI[] getUIs()
public StringgetToolTipText(JTextComponent a, Point b)
getToolTipText method on each UI handled by this object.
getToolTipText in class
TextUI
LookAndFeel
JTextComponent.getToolTipText(java.awt.event.MouseEvent)
public RectanglemodelToView(JTextComponent a, int b) throws BadLocationException
modelToView method on each UI handled by this object.
modelToView in class
TextUI
b - the local location in the model to translate >= 0
LookAndFeel
BadLocationException - if the given position does not represent a valid location in the associated document
public RectanglemodelToView(JTextComponent a, int b, Position .Bias c) throws BadLocationException
modelToView method on each UI handled by this object.
modelToView in class
TextUI
b - the local location in the model to translate >= 0
LookAndFeel
BadLocationException - if the given position does not represent a valid location in the associated document
public int viewToModel(JTextComponenta, Point b)
viewToModel method on each UI handled by this object.
viewToModel in class
TextUI
b - the location in the view to translate. This should be in the same coordinate system as the mouse events.
LookAndFeel
public int viewToModel(JTextComponenta, Point b, Position .Bias [] c)
viewToModel method on each UI handled by this object.
viewToModel in class
TextUI
b - the location in the view to translate. This should be in the same coordinate system as the mouse events.
c - filled in by this method to indicate whether the point given is closer to the previous or the next character in the model
LookAndFeel
public int getNextVisualPositionFrom(JTextComponenta, int b, Position .Bias c, int d, Position .Bias [] e) throws BadLocationException
getNextVisualPositionFrom method on each UI handled by this object.
getNextVisualPositionFrom in class
TextUI
a - the text component for which this UI is installed
b - the position to convert >= 0
c - the bias for the position
d - the direction from the current position that can be thought of as the arrow keys typically found on a keyboard. This may be SwingConstants.WEST, SwingConstants.EAST, SwingConstants.NORTH, or SwingConstants.SOUTH
e - an array to contain the bias for the returned position
LookAndFeel
BadLocationException -
public void damageRange(JTextComponenta, int b, int c)
damageRange method on each UI handled by this object.
damageRange in class
TextUI
b - the beginning of the range >= 0
c - the end of the range >= p0
public void damageRange(JTextComponenta, int b, int c, Position .Bias d, Position .Bias e)
damageRange method on each UI handled by this object.
damageRange in class
TextUI
b - the beginning of the range >= 0
c - the end of the range >= p0
public EditorKitgetEditorKit(JTextComponent a)
getEditorKit method on each UI handled by this object.
getEditorKit in class
TextUI
LookAndFeel
public ViewgetRootView(JTextComponent a)
getRootView method on each UI handled by this object.
getRootView in class
TextUI
LookAndFeel
public boolean contains(JComponenta, int b, int c)
contains method on each UI handled by this object.
contains in class
ComponentUI
a - the component where the
x,y location is being queried; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components
b - the
x coordinate of the point
c - the
y coordinate of the point
LookAndFeel
JComponent.contains(int, int) ,
Component.contains(int, int)
public void update(Graphicsa, JComponent b)
update method on each UI handled by this object.
update in class
ComponentUI
a - the
Graphics context in which to paint
b - the component being painted; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components
ComponentUI.paint(java.awt.Graphics, javax.swing.JComponent) ,
JComponent.paintComponent(java.awt.Graphics)
public static ComponentUIcreateUI(JComponent a)
LookAndFeels supports this UI. Otherwise, just returns the UI object obtained from the default
LookAndFeel.
public void installUI(JComponenta)
installUI method on each UI handled by this object.
installUI in class
ComponentUI
a - the component where this UI delegate is being installed
ComponentUI.uninstallUI(javax.swing.JComponent) ,
JComponent.setUI(javax.swing.plaf.ComponentUI) ,
JComponent.updateUI()
public void uninstallUI(JComponenta)
uninstallUI method on each UI handled by this object.
uninstallUI in class
ComponentUI
a - the component from which this UI delegate is being removed; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components
ComponentUI.installUI(javax.swing.JComponent) ,
JComponent.updateUI()
public void paint(Graphicsa, JComponent b)
paint method on each UI handled by this object.
paint in class
ComponentUI
a - the
Graphics context in which to paint
b - the component being painted; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components
ComponentUI.update(java.awt.Graphics, javax.swing.JComponent)
public DimensiongetPreferredSize(JComponent a)
getPreferredSize method on each UI handled by this object.
getPreferredSize in class
ComponentUI
a - the component whose preferred size is being queried; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components
LookAndFeel
JComponent.getPreferredSize() ,
LayoutManager.preferredLayoutSize(java.awt.Container)
public DimensiongetMinimumSize(JComponent a)
getMinimumSize method on each UI handled by this object.
getMinimumSize in class
ComponentUI
a - the component whose minimum size is being queried; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components
LookAndFeel
JComponent.getMinimumSize() ,
LayoutManager.minimumLayoutSize(java.awt.Container) ,
ComponentUI.getPreferredSize(javax.swing.JComponent)
public DimensiongetMaximumSize(JComponent a)
getMaximumSize method on each UI handled by this object.
getMaximumSize in class
ComponentUI
a - the component whose maximum size is being queried; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components
LookAndFeel
JComponent.getMaximumSize() ,
LayoutManager2.maximumLayoutSize(java.awt.Container)
public int getAccessibleChildrenCount(JComponenta)
getAccessibleChildrenCount method on each UI handled by this object.
getAccessibleChildrenCount in class
ComponentUI
LookAndFeel
ComponentUI.getAccessibleChild(javax.swing.JComponent, int)
public AccessiblegetAccessibleChild(JComponent a, int b)
getAccessibleChild method on each UI handled by this object.
getAccessibleChild in class
ComponentUI
b - zero-based index of child
LookAndFeel
ComponentUI.getAccessibleChildrenCount(javax.swing.JComponent)