ch.randelshofer.quaqua
Class QuaquaTextPaneUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.TextUI
javax.swing.plaf.basic.BasicTextUI
javax.swing.plaf.basic.BasicEditorPaneUI
javax.swing.plaf.basic.BasicTextPaneUI
ch.randelshofer.quaqua.QuaquaTextPaneUI
- All Implemented Interfaces:
- VisuallyLayoutable, javax.swing.text.ViewFactory
public class QuaquaTextPaneUI
- extends javax.swing.plaf.basic.BasicTextPaneUI
- implements VisuallyLayoutable
QuaquaTextPaneUI.
- Version:
- $Id: QuaquaTextPaneUI.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. |
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)
|
protected void |
uninstallDefaults()
|
protected void |
uninstallListeners()
|
| Methods inherited from class javax.swing.plaf.basic.BasicTextPaneUI |
getPropertyPrefix, installUI, propertyChange |
| Methods inherited from class javax.swing.plaf.basic.BasicEditorPaneUI |
getEditorKit, uninstallUI |
| Methods inherited from class javax.swing.plaf.basic.BasicTextUI |
create, create, createKeymap, damageRange, damageRange, getComponent, getKeymapName, getMaximumSize, getMinimumSize, getNextVisualPositionFrom, getPreferredSize, getRootView, getToolTipText, getVisibleEditorRect, installKeyboardActions, modelChanged, modelToView, modelToView, paint, paintBackground, setView, uninstallKeyboardActions, update, viewToModel, viewToModel |
| Methods inherited from class javax.swing.plaf.ComponentUI |
contains, getAccessibleChild, getAccessibleChildrenCount, getBaselineResizeBehavior |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QuaquaTextPaneUI
public QuaquaTextPaneUI()
createUI
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent jcomponent)
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()
installDefaults
protected void installDefaults()
- Overrides:
installDefaults in class javax.swing.plaf.basic.BasicTextUI
uninstallDefaults
protected void uninstallDefaults()
- Overrides:
uninstallDefaults in class javax.swing.plaf.basic.BasicTextUI
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.ComponentUI
- 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.