Implementation of ScrollBarUI for the Basic Look and Feel
Implementation of ScrollBarUI for the Basic Look and Feel
(*create-ui c)
c - javax.swing.JComponent
returns: javax.swing.plaf.ComponentUI
c - `javax.swing.JComponent` returns: `javax.swing.plaf.ComponentUI`
(add-layout-component this name child)
Description copied from interface: LayoutManager
name - the string to be associated with the component - java.lang.String
child - the component to be added - java.awt.Component
Description copied from interface: LayoutManager name - the string to be associated with the component - `java.lang.String` child - the component to be added - `java.awt.Component`
(get-maximum-size this c)
Description copied from class: ComponentUI
c - The JScrollBar that's delegating this method to us. - javax.swing.JComponent
returns: new Dimension(Integer.MAX_VALUE, Integer.MAX_VALUE); - java.awt.Dimension
Description copied from class: ComponentUI c - The JScrollBar that's delegating this method to us. - `javax.swing.JComponent` returns: new Dimension(Integer.MAX_VALUE, Integer.MAX_VALUE); - `java.awt.Dimension`
(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`
(install-ui this c)
Description copied from class: ComponentUI
c - the component where this UI delegate is being installed - javax.swing.JComponent
Description copied from class: ComponentUI c - the component where this UI delegate is being installed - `javax.swing.JComponent`
(layout-container this scrollbar-container)
Description copied from interface: LayoutManager
scrollbar-container - the container to be laid out - java.awt.Container
Description copied from interface: LayoutManager scrollbar-container - the container to be laid out - `java.awt.Container`
(minimum-layout-size this scrollbar-container)
Description copied from interface: LayoutManager
scrollbar-container - the component to be laid out - java.awt.Container
returns: java.awt.Dimension
Description copied from interface: LayoutManager scrollbar-container - the component to be laid out - `java.awt.Container` returns: `java.awt.Dimension`
(paint this g c)
Description copied from class: ComponentUI
g - the Graphics context in which to paint - java.awt.Graphics
c - the component being painted; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components - javax.swing.JComponent
Description copied from class: ComponentUI g - the Graphics context in which to paint - `java.awt.Graphics` c - the component being painted; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components - `javax.swing.JComponent`
(preferred-layout-size this scrollbar-container)
Description copied from interface: LayoutManager
scrollbar-container - the container to be laid out - java.awt.Container
returns: java.awt.Dimension
Description copied from interface: LayoutManager scrollbar-container - the container to be laid out - `java.awt.Container` returns: `java.awt.Dimension`
(remove-layout-component this child)
Description copied from interface: LayoutManager
child - the component to be removed - java.awt.Component
Description copied from interface: LayoutManager child - the component to be removed - `java.awt.Component`
(thumb-rollover? this)
Returns true if the mouse is currently over the thumb.
returns: true if the thumb is currently active - boolean
Returns true if the mouse is currently over the thumb. returns: true if the thumb is currently active - `boolean`
(uninstall-ui this c)
Description copied from class: ComponentUI
c - the component from which this UI delegate is being removed; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components - javax.swing.JComponent
Description copied from class: ComponentUI c - the component from which this UI delegate is being removed; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components - `javax.swing.JComponent`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close