Overview | Package | Class | Use | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jvnet.substance
Class SubstanceScrollPaneUI.AdjustedLayout

    java.lang.Object
      javax.swing.ScrollPaneLayout
          org.jvnet.substance.SubstanceScrollPaneUI.AdjustedLayout

All Implemented Interfaces:
  java.awt.LayoutManager, java.io.Serializable, javax.swing.plaf.UIResource, javax.swing.ScrollPaneConstants

Enclosing class:
  SubstanceScrollPaneUI

    protected static class SubstanceScrollPaneUI.AdjustedLayout

extends javax.swing.ScrollPaneLayout
implements javax.swing.plaf.UIResource

Layout manager to adjust the bounds of scrollbars and the viewport when the default (`SubstanceScrollPaneBorder`) border is set on the relevant `JScrollPane`.

Author:
  Kirill Grouchnikov
See Also:
  Serialized Form

Nested Class Summary

Nested classes/interfaces inherited from class javax.swing.ScrollPaneLayout
`javax.swing.ScrollPaneLayout.UIResource`

Field Summary
`protected javax.swing.ScrollPaneLayout` | `delegate` The delegate layout.

Fields inherited from class javax.swing.ScrollPaneLayout
`colHead, hsb, hsbPolicy, lowerLeft, lowerRight, rowHead, upperLeft, upperRight, viewport, vsb, vsbPolicy`

Fields inherited from interface javax.swing.ScrollPaneConstants
`COLUMN_HEADER, HORIZONTAL_SCROLLBAR, HORIZONTAL_SCROLLBAR_ALWAYS, HORIZONTAL_SCROLLBAR_AS_NEEDED, HORIZONTAL_SCROLLBAR_NEVER, HORIZONTAL_SCROLLBAR_POLICY, LOWER_LEADING_CORNER, LOWER_LEFT_CORNER, LOWER_RIGHT_CORNER, LOWER_TRAILING_CORNER, ROW_HEADER, UPPER_LEADING_CORNER, UPPER_LEFT_CORNER, UPPER_RIGHT_CORNER, UPPER_TRAILING_CORNER, VERTICAL_SCROLLBAR, VERTICAL_SCROLLBAR_ALWAYS, VERTICAL_SCROLLBAR_AS_NEEDED, VERTICAL_SCROLLBAR_NEVER, VERTICAL_SCROLLBAR_POLICY, VIEWPORT`

Constructor Summary
`SubstanceScrollPaneUI.AdjustedLayout(javax.swing.ScrollPaneLayout delegate)` Creates a new layout for adjusting the bounds of scrollbars and the viewport.

Method Summary
`void` | `addLayoutComponent(java.lang.String s, java.awt.Component c)`
`boolean` | `equals(java.lang.Object obj)`
`javax.swing.JViewport` | `getColumnHeader()`
`java.awt.Component` | `getCorner(java.lang.String key)`
`javax.swing.JScrollBar` | `getHorizontalScrollBar()`
`int` | `getHorizontalScrollBarPolicy()`
`javax.swing.JViewport` | `getRowHeader()`
`javax.swing.JScrollBar` | `getVerticalScrollBar()`
`int` | `getVerticalScrollBarPolicy()`
`javax.swing.JViewport` | `getViewport()`
`java.awt.Rectangle` | `getViewportBorderBounds(javax.swing.JScrollPane scrollpane)`
`int` | `hashCode()`
`void` | `layoutContainer(java.awt.Container parent)`
`java.awt.Dimension` | `minimumLayoutSize(java.awt.Container parent)`
`java.awt.Dimension` | `preferredLayoutSize(java.awt.Container parent)`
`void` | `removeLayoutComponent(java.awt.Component c)`
`void` | `setHorizontalScrollBarPolicy(int x)`
`void` | `setVerticalScrollBarPolicy(int x)`
`void` | `syncWithScrollPane(javax.swing.JScrollPane sp)`
`java.lang.String` | `toString()`

Methods inherited from class javax.swing.ScrollPaneLayout
`addSingletonComponent`

