ch.randelshofer.quaqua
Class QuaquaTextAreaUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.TextUI
javax.swing.plaf.basic.BasicTextUI
javax.swing.plaf.basic.BasicTextAreaUI
ch.randelshofer.quaqua.QuaquaTextAreaUI
- All Implemented Interfaces:
- VisuallyLayoutable, javax.swing.text.ViewFactory
public class QuaquaTextAreaUI
- extends javax.swing.plaf.basic.BasicTextAreaUI
- implements VisuallyLayoutable
QuaquaTextAreaUI.
- Version:
- $Id: QuaquaTextAreaUI.java 361 2010-11-21 11:19:20Z wrandelshofer $
- Author:
- Werner Randelshofer
| Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicTextUI |
javax.swing.plaf.basic.BasicTextUI.BasicCaret, javax.swing.plaf.basic.BasicTextUI.BasicHighlighter |
|
Method Summary |
protected javax.swing.text.Caret |
createCaret()
|
protected javax.swing.text.Highlighter |
createHighlighter()
|
protected java.awt.event.MouseListener |
createPopupListener()
|
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent jcomponent)
|
int |
getBaseline(javax.swing.JComponent c,
int width,
int height)
Returns the baseline for the specified component, or -1 if the
baseline can not be determined. |
javax.swing.text.EditorKit |
getEditorKit(javax.swing.text.JTextComponent tc)
Fetches the EditorKit for the UI. |
java.awt.Rectangle |
getVisualBounds(javax.swing.JComponent c,
int type,
int width,
int height)
Returns the visual bounds for the specified component, or null if the
visual bounds can not be determined. |
protected void |
installDefaults()
|
protected void |
installListeners()
|
protected void |
paintSafely(java.awt.Graphics g)
|
void |
propertyChange(java.beans.PropertyChangeEvent event)
|
protected void |
uninstallDefaults()
|
protected void |
uninstallListeners()
|
| Methods inherited from class javax.swing.plaf.basic.BasicTextAreaUI |
create, getBaselineResizeBehavior, getMinimumSize, getPreferredSize, getPropertyPrefix |
| Methods inherited from class javax.swing.plaf.basic.BasicTextUI |
create, createKeymap, damageRange, damageRange, getComponent, getKeymapName, getMaximumSize, getNextVisualPositionFrom, getRootView, getToolTipText, getVisibleEditorRect, installKeyboardActions, installUI, modelChanged, modelToView, modelToView, paint, paintBackground, setView, uninstallKeyboardActions, uninstallUI, update, viewToModel, viewToModel |
| Methods inherited from class javax.swing.plaf.ComponentUI |
contains, getAccessibleChild, getAccessibleChildrenCount |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QuaquaTextAreaUI
public QuaquaTextAreaUI()
createUI
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent jcomponent)
installDefaults
protected void installDefaults()
- Overrides:
installDefaults in class javax.swing.plaf.basic.BasicTextAreaUI
uninstallDefaults
protected void uninstallDefaults()
- Overrides:
uninstallDefaults in class javax.swing.plaf.basic.BasicTextUI
installListeners
protected void installListeners()
- Overrides:
installListeners in class javax.swing.plaf.basic.BasicTextUI
uninstallListeners
protected void uninstallListeners()
- Overrides:
uninstallListeners in class javax.swing.plaf.basic.BasicTextUI
createPopupListener
protected java.awt.event.MouseListener createPopupListener()
getEditorKit
public javax.swing.text.EditorKit getEditorKit(javax.swing.text.JTextComponent tc)
- Fetches the EditorKit for the UI.
- Overrides:
getEditorKit in class javax.swing.plaf.basic.BasicTextUI
- Parameters:
tc - the text component for which this UI is installed
- Returns:
- the editor capabilities
- See Also:
TextUI.getEditorKit(javax.swing.text.JTextComponent)
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent event)
- Overrides:
propertyChange in class javax.swing.plaf.basic.BasicTextAreaUI
paintSafely
protected void paintSafely(java.awt.Graphics g)
- Overrides:
paintSafely in class javax.swing.plaf.basic.BasicTextUI
createCaret
protected javax.swing.text.Caret createCaret()
- Overrides:
createCaret in class javax.swing.plaf.basic.BasicTextUI
createHighlighter
protected javax.swing.text.Highlighter createHighlighter()
- Overrides:
createHighlighter in class javax.swing.plaf.basic.BasicTextUI
getBaseline
public int getBaseline(javax.swing.JComponent c,
int width,
int height)
- Description copied from interface:
VisuallyLayoutable
- Returns the baseline for the specified component, or -1 if the
baseline can not be determined. The baseline is measured from
the top of the component.
- Specified by:
getBaseline in interface VisuallyLayoutable- Overrides:
getBaseline in class javax.swing.plaf.basic.BasicTextAreaUI
- Parameters:
c - JComponent to calculate baseline forwidth - Width of the component to determine baseline for.height - Height of the component to determine baseline for.
- Returns:
- baseline for the specified component
getVisualBounds
public java.awt.Rectangle getVisualBounds(javax.swing.JComponent c,
int type,
int width,
int height)
- Description copied from interface:
VisuallyLayoutable
- Returns the visual bounds for the specified component, or null if the
visual bounds can not be determined.
- Specified by:
getVisualBounds in interface VisuallyLayoutable
- Parameters:
c - JComponent to calculate visual margin fortype - The type of the visual margin.width - Width of the componentheight - Height of the component
- Returns:
- The visual bounds in component coordinates.