ehsbe CommonsTM
Version 1.1.0rc3

com.ehsbe.commons.gui
Class JxTitledSeparatorUI

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.ehsbe.commons.gui.JxTitledSeparatorUI

public class JxTitledSeparatorUI
extends BasicSeparatorUI

Titled Separator UI.

Version:
$Revision: 432 $
Author:
Jens Elkner

Field Summary
 
Fields inherited from class javax.swing.plaf.basic.BasicSeparatorUI
highlight, shadow
 
Constructor Summary
JxTitledSeparatorUI()
           
 
Method Summary
static ComponentUI createUI(JComponent c)
          Create the JVM UI component.
 int getBaseline(JxTitledSeparator sep, int width, int height)
          Get the baseline for the specified component, or a value less than 0 if the baseline can not be determined.
 Dimension getMinimumSize(JComponent c)
          
 Dimension getPreferredSize(JComponent c)
          
protected  void installDefaults(JSeparator s)
          
 void paint(Graphics g, JComponent c)
          
 
Methods inherited from class javax.swing.plaf.basic.BasicSeparatorUI
getMaximumSize, installListeners, installUI, uninstallDefaults, uninstallListeners, uninstallUI
 
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

JxTitledSeparatorUI

public JxTitledSeparatorUI()
Method Detail

createUI

public static ComponentUI createUI(JComponent c)
Create the JVM UI component.

Parameters:
c - component to install
Returns:
components UI

installDefaults

protected void installDefaults(JSeparator s)

Overrides:
installDefaults in class BasicSeparatorUI

getPreferredSize

public Dimension getPreferredSize(JComponent c)

Overrides:
getPreferredSize in class BasicSeparatorUI

getMinimumSize

public Dimension getMinimumSize(JComponent c)

Overrides:
getMinimumSize in class BasicSeparatorUI

paint

public void paint(Graphics g,
                  JComponent c)

Overrides:
paint in class BasicSeparatorUI

getBaseline

public int getBaseline(JxTitledSeparator sep,
                       int width,
                       int height)
Get the baseline for the specified component, or a value less than 0 if the baseline can not be determined. The baseline is measured from the top of the component.

Parameters:
sep - separator to inspect for a baseline
width - Width of the component to determine baseline for.
height - Height of the component to determine baseline for.
Returns:
baseline for the specified component

ehsbe CommonsTM
Version 1.1.0rc3

Copyright ©2005-2009 EHSBE, Walther-Rathenau-Str. 58, 39104 Magdeburg, Sachsen-Anhalt, Germany. All Rights Reserved.