com.alee.laf.scroll
Class WebScrollPaneUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.ScrollPaneUI
          extended by javax.swing.plaf.basic.BasicScrollPaneUI
              extended by com.alee.laf.scroll.WebScrollPaneUI
All Implemented Interfaces:
ShapeProvider, javax.swing.ScrollPaneConstants

public class WebScrollPaneUI
extends javax.swing.plaf.basic.BasicScrollPaneUI
implements ShapeProvider

User: mgarin Date: 29.04.11 Time: 15:34


Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicScrollPaneUI
javax.swing.plaf.basic.BasicScrollPaneUI.HSBChangeListener, javax.swing.plaf.basic.BasicScrollPaneUI.MouseWheelHandler, javax.swing.plaf.basic.BasicScrollPaneUI.PropertyChangeHandler, javax.swing.plaf.basic.BasicScrollPaneUI.ViewportChangeHandler, javax.swing.plaf.basic.BasicScrollPaneUI.VSBChangeListener
 
Field Summary
protected  FocusTracker focusTracker
          Scroll pane focus tracker.
 
Fields inherited from class javax.swing.plaf.basic.BasicScrollPaneUI
hsbChangeListener, scrollpane, spPropertyChangeListener, viewportChangeListener, vsbChangeListener
 
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
WebScrollPaneUI()
           
 
Method Summary
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
           
 java.awt.Color getBorderColor()
           
 java.awt.Color getDarkBorder()
           
 java.awt.Insets getMargin()
           
 int getRound()
           
 int getShadeWidth()
           
 void installUI(javax.swing.JComponent c)
           
 boolean isDrawBackground()
           
 boolean isDrawBorder()
           
 boolean isDrawFocus()
           
 void paint(java.awt.Graphics g, javax.swing.JComponent c)
           
 java.awt.Shape provideShape()
          Returns component shape.
 void setBorderColor(java.awt.Color borderColor)
           
 void setDarkBorder(java.awt.Color darkBorder)
           
 void setDrawBackground(boolean drawBackground)
           
 void setDrawBorder(boolean drawBorder)
           
 void setDrawFocus(boolean drawFocus)
           
 void setMargin(java.awt.Insets margin)
           
 void setRound(int round)
           
 void setShadeWidth(int shadeWidth)
           
 void uninstallUI(javax.swing.JComponent c)
           
 
Methods inherited from class javax.swing.plaf.basic.BasicScrollPaneUI
createHSBChangeListener, createMouseWheelListener, createPropertyChangeListener, createViewportChangeListener, createVSBChangeListener, getBaseline, getBaselineResizeBehavior, getMaximumSize, installDefaults, installKeyboardActions, installListeners, syncScrollPaneWithViewport, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, updateColumnHeader, updateRowHeader, updateScrollBarDisplayPolicy, updateViewport
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getMinimumSize, getPreferredSize, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

focusTracker

protected FocusTracker focusTracker
Scroll pane focus tracker.

Constructor Detail

WebScrollPaneUI

public WebScrollPaneUI()
Method Detail

createUI

public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)

installUI

public void installUI(javax.swing.JComponent c)
Overrides:
installUI in class javax.swing.plaf.basic.BasicScrollPaneUI

uninstallUI

public void uninstallUI(javax.swing.JComponent c)
Overrides:
uninstallUI in class javax.swing.plaf.basic.BasicScrollPaneUI

provideShape

public java.awt.Shape provideShape()
Description copied from interface: ShapeProvider
Returns component shape.

Specified by:
provideShape in interface ShapeProvider
Returns:
component shape

isDrawBorder

public boolean isDrawBorder()

setDrawBorder

public void setDrawBorder(boolean drawBorder)

getRound

public int getRound()

setRound

public void setRound(int round)

getShadeWidth

public int getShadeWidth()

setShadeWidth

public void setShadeWidth(int shadeWidth)

getMargin

public java.awt.Insets getMargin()

setMargin

public void setMargin(java.awt.Insets margin)

isDrawFocus

public boolean isDrawFocus()

setDrawFocus

public void setDrawFocus(boolean drawFocus)

isDrawBackground

public boolean isDrawBackground()

setDrawBackground

public void setDrawBackground(boolean drawBackground)

getBorderColor

public java.awt.Color getBorderColor()

setBorderColor

public void setBorderColor(java.awt.Color borderColor)

getDarkBorder

public java.awt.Color getDarkBorder()

setDarkBorder

public void setDarkBorder(java.awt.Color darkBorder)

paint

public void paint(java.awt.Graphics g,
                  javax.swing.JComponent c)
Overrides:
paint in class javax.swing.plaf.basic.BasicScrollPaneUI