Warning
Serialized objects of this class will not be compatible with
future Swing releases. The current serialization support is
appropriate for short term storage or RMI between applications running
the same version of Swing. As of 1.4, support for long term storage
of all JavaBeans
has been added to the java.beans package.
Please see java..
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static ComponentUI | Returns: the UI objectthe JTextPane object c)Hides javax. Creates a UI for the JTextPane. |
| protected String | Returns: the name ("TextPane")Overrides javax. Fetches the name used as a key to lookup properties through the UIManager. |
| public void | installUI(JComponent
the editor component c)Overrides javax. Installs the UI for a component. |
| pack-priv void | paintBackground(SynthContext context, Graphics g, JComponent c)
Overrides javax.
|
| public void | paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
Overrides javax. Implements javax. Paints the border. |
| protected void | propertyChange(PropertyChangeEvent
the property change event evt)Overrides javax. This method gets called when a bound property is changed on the associated JTextComponent. |
| private void | updateFont(Font
the new font to use or null to remove the font attribute
from the document's style font)Hides javax. Update the font in the default style of the document. |
| private void | updateForeground(Color
the new color to use or null to remove the color attribute
from the document's style color)Hides javax. Update the color in the default style of the document. |
| SynthTextPaneUI | back to summary |
|---|---|
| public SynthTextPaneUI() Constructs a | |
| createUI | back to summary |
|---|---|
| public static ComponentUI createUI(JComponent c) Hides javax. Creates a UI for the JTextPane.
| |
| getPropertyPrefix | back to summary |
|---|---|
| protected String getPropertyPrefix() Overrides javax. Fetches the name used as a key to lookup properties through the UIManager. This is used as a prefix to all the standard text properties. | |
| installUI | back to summary |
|---|---|
| public void installUI(JComponent c) Overrides javax. Installs the UI for a component. This does the following things.
| |
| paintBackground | back to summary |
|---|---|
| pack-priv void paintBackground(SynthContext context, Graphics g, JComponent c) Overrides javax.
| |
| paintBorder | back to summary |
|---|---|
| public void paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h) Overrides javax. Implements javax. Doc from javax. Paints the border.
| |
| propertyChange | back to summary |
|---|---|
| protected void propertyChange(PropertyChangeEvent evt) Overrides javax. This method gets called when a bound property is changed on the associated JTextComponent. This is a hook which UI implementations may change to reflect how the UI displays bound properties of JTextComponent subclasses. If the font, foreground or document has changed, the the appropriate property is set in the default style of the document.
| |
| updateFont | back to summary |
|---|---|
| private void updateFont(Font font) Hides javax. Update the font in the default style of the document.
| |
| updateForeground | back to summary |
|---|---|
| private void updateForeground(Color color) Hides javax. Update the color in the default style of the document.
| |