javax.swing.JEditorPane .
| Modifier and Type | Field and Description |
|---|---|
| private Boolean | |
| private SynthStyle | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static ComponentUI | Returns: the UI objectcomponent to create UI object for c)Hides javax. Creates a new UI object for the given component. |
| private int | |
| public SynthContext | getContext(JComponent c)
Implements javax. Returns the Context for the specified component. |
| private SynthContext | |
| protected void | installDefaults()
Overrides javax. Initializes component properties, such as font, foreground, background, caret color, selection color, selected text color, disabled text color, border, and margin. |
| protected void | paint(SynthContext
context for the component being painted context, Graphics the g)Graphics object used for paintingPaints the specified component. |
| protected void | paintBackground(Graphics g)
Overrides javax. Paints a background for the view. |
| pack-priv void | |
| public void | paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
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. |
| protected void | uninstallDefaults()
Overrides javax. Sets the component properties that have not been explicitly overridden
to |
| public void | update(Graphics
the g, JComponent Graphics object used for paintingthe component being painted c)Overrides javax. Notifies this UI delegate to repaint the specified component. |
| private void |
| localTrue | back to summary |
|---|---|
| private Boolean localTrue | |
| style | back to summary |
|---|---|
| private SynthStyle style | |
| updateKBAction | back to summary |
|---|---|
| private boolean updateKBAction | |
| SynthEditorPaneUI | back to summary |
|---|---|
| public SynthEditorPaneUI() Constructs a | |
| createUI | back to summary |
|---|---|
| public static ComponentUI createUI(JComponent c) Hides javax. Creates a new UI object for the given component.
| |
| getComponentState | back to summary |
|---|---|
| private int getComponentState(JComponent c) | |
| getContext | back to summary |
|---|---|
| public SynthContext getContext(JComponent c) Implements javax. Doc from javax. Returns the Context for the specified component.
| |
| getContext | back to summary |
|---|---|
| private SynthContext getContext(JComponent c, int state) | |
| installDefaults | back to summary |
|---|---|
| protected void installDefaults() Overrides javax. Doc from javax. Initializes component properties, such as font, foreground, background, caret color, selection color, selected text color, disabled text color, border, and margin. Each property is set if its current value is either null or a UIResource.
| |
| paint | back to summary |
|---|---|
| protected void paint(SynthContext context, Graphics g) Paints the specified component.
| |
| paintBackground | back to summary |
|---|---|
| protected void paintBackground(Graphics g) Overrides javax. Doc from javax. Paints a background for the view. This will only be called if isOpaque() on the associated component is true. The default is to paint the background color of the component.
| |
| paintBackground | back to summary |
|---|---|
| pack-priv void paintBackground(SynthContext context, Graphics g, JComponent c) | |
| paintBorder | back to summary |
|---|---|
| public void paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h) 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. This is implemented to rebuild the ActionMap based upon an EditorKit change.
| |
| uninstallDefaults | back to summary |
|---|---|
| protected void uninstallDefaults() Overrides javax. Doc from javax. Sets the component properties that have not been explicitly overridden
to
| |
| update | back to summary |
|---|---|
| public void update(Graphics g, JComponent c) Overrides javax. Notifies this UI delegate to repaint the specified component.
This method paints the component background, then calls
the In general, this method does not need to be overridden by subclasses.
All Look and Feel rendering code should reside in the
| |
| updateStyle | back to summary |
|---|---|
| private void updateStyle(JTextComponent comp, boolean updateKBAction) | |