| java.lang.Object javax.swing.plaf.ComponentUI javax.swing.plaf.TextUI org.netbeans.editor.BaseTextUI
Inner Class :class RootView extends BaseView | |
Method Summary | |
public void | changedUpdate(DocumentEvent evt) The change in document notification. | public View | create(Element elem) Creates a view for an element. | public View | create(Element elem, int p0, int p1) Creates a view for an element. | public static ComponentUI | createUI(JComponent c) | public void | damageRange(JTextComponent c, int p0, int p1) | public void | damageRange(JTextComponent t, int p0, int p1, Position.Bias p0Bias, Position.Bias p1Bias) Causes the portion of the view responsible for the given part of the
model to be repainted. | public int | getBaseX(int y) | public EditorKit | getEditorKit(JTextComponent c) Fetches the EditorKit for the UI. | public EditorUI | getEditorUI() Get extended UI. | static JTextComponent | getFocusedComponent() | public Dimension | getMaximumSize(JComponent c) Gets the maximum size for the editor component. | public Dimension | getMinimumSize(JComponent c) Gets the minimum size for the editor component. | public int | getNextVisualPositionFrom(JTextComponent t, int pos, Position.Bias b, int direction, Position.Bias[] biasRet) Next visually represented model location where caret can be placed. | public int | getPosFromY(int y) | public Dimension | getPreferredSize(JComponent c) Gets the preferred size for the editor component. | public View | getRootView(JTextComponent c) Fetches a root view of the view hierarchy. | public int | getYFromPos(int pos) | public void | insertUpdate(DocumentEvent evt) Insert to document notification. | public void | installUI(JComponent c) Installs the UI for a component. | public void | invalidateStartY() | protected void | modelChanged(BaseDocument oldDoc, BaseDocument newDoc) | public Rectangle | modelToView(JTextComponent c, int pos) Similair to modelToView() but without acquiring the document read lock. | public Rectangle | modelToView(JTextComponent c, int pos, Position.Bias bias) | void | modelToViewDG(int pos, DrawGraphics dg) | public void | paint(Graphics g, JComponent c) Paint the UI. | void | paintRegion(Graphics g) | public void | preferenceChanged(boolean width, boolean height) Specifies that some preference has changed. | public void | propertyChange(PropertyChangeEvent evt) This method gets called when a bound property is changed. | public void | removeUpdate(DocumentEvent evt) Remove from document notification. | public void | uninstallUI(JComponent c) | void | updateHeight() | public int | viewToModel(JTextComponent c, Point pt) | public int | viewToModel(JTextComponent c, int x, int y) | public int | viewToModel(JTextComponent c, Point pt, Position.Bias[] biasReturn) |
componentID | int componentID(Code) | | ID of the component in registry
|
BaseTextUI | public BaseTextUI()(Code) | | |
changedUpdate | public void changedUpdate(DocumentEvent evt)(Code) | | The change in document notification.
Parameters: evt - The change notification from the currently associateddocument. |
create | public View create(Element elem)(Code) | | Creates a view for an element.
Parameters: elem - the element the newly created view or null |
create | public View create(Element elem, int p0, int p1)(Code) | | Creates a view for an element.
Parameters: elem - the element Parameters: p0 - the starting offset >= 0 Parameters: p1 - the ending offset >= p0 the view |
damageRange | public void damageRange(JTextComponent t, int p0, int p1, Position.Bias p0Bias, Position.Bias p1Bias)(Code) | | Causes the portion of the view responsible for the given part of the
model to be repainted.
Parameters: p0 - the beginning of the range >= 0 Parameters: p1 - the end of the range >= p0 |
getBaseX | public int getBaseX(int y)(Code) | | |
getEditorUI | public EditorUI getEditorUI()(Code) | | Get extended UI. This is called from views to get correct extended UI.
|
getMaximumSize | public Dimension getMaximumSize(JComponent c)(Code) | | Gets the maximum size for the editor component.
Parameters: c - the editor component the size |
getMinimumSize | public Dimension getMinimumSize(JComponent c)(Code) | | Gets the minimum size for the editor component.
Parameters: c - the editor component the size |
getPreferredSize | public Dimension getPreferredSize(JComponent c)(Code) | | Gets the preferred size for the editor component. If the component has
been given a size prior to receiving this request, it will set the size
of the view hierarchy to reflect the size of the component before
requesting the preferred size of the view hierarchy. This allows
formatted views to format to the current component size before answering
the request. Other views don't care about currently formatted size and
give the same answer either way.
Parameters: c - the editor component the size |
installUI | public void installUI(JComponent c)(Code) | | Installs the UI for a component.
|
invalidateStartY | public void invalidateStartY()(Code) | | |
paint | public void paint(Graphics g, JComponent c)(Code) | | Paint the UI.
Parameters: g - the graphics context Parameters: c - the editor component |
paintRegion | void paintRegion(Graphics g)(Code) | | Paint either image region or classic graphics region
|
preferenceChanged | public void preferenceChanged(boolean width, boolean height)(Code) | | Specifies that some preference has changed.
|
propertyChange | public void propertyChange(PropertyChangeEvent evt)(Code) | | This method gets called when a bound property is changed. We are looking
for document changes on the component.
|
removeUpdate | public void removeUpdate(DocumentEvent evt)(Code) | | Remove from document notification.
|
uninstallUI | public void uninstallUI(JComponent c)(Code) | | Deinstalls the UI for a component
|
updateHeight | void updateHeight()(Code) | | Update height of the views
|
Methods inherited from javax.swing.plaf.TextUI | abstract public void damageRange(JTextComponent t, int p0, int p1)(Code)(Java Doc) abstract public void damageRange(JTextComponent t, int p0, int p1, Position.Bias firstBias, Position.Bias secondBias)(Code)(Java Doc) abstract public EditorKit getEditorKit(JTextComponent t)(Code)(Java Doc) abstract public int getNextVisualPositionFrom(JTextComponent t, int pos, Position.Bias b, int direction, Position.Bias[] biasRet) throws BadLocationException(Code)(Java Doc) abstract public View getRootView(JTextComponent t)(Code)(Java Doc) public String getToolTipText(JTextComponent t, Point pt)(Code)(Java Doc) abstract public Rectangle modelToView(JTextComponent t, int pos) throws BadLocationException(Code)(Java Doc) abstract public Rectangle modelToView(JTextComponent t, int pos, Position.Bias bias) throws BadLocationException(Code)(Java Doc) abstract public int viewToModel(JTextComponent t, Point pt)(Code)(Java Doc) abstract public int viewToModel(JTextComponent t, Point pt, Position.Bias[] biasReturn)(Code)(Java Doc)
|
|
|