Methods inherited from class java.lang.Object
`clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

Field Detail

### delegate

    protected javax.swing.ScrollPaneLayout delegate

  The delegate layout.

Constructor Detail

### SubstanceScrollPaneUI.AdjustedLayout

    public SubstanceScrollPaneUI.AdjustedLayout(javax.swing.ScrollPaneLayout delegate)

  Creates a new layout for adjusting the bounds of scrollbars and the viewport.

  Parameters:
    `delegate` - The original (delegate) layout.

Method Detail

### addLayoutComponent

    public void addLayoutComponent(java.lang.String s,
                                   java.awt.Component c)

  Specified by:
    `addLayoutComponent` in interface `java.awt.LayoutManager`
  Overrides:
    `addLayoutComponent` in class `javax.swing.ScrollPaneLayout`

### equals

    public boolean equals(java.lang.Object obj)

  Overrides:
    `equals` in class `java.lang.Object`

### getColumnHeader

    public javax.swing.JViewport getColumnHeader()

  Overrides:
    `getColumnHeader` in class `javax.swing.ScrollPaneLayout`

### getCorner

    public java.awt.Component getCorner(java.lang.String key)

  Overrides:
    `getCorner` in class `javax.swing.ScrollPaneLayout`

### getHorizontalScrollBar

    public javax.swing.JScrollBar getHorizontalScrollBar()

  Overrides:
    `getHorizontalScrollBar` in class `javax.swing.ScrollPaneLayout`

### getHorizontalScrollBarPolicy

    public int getHorizontalScrollBarPolicy()

  Overrides:
    `getHorizontalScrollBarPolicy` in class `javax.swing.ScrollPaneLayout`

### getRowHeader

    public javax.swing.JViewport getRowHeader()

  Overrides:
    `getRowHeader` in class `javax.swing.ScrollPaneLayout`

### getVerticalScrollBar

    public javax.swing.JScrollBar getVerticalScrollBar()

  Overrides:
    `getVerticalScrollBar` in class `javax.swing.ScrollPaneLayout`

### getVerticalScrollBarPolicy

    public int getVerticalScrollBarPolicy()

  Overrides:
    `getVerticalScrollBarPolicy` in class `javax.swing.ScrollPaneLayout`

### getViewport

    public javax.swing.JViewport getViewport()

  Overrides:
    `getViewport` in class `javax.swing.ScrollPaneLayout`

### getViewportBorderBounds

    public java.awt.Rectangle getViewportBorderBounds(javax.swing.JScrollPane scrollpane)

  Overrides:
    `getViewportBorderBounds` in class `javax.swing.ScrollPaneLayout`

### hashCode

    public int hashCode()

  Overrides:
    `hashCode` in class `java.lang.Object`

### minimumLayoutSize

    public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)

  Specified by:
    `minimumLayoutSize` in interface `java.awt.LayoutManager`
  Overrides:
    `minimumLayoutSize` in class `javax.swing.ScrollPaneLayout`

### preferredLayoutSize

    public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)

  Specified by:
    `preferredLayoutSize` in interface `java.awt.LayoutManager`
  Overrides:
    `preferredLayoutSize` in class `javax.swing.ScrollPaneLayout`

### removeLayoutComponent

    public void removeLayoutComponent(java.awt.Component c)

  Specified by:
    `removeLayoutComponent` in interface `java.awt.LayoutManager`
  Overrides:
    `removeLayoutComponent` in class `javax.swing.ScrollPaneLayout`

### setHorizontalScrollBarPolicy

    public void setHorizontalScrollBarPolicy(int x)

  Overrides:
    `setHorizontalScrollBarPolicy` in class `javax.swing.ScrollPaneLayout`

### setVerticalScrollBarPolicy

    public void setVerticalScrollBarPolicy(int x)

  Overrides:
    `setVerticalScrollBarPolicy` in class `javax.swing.ScrollPaneLayout`

### syncWithScrollPane

    public void syncWithScrollPane(javax.swing.JScrollPane sp)

  Overrides:
    `syncWithScrollPane` in class `javax.swing.ScrollPaneLayout`

### toString

    public java.lang.String toString()

  Overrides:
    `toString` in class `java.lang.Object`

### layoutContainer

    public void layoutContainer(java.awt.Container parent)

  Specified by:
    `layoutContainer` in interface `java.awt.LayoutManager`
  Overrides:
    `layoutContainer` in class `javax.swing.ScrollPaneLayout`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD