javax.swing.JScrollBar .
| Modifier and Type | Field and Description |
|---|---|
| private SynthStyle | |
| private SynthStyle | |
| private SynthStyle | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | configureScrollBarColors()
Overrides javax. Configures the scroll bar colors. |
| protected JButton | createDecreaseButton(int orientation)
Overrides javax. Creates a decrease button. |
| protected JButton | createIncreaseButton(int orientation)
Overrides javax. Creates an increase button. |
| public static ComponentUI | Returns: a UIa component c)Hides javax. Returns a UI. |
| private int | |
| public SynthContext | getContext(JComponent c)
Implements javax. Returns the Context for the specified component. |
| private SynthContext | |
| private SynthContext | |
| private SynthContext | |
| protected Dimension | getMinimumThumbSize()
Overrides javax. Returns the smallest acceptable size for the thumb. |
| public Dimension | Returns: the preferred size of a Basic JScrollBarthe c)JScrollBar that's delegating this method to usOverrides javax. A vertical scrollbar's preferred width is the maximum of
preferred widths of the (non |
| public boolean | getSupportsAbsolutePositioning()
Overrides javax. Indicates whether the user can absolutely position the thumb with a mouse gesture (usually the middle mouse button). |
| protected void | installDefaults()
Overrides javax. Installs the defaults. |
| protected void | installListeners()
Overrides javax. Installs the 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. |
| protected void | paintThumb(SynthContext
context for the component being painted context, Graphics Graphics object used for paintingbounding box for the thumb thumbBounds)Paints the scrollbar thumb. |
| protected void | paintTrack(SynthContext
context for the component being painted context, Graphics Graphics object used for paintingbounding box for the track trackBounds)Paints the scrollbar track. |
| public void | propertyChange(PropertyChangeEvent e)
Implements java. This method gets called when a bound property is changed. |
| protected void | setThumbRollover(boolean active)
Overrides javax. Sets whether or not the mouse is currently over the thumb. |
| protected void | uninstallDefaults()
Overrides javax. Uninstalls the defaults. |
| protected void | uninstallListeners()
Overrides javax. Uninstall the 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 | |
| private void |
| style | back to summary |
|---|---|
| private SynthStyle style | |
| thumbStyle | back to summary |
|---|---|
| private SynthStyle thumbStyle | |
| trackStyle | back to summary |
|---|---|
| private SynthStyle trackStyle | |
| validMinimumThumbSize | back to summary |
|---|---|
| private boolean validMinimumThumbSize | |
| SynthScrollBarUI | back to summary |
|---|---|
| public SynthScrollBarUI() Constructs a | |
| configureScrollBarColors | back to summary |
|---|---|
| protected void configureScrollBarColors() Overrides javax. Doc from javax. Configures the scroll bar colors.
| |
| createDecreaseButton | back to summary |
|---|---|
| protected JButton createDecreaseButton(int orientation) Overrides javax. Doc from javax. Creates a decrease button.
| |
| createIncreaseButton | back to summary |
|---|---|
| protected JButton createIncreaseButton(int orientation) Overrides javax. Doc from javax. Creates an increase button.
| |
| createUI | back to summary |
|---|---|
| public static ComponentUI createUI(JComponent c) Hides javax. Returns a UI.
| |
| getComponentState | back to summary |
|---|---|
| private int getComponentState(JComponent c, Region region) | |
| 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) | |
| getContext | back to summary |
|---|---|
| private SynthContext getContext(JComponent c, Region region) | |
| getContext | back to summary |
|---|---|
| private SynthContext getContext(JComponent c, Region region, int state) | |
| getMinimumThumbSize | back to summary |
|---|---|
| protected Dimension getMinimumThumbSize() Overrides javax. Doc from javax. Returns the smallest acceptable size for the thumb. If the scrollbar becomes so small that this size isn't available, the thumb will be hidden. Warning the value returned by this method should not be be modified, it's a shared static constant.
| |
| getPreferredSize | back to summary |
|---|---|
| public Dimension getPreferredSize(JComponent c) Overrides javax. A vertical scrollbar's preferred width is the maximum of
preferred widths of the (non
The
| |
| getSupportsAbsolutePositioning | back to summary |
|---|---|
| public boolean getSupportsAbsolutePositioning() Overrides javax. Doc from javax. Indicates whether the user can absolutely position the thumb with a mouse gesture (usually the middle mouse button).
| |
| installDefaults | back to summary |
|---|---|
| protected void installDefaults() Overrides javax. Doc from javax. Installs the defaults.
| |
| installListeners | back to summary |
|---|---|
| protected void installListeners() Overrides javax. Doc from javax. Installs the 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.
| |
| paintThumb | back to summary |
|---|---|
| protected void paintThumb(SynthContext context, Graphics g, Rectangle thumbBounds) Paints the scrollbar thumb.
| |
| paintTrack | back to summary |
|---|---|
| protected void paintTrack(SynthContext context, Graphics g, Rectangle trackBounds) Paints the scrollbar track.
| |
| propertyChange | back to summary |
|---|---|
| public void propertyChange(PropertyChangeEvent e) Implements java. Doc from java. This method gets called when a bound property is changed. | |
| setThumbRollover | back to summary |
|---|---|
| protected void setThumbRollover(boolean active) Overrides javax. Doc from javax. Sets whether or not the mouse is currently over the thumb.
| |
| uninstallDefaults | back to summary |
|---|---|
| protected void uninstallDefaults() Overrides javax. Doc from javax. Uninstalls the defaults.
| |
| uninstallListeners | back to summary |
|---|---|
| protected void uninstallListeners() Overrides javax. Doc from javax. Uninstall the 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
| |
| updateButtonDirections | back to summary |
|---|---|
| private void updateButtonDirections() Hides javax. | |
| updateStyle | back to summary |
|---|---|
| private void updateStyle(JScrollBar c) | |