All Packages Class Hierarchy This Package Previous Next Index
Class com.sun.java.swing.basic.BasicTextPane
java.lang.Object
|
+----com.sun.java.swing.plaf.DefaultTextUI
|
+----com.sun.java.swing.basic.BasicTextPane
- public class BasicTextPane
- extends DefaultTextUI
Provides the look and feel for a styled text editor.
-
KeymapName
- This is the name of the default keymap that will be shared
by all BasicTextPane instances unless they arrange for something
different.
-
BasicTextPane()
- Creates a new BasicTextPane.
-
createUI(JTextPane)
- Creates a UI for the pane.
-
createView()
- Wraps the default view created with a ScrollPane so that
the view can be scrolled around.
-
createViewFactory()
- Creates the factory to be used for building the
various view fragments that make up the view that
represents the model.
-
installUI(JComponent)
- Installs the default keymap after the superclass does its
thing.
-
paint(Graphics, JComponent)
- Paints the pane.
KeymapName
public static final String KeymapName
- This is the name of the default keymap that will be shared
by all BasicTextPane instances unless they arrange for something
different. The keymap will resolve through the
JTextController.DEFAULT_KEYMAP.
BasicTextPane
public BasicTextPane()
- Creates a new BasicTextPane.
createUI
public static TextUI createUI(JTextPane c)
- Creates a UI for the pane.
- Returns:
- the UI
createViewFactory
protected DefaultTextUI. JViewFactory createViewFactory()
- Creates the factory to be used for building the
various view fragments that make up the view that
represents the model. This is what determines
how the model will be represented.
- Returns:
- the factory
- Overrides:
- createViewFactory in class DefaultTextUI
- See Also:
- create
installUI
public void installUI(JComponent c)
- Installs the default keymap after the superclass does its
thing.
- Parameters:
- c - the UI
- Overrides:
- installUI in class DefaultTextUI
- See Also:
- installUI
createView
protected Component createView()
- Wraps the default view created with a ScrollPane so that
the view can be scrolled around.
- Returns:
- the view wrapped in a Scrollpane
- Overrides:
- createView in class DefaultTextUI
paint
public void paint(Graphics g,
JComponent c)
- Paints the pane.
- Parameters:
- g - the graphics context
- c - the component to paint
- Overrides:
- paint in class DefaultTextUI
All Packages Class Hierarchy This Package Previous Next Index