com.alee.laf.separator
Class WebSeparatorUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.SeparatorUI
          extended by javax.swing.plaf.basic.BasicSeparatorUI
              extended by com.alee.laf.separator.WebSeparatorUI
Direct Known Subclasses:
WebToolBarSeparatorUI

public class WebSeparatorUI
extends javax.swing.plaf.basic.BasicSeparatorUI

Custom UI for JSeparator component.

Author:
Mikle Garin

Field Summary
 
Fields inherited from class javax.swing.plaf.basic.BasicSeparatorUI
highlight, shadow
 
Constructor Summary
WebSeparatorUI()
           
 
Method Summary
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
           
 java.awt.Insets getMargin()
           
 java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
           
 java.awt.Color getSeparatorColor()
           
 java.awt.Color getSeparatorLightColor()
           
 java.awt.Color getSeparatorLightUpperColor()
           
 java.awt.Color getSeparatorUpperColor()
           
 void installUI(javax.swing.JComponent c)
           
 boolean isDrawLeadingLine()
           
 boolean isDrawTrailingLine()
           
 boolean isReversedColors()
           
 void paint(java.awt.Graphics g, javax.swing.JComponent c)
           
 void setDrawLeadingLine(boolean drawLeadingLine)
           
 void setDrawTrailingLine(boolean drawTrailingLine)
           
 void setMargin(java.awt.Insets margin)
           
 void setReversedColors(boolean reversedColors)
           
 void setSeparatorColor(java.awt.Color separatorColor)
           
 void setSeparatorLightColor(java.awt.Color separatorLightColor)
           
 void setSeparatorLightUpperColor(java.awt.Color separatorLightUpperColor)
           
 void setSeparatorUpperColor(java.awt.Color separatorUpperColor)
           
 void uninstallUI(javax.swing.JComponent c)
           
 
Methods inherited from class javax.swing.plaf.basic.BasicSeparatorUI
getMaximumSize, getMinimumSize, installDefaults, installListeners, uninstallDefaults, uninstallListeners
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebSeparatorUI

public WebSeparatorUI()
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.BasicSeparatorUI

uninstallUI

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

getSeparatorColor

public java.awt.Color getSeparatorColor()

setSeparatorColor

public void setSeparatorColor(java.awt.Color separatorColor)

getSeparatorUpperColor

public java.awt.Color getSeparatorUpperColor()

setSeparatorUpperColor

public void setSeparatorUpperColor(java.awt.Color separatorUpperColor)

getSeparatorLightColor

public java.awt.Color getSeparatorLightColor()

setSeparatorLightColor

public void setSeparatorLightColor(java.awt.Color separatorLightColor)

getSeparatorLightUpperColor

public java.awt.Color getSeparatorLightUpperColor()

setSeparatorLightUpperColor

public void setSeparatorLightUpperColor(java.awt.Color separatorLightUpperColor)

isReversedColors

public boolean isReversedColors()

setReversedColors

public void setReversedColors(boolean reversedColors)

isDrawLeadingLine

public boolean isDrawLeadingLine()

setDrawLeadingLine

public void setDrawLeadingLine(boolean drawLeadingLine)

isDrawTrailingLine

public boolean isDrawTrailingLine()

setDrawTrailingLine

public void setDrawTrailingLine(boolean drawTrailingLine)

getMargin

public java.awt.Insets getMargin()

setMargin

public void setMargin(java.awt.Insets margin)

paint

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

getPreferredSize

public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
Overrides:
getPreferredSize in class javax.swing.plaf.basic.BasicSeparatorUI