javax.swing.JScrollPane .
| Modifier and Type | Class and Description |
|---|---|
| private class | SynthScrollPaneUI.
A subclass of |
| private class | SynthScrollPaneUI.
Handle keeping track of the viewport's view's focus |
| Modifier and Type | Field and Description |
|---|---|
| private SynthStyle | |
| private SynthScrollPaneUI. | |
| 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 x)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(JScrollPane scrollpane)
Overrides javax. Installs default properties. |
| protected void | installListeners(JScrollPane c)
Overrides javax. Registers listeners. |
| public void | paint(Graphics
the g, JComponent Graphics object used for paintingthe component being painted c)Overrides javax. Paints the specified component according to the Look and Feel. |
| protected void | paint(SynthContext
context for the component being painted context, Graphics the g)Graphics object used for paintingPaints the specified component. |
| public void | paintBorder(SynthContext context, Graphics g, int x, int y, int w, int h)
Implements javax. Paints the border. |
| public void | propertyChange(PropertyChangeEvent e)
Implements java. This method gets called when a bound property is changed. |
| protected void | uninstallDefaults(JScrollPane c)
Overrides javax. Uninstalls default properties. |
| protected void | uninstallListeners(JComponent c)
Overrides javax. Unregisters listeners. |
| 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 |
| style | back to summary |
|---|---|
| private SynthStyle style | |
| viewportViewFocusHandler | back to summary |
|---|---|
| private SynthScrollPaneUI. | |
| viewportViewHasFocus | back to summary |
|---|---|
| private boolean viewportViewHasFocus | |
| SynthScrollPaneUI | back to summary |
|---|---|
| public SynthScrollPaneUI() Constructs a | |
| createUI | back to summary |
|---|---|
| public static ComponentUI createUI(JComponent x) 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(JScrollPane scrollpane) Overrides javax. Doc from javax. Installs default properties.
| |
| installListeners | back to summary |
|---|---|
| protected void installListeners(JScrollPane c) Overrides javax. Doc from javax. Registers listeners.
| |
| paint | back to summary |
|---|---|
| public void paint(Graphics g, JComponent c) Overrides javax. Paints the specified component according to the Look and Feel. This method is not used by Synth Look and Feel.
Painting is handled by the
| |
| paint | back to summary |
|---|---|
| protected void paint(SynthContext context, Graphics g) Paints the specified component.
| |
| 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 |
|---|---|
| public void propertyChange(PropertyChangeEvent e) Implements java. Doc from java. This method gets called when a bound property is changed. | |
| uninstallDefaults | back to summary |
|---|---|
| protected void uninstallDefaults(JScrollPane c) Overrides javax. Doc from javax. Uninstalls default properties.
| |
| uninstallListeners | back to summary |
|---|---|
| protected void uninstallListeners(JComponent c) Overrides javax. Doc from javax. Unregisters listeners.
| |
| 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(JScrollPane c) | |
AbstractBorder that implements UIResource.
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public Insets | getBorderInsets(Component c, Insets insets)
Overrides javax. Reinitializes the insets parameter with this Border's current Insets. |
| public boolean | isBorderOpaque()
Overrides javax. Implements javax. This default implementation returns false. |
| public void | paintBorder(Component c, Graphics g, int x, int y, int width, int height)
Overrides javax. Implements javax. This default implementation does no painting. |
| insets | back to summary |
|---|---|
| private Insets insets | |
| ViewportBorder | back to summary |
|---|---|
| pack-priv ViewportBorder(SynthContext context) | |
| getBorderInsets | back to summary |
|---|---|
| public Insets getBorderInsets(Component c, Insets insets) Overrides javax. Doc from javax. Reinitializes the insets parameter with this Border's current Insets.
| |
| isBorderOpaque | back to summary |
|---|---|
| public boolean isBorderOpaque() Overrides javax. Implements javax. Doc from javax. This default implementation returns false.
| |
| paintBorder | back to summary |
|---|---|
| public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) Overrides javax. Implements javax. Doc from javax. This default implementation does no painting.
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | componentAdded(ContainerEvent e)
Implements java. Invoked when a component has been added to the container. |
| public void | componentRemoved(ContainerEvent e)
Implements java. Invoked when a component has been removed from the container. |
| public void | focusGained(FocusEvent e)
Implements java. Invoked when a component gains the keyboard focus. |
| public void | focusLost(FocusEvent e)
Implements java. Invoked when a component loses the keyboard focus. |
| ViewportViewFocusHandler | back to summary |
|---|---|
| private ViewportViewFocusHandler() | |
| componentAdded | back to summary |
|---|---|
| public void componentAdded(ContainerEvent e) Implements java. Doc from java. Invoked when a component has been added to the container. | |
| componentRemoved | back to summary |
|---|---|
| public void componentRemoved(ContainerEvent e) Implements java. Doc from java. Invoked when a component has been removed from the container. | |
| focusGained | back to summary |
|---|---|
| public void focusGained(FocusEvent e) Implements java. Doc from java. Invoked when a component gains the keyboard focus. | |
| focusLost | back to summary |
|---|---|
| public void focusLost(FocusEvent e) Implements java. Doc from java. Invoked when a component loses the keyboard focus. | |