Provides the Synth L&F UI delegate for JScrollBar.
Provides the Synth L&F UI delegate for JScrollBar.
(*create-ui c)
c - javax.swing.JComponent
returns: javax.swing.plaf.ComponentUI
c - `javax.swing.JComponent` returns: `javax.swing.plaf.ComponentUI`
(get-context this c)
Returns the Context for the specified component.
c - Component requesting SynthContext. - javax.swing.JComponent
returns: SynthContext describing component. - javax.swing.plaf.synth.SynthContext
Returns the Context for the specified component. c - Component requesting SynthContext. - `javax.swing.JComponent` returns: SynthContext describing component. - `javax.swing.plaf.synth.SynthContext`
(get-preferred-size this c)
A vertical scrollbar's preferred width is the maximum of preferred widths of the (non null) increment/decrement buttons, and the minimum width of the thumb. The preferred height is the sum of the preferred heights of the same parts. The basis for the preferred size of a horizontal scrollbar is similar.
The preferredSize is only computed once, subsequent calls to this method just return a cached size.
c - the JScrollBar that's delegating this method to us - javax.swing.JComponent
returns: the preferred size of a Basic JScrollBar - java.awt.Dimension
A vertical scrollbar's preferred width is the maximum of preferred widths of the (non null) increment/decrement buttons, and the minimum width of the thumb. The preferred height is the sum of the preferred heights of the same parts. The basis for the preferred size of a horizontal scrollbar is similar. The preferredSize is only computed once, subsequent calls to this method just return a cached size. c - the JScrollBar that's delegating this method to us - `javax.swing.JComponent` returns: the preferred size of a Basic JScrollBar - `java.awt.Dimension`
(get-supports-absolute-positioning? this)
Indicates whether the user can absolutely position the thumb with a mouse gesture (usually the middle mouse button).
returns: true if a mouse gesture can absolutely position the thumb - boolean
Indicates whether the user can absolutely position the thumb with a mouse gesture (usually the middle mouse button). returns: true if a mouse gesture can absolutely position the thumb - `boolean`
(paint this g c)
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(SynthContext,Graphics) method.
g - the Graphics object used for painting - java.awt.Graphics
c - the component being painted - javax.swing.JComponent
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(SynthContext,Graphics) method. g - the Graphics object used for painting - `java.awt.Graphics` c - the component being painted - `javax.swing.JComponent`
(paint-border this context g x y w h)
Paints the border.
context - a component context - javax.swing.plaf.synth.SynthContext
g - Graphics to paint on - java.awt.Graphics
x - the X coordinate - int
y - the Y coordinate - int
w - width of the border - int
h - height of the border - int
Paints the border. context - a component context - `javax.swing.plaf.synth.SynthContext` g - Graphics to paint on - `java.awt.Graphics` x - the X coordinate - `int` y - the Y coordinate - `int` w - width of the border - `int` h - height of the border - `int`
(property-change this e)
Description copied from interface: PropertyChangeListener
e - A PropertyChangeEvent object describing the event source and the property that has changed. - java.beans.PropertyChangeEvent
Description copied from interface: PropertyChangeListener e - A PropertyChangeEvent object describing the event source and the property that has changed. - `java.beans.PropertyChangeEvent`
(update this g c)
Notifies this UI delegate to repaint the specified component. This method paints the component background, then calls the paint(SynthContext,Graphics) method.
In general, this method does not need to be overridden by subclasses. All Look and Feel rendering code should reside in the paint method.
g - the Graphics object used for painting - java.awt.Graphics
c - the component being painted - javax.swing.JComponent
Notifies this UI delegate to repaint the specified component. This method paints the component background, then calls the paint(SynthContext,Graphics) method. In general, this method does not need to be overridden by subclasses. All Look and Feel rendering code should reside in the paint method. g - the Graphics object used for painting - `java.awt.Graphics` c - the component being painted - `javax.swing.JComponent`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close