Spec-Zone .ru
спецификации, руководства, описания, API
|
|
JavaTM 2 Platform Std. Ed. v1.3.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.plaf.ComponentUI | +--javax.swing.plaf.TextUI | +--javax.swing.plaf.multi.MultiTextUI
MultiTextUI implementation
This file was automatically generated by AutoMulti.
Field Summary | |
protected Vector |
uis
The Vector containing the real UI's. |
Constructor Summary | |
MultiTextUI()
|
Method Summary | |
boolean |
contains(JComponent a,
int b,
int c)
Call contains on each UI handled by this MultiUI. |
static ComponentUI |
createUI(JComponent a)
Return a multiplexing UI instance if any of the auxiliary LookAndFeels support this UI. |
void |
damageRange(JTextComponent a,
int b,
int c)
Call damageRange on each UI handled by this MultiUI. |
void |
damageRange(JTextComponent t,
int p0,
int p1,
Position.Bias firstBias,
Position.Bias secondBias)
Causes the portion of the view responsible for the given part of the model to be repainted. |
Accessible |
getAccessibleChild(JComponent a,
int b)
Call getAccessibleChild on each UI handled by this MultiUI. |
int |
getAccessibleChildrenCount(JComponent a)
Call getAccessibleChildrenCount on each UI handled by this MultiUI. |
EditorKit |
getEditorKit(JTextComponent a)
Call getEditorKit on each UI handled by this MultiUI. |
Dimension |
getMaximumSize(JComponent a)
Call getMaximumSize on each UI handled by this MultiUI. |
Dimension |
getMinimumSize(JComponent a)
Call getMinimumSize on each UI handled by this MultiUI. |
int |
getNextVisualPositionFrom(JTextComponent t,
int pos,
Position.Bias b,
int direction,
Position.Bias[] biasRet)
Provides a way to determine the next visually represented model location that one might place a caret. |
Dimension |
getPreferredSize(JComponent a)
Call getPreferredSize on each UI handled by this MultiUI. |
View |
getRootView(JTextComponent a)
Call getRootView on each UI handled by this MultiUI. |
ComponentUI[] |
getUIs()
Return the list of UI's associated with this multiplexing UI. |
void |
installUI(JComponent a)
Call installUI on each UI handled by this MultiUI. |
Rectangle |
modelToView(JTextComponent a,
int b)
Call modelToView on each UI handled by this MultiUI. |
Rectangle |
modelToView(JTextComponent t,
int pos,
Position.Bias bias)
Converts the given location in the model to a place in the view coordinate system. |
void |
paint(Graphics a,
JComponent b)
Call paint on each UI handled by this MultiUI. |
void |
uninstallUI(JComponent a)
Call uninstallUI on each UI handled by this MultiUI. |
void |
update(Graphics a,
JComponent b)
Call update on each UI handled by this MultiUI. |
int |
viewToModel(JTextComponent a,
Point b)
Call viewToModel on each UI handled by this MultiUI. |
int |
viewToModel(JTextComponent t,
Point pt,
Position.Bias[] biasReturn)
Provides a mapping from the view coordinate space to the logical coordinate space of the model. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Vector uis
Constructor Detail |
public MultiTextUI()
Method Detail |
public ComponentUI[] getUIs()
public Rectangle modelToView(JTextComponent a, int b) throws BadLocationException
modelToView
in class TextUI
javax.swing.plaf.TextUI
pos
- the local location in the model to translate >= 0BadLocationException
- if the given position does not
represent a valid location in the associated documentpublic Rectangle modelToView(JTextComponent t, int pos, Position.Bias bias) throws BadLocationException
modelToView
in class TextUI
pos
- the local location in the model to translate >= 0BadLocationException
- if the given position does not
represent a valid location in the associated documentpublic int viewToModel(JTextComponent a, Point b)
viewToModel
in class TextUI
javax.swing.plaf.TextUI
pt
- the location in the view to translate. This
should be in the same coordinate system as the mouse
events.public int viewToModel(JTextComponent t, Point pt, Position.Bias[] biasReturn)
viewToModel
in class TextUI
x
- the X coordinate >= 0y
- the Y coordinate >= 0a
- the allocated region to render intopublic int getNextVisualPositionFrom(JTextComponent t, int pos, Position.Bias b, int direction, Position.Bias[] biasRet) throws BadLocationException
getNextVisualPositionFrom
in class TextUI
pos
- the position to convert >= 0a
- the allocated region to render intodirection
- 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.BadLocationException
- IllegalArgumentException
- for an invalid directionpublic void damageRange(JTextComponent a, int b, int c)
damageRange
in class TextUI
javax.swing.plaf.TextUI
p0
- the beginning of the range >= 0p1
- the end of the range >= p0public void damageRange(JTextComponent t, int p0, int p1, Position.Bias firstBias, Position.Bias secondBias)
damageRange
in class TextUI
p0
- the beginning of the range >= 0p1
- the end of the range >= p0public EditorKit getEditorKit(JTextComponent a)
getEditorKit
in class TextUI
javax.swing.plaf.TextUI
public View getRootView(JTextComponent a)
getRootView
in class TextUI
javax.swing.plaf.TextUI
public void installUI(JComponent a)
installUI
in class ComponentUI
public void uninstallUI(JComponent a)
uninstallUI
in class ComponentUI
public void paint(Graphics a, JComponent b)
paint
in class ComponentUI
public void update(Graphics a, JComponent b)
update
in class ComponentUI
public Dimension getPreferredSize(JComponent a)
getPreferredSize
in class ComponentUI
public Dimension getMinimumSize(JComponent a)
getMinimumSize
in class ComponentUI
public Dimension getMaximumSize(JComponent a)
getMaximumSize
in class ComponentUI
public boolean contains(JComponent a, int b, int c)
contains
in class ComponentUI
public static ComponentUI createUI(JComponent a)
public int getAccessibleChildrenCount(JComponent a)
getAccessibleChildrenCount
in class ComponentUI
javax.swing.plaf.ComponentUI
ComponentUI.getAccessibleChild(javax.swing.JComponent, int)
public Accessible getAccessibleChild(JComponent a, int b)
getAccessibleChild
in class ComponentUI
javax.swing.plaf.ComponentUI
i
- zero-based index of childComponentUI.getAccessibleChildrenCount(javax.swing.JComponent)
|
JavaTM 2 Platform Std. Ed. v1.3.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2001 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.