GNU Classpath (0.95) | |
Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.TextUI
javax.swing.plaf.multi.MultiTextUI
public class MultiTextUI
extends TextUI
TextUI
instances, one from the primary look and feel, and one or more from the
auxiliary look and feel(s).
Constructor Summary | |
|
Method Summary | |
boolean |
|
static ComponentUI |
|
void |
|
void |
|
Accessible |
|
int |
|
EditorKit |
|
Dimension |
|
Dimension |
|
int |
|
Dimension |
|
View |
|
ComponentUI[] |
|
void |
|
Rectangle |
|
Rectangle |
|
void |
|
void |
|
void |
|
int |
|
int |
|
Methods inherited from class javax.swing.plaf.TextUI | |
damageRange , damageRange , getEditorKit , getNextVisualPositionFrom , getRootView , getToolTipText , modelToView , modelToView , viewToModel , viewToModel |
Methods inherited from class javax.swing.plaf.ComponentUI | |
contains , createUI , getAccessibleChild , getAccessibleChildrenCount , getMaximumSize , getMinimumSize , getPreferredSize , installUI , paint , uninstallUI , update |
Methods inherited from class java.lang.Object | |
clone , equals , extends Object> getClass , finalize , hashCode , notify , notifyAll , toString , wait , wait , wait |
public boolean contains(JComponent c, int x, int y)
Calls theComponentUI.contains(JComponent,int,int)
method for all the UI delegates managed by thisMultiTextUI
, returning the result for the UI delegate from the primary look and feel.
- Overrides:
- contains in interface ComponentUI
- Parameters:
c
- the component.x
- the x-coordinate.y
- the y-coordinate.
- Returns:
true
if the specified (x, y) coordinate falls within the bounds of the component as rendered by the UI delegate in the primary look and feel, andfalse
otherwise.
public static ComponentUI createUI(JComponent target)
Creates a delegate object for the specified component. If any auxiliary look and feels support this component, aMultiTextUI
is returned, otherwise the UI from the default look and feel is returned.
- Overrides:
- createUI in interface ComponentUI
- Parameters:
target
- the component.
public void damageRange(JTextComponent tc, int start, int end)
Calls theTextUI.damageRange(JTextComponent,int,int)
method for all the UI delegates managed by thisMultiTextUI
.
- Overrides:
- damageRange in interface TextUI
- Parameters:
tc
- the component.start
- the start position.end
- the end position.
public void damageRange(JTextComponent tc, int start, int end, Position.Bias startBias, Position.Bias endBias)
Calls theTextUI.damageRange(JTextComponent,int,int,Position.Bias,Position.Bias)
method for all the UI delegates managed by thisMultiTextUI
.
- Overrides:
- damageRange in interface TextUI
- Parameters:
tc
- the component.start
- the start position.end
- the end position.startBias
- the start bias.endBias
- the end bias.
public Accessible getAccessibleChild(JComponent c, int i)
Calls theComponentUI.getAccessibleChild(JComponent,int)
method for all the UI delegates managed by thisMultiTextUI
, returning the child for the UI delegate from the primary look and feel.
- Overrides:
- getAccessibleChild in interface ComponentUI
- Parameters:
c
- the componenti
- the child index.
- Returns:
- The child returned by the UI delegate from the primary look and feel.
public int getAccessibleChildrenCount(JComponent c)
Calls theComponentUI.getAccessibleChildrenCount(JComponent)
method for all the UI delegates managed by thisMultiTextUI
, returning the count for the UI delegate from the primary look and feel.
- Overrides:
- getAccessibleChildrenCount in interface ComponentUI
- Parameters:
c
- the component.
- Returns:
- The count returned by the UI delegate from the primary look and feel.
public EditorKit getEditorKit(JTextComponent tc)
Calls theTextUI.getEditorKit(JTextComponent)
method for all the UI delegates managed by thisMultiTextUI
, returning the editor kit for the UI delegate from the primary look and feel.
- Overrides:
- getEditorKit in interface TextUI
- Parameters:
tc
- the text component.
- Returns:
- The editor kit returned by the UI delegate from the primary look and feel.
public Dimension getMaximumSize(JComponent c)
Calls theComponentUI.getMaximumSize(JComponent)
method for all the UI delegates managed by thisMultiTextUI
, returning the maximum size for the UI delegate from the primary look and feel.
- Overrides:
- getMaximumSize in interface ComponentUI
- Parameters:
c
- the component.
- Returns:
- The maximum size returned by the UI delegate from the primary look and feel.
public Dimension getMinimumSize(JComponent c)
Calls theComponentUI.getMinimumSize(JComponent)
method for all the UI delegates managed by thisMultiTextUI
, returning the minimum size for the UI delegate from the primary look and feel.
- Overrides:
- getMinimumSize in interface ComponentUI
- Parameters:
c
- the component.
- Returns:
- The minimum size returned by the UI delegate from the primary look and feel.
public int getNextVisualPositionFrom(JTextComponent tc, int pos, Position.Bias bias, int direction, Position.Bias[] outBias) throws BadLocationException
Calls theTextUI.getNextVisualPositionFrom(JTextComponent,int,Position.Bias,int,Position.Bias[])
method for all the UI delegates managed by thisMultiTextUI
, returning the position for the UI delegate from the primary look and feel.
- Overrides:
- getNextVisualPositionFrom in interface TextUI
- Parameters:
tc
- the text component.
- Returns:
- The position returned by the UI delegate from the primary look and feel.
public Dimension getPreferredSize(JComponent c)
Calls theComponentUI.getPreferredSize(JComponent)
method for all the UI delegates managed by thisMultiTextUI
, returning the preferred size for the UI delegate from the primary look and feel.
- Overrides:
- getPreferredSize in interface ComponentUI
- Parameters:
c
- the component.
- Returns:
- The preferred size returned by the UI delegate from the primary look and feel.
public View getRootView(JTextComponent tc)
Calls theTextUI.getRootView(JTextComponent)
method for all the UI delegates managed by thisMultiTextUI
, returning the view for the UI delegate from the primary look and feel.
- Overrides:
- getRootView in interface TextUI
- Parameters:
tc
- the text component.
- Returns:
- The view returned by the UI delegate from the primary look and feel.
public ComponentUI[] getUIs()
Returns an array containing the UI delegates managed by thisMultiTextUI
. The first item in the array is always the UI delegate from the installed default look and feel.
- Returns:
- An array of UI delegates.
public void installUI(JComponent c)
Calls theComponentUI.installUI(JComponent)
method for all the UI delegates managed by thisMultiTextUI
.
- Overrides:
- installUI in interface ComponentUI
- Parameters:
c
- the component.
public Rectangle modelToView(JTextComponent tc, int pos) throws BadLocationException
Calls theTextUI.modelToView(JTextComponent,int)
method for all the UI delegates managed by thisMultiTextUI
, returning the bounds for the UI delegate from the primary look and feel.
- Overrides:
- modelToView in interface TextUI
- Parameters:
tc
- the text component.
- Returns:
- The bounds returned by the UI delegate from the primary look and feel.
public Rectangle modelToView(JTextComponent tc, int pos, Position.Bias bias) throws BadLocationException
Calls theTextUI.modelToView(JTextComponent,int,Position.Bias)
method for all the UI delegates managed by thisMultiTextUI
, returning the bounds for the UI delegate from the primary look and feel.
- Overrides:
- modelToView in interface TextUI
- Parameters:
tc
- the text component.
- Returns:
- The bounds returned by the UI delegate from the primary look and feel.
public void paint(Graphics g, JComponent c)
Calls thepaint(Graphics, JComponent)
method for all the UI delegates managed by thisMultiTextUI
.
- Overrides:
- paint in interface ComponentUI
- Parameters:
g
- the graphics device.c
- the component.
public void uninstallUI(JComponent c)
Calls theComponentUI.uninstallUI(JComponent)
method for all the UI delegates managed by thisMultiTextUI
.
- Overrides:
- uninstallUI in interface ComponentUI
- Parameters:
c
- the component.
public void update(Graphics g, JComponent c)
Calls theComponentUI.update(Graphics,JComponent)
method for all the UI delegates managed by thisMultiTextUI
.
- Overrides:
- update in interface ComponentUI
- Parameters:
g
- the graphics device.c
- the component.
public int viewToModel(JTextComponent t, Point pt)
Calls theTextUI.viewToModel(JTextComponent,Point)
method for all the UI delegates managed by thisMultiTextUI
, returning the position for the UI delegate from the primary look and feel.
- Overrides:
- viewToModel in interface TextUI
- Parameters:
t
- the text component.pt
- the point.
- Returns:
- The position returned by the UI delegate from the primary look and feel.
public int viewToModel(JTextComponent tc, Point loc, Position.Bias[] outBias)
Calls theTextUI.viewToModel(JTextComponent, Point, Bias[])
method for all the UI delegates managed by thisMultiTextUI
, returning the position for the UI delegate from the primary look and feel.
- Overrides:
- viewToModel in interface TextUI
- Parameters:
tc
- the text component.
- Returns:
- The position returned by the UI delegate from the primary look and feel.
GNU Classpath (0.95) |