javax.swing.plaf.basic
public class BasicSeparatorUI extends SeparatorUI
Field Summary | |
---|---|
protected Color | highlight The highlight color. |
protected Color | shadow The shadow color. |
Method Summary | |
---|---|
static ComponentUI | createUI(JComponent c)
Creates a new UI delegate for the given JComponent.
|
Dimension | getMaximumSize(JComponent c)
This method returns the maximum size of the
JComponent.
|
Dimension | getMinimumSize(JComponent c)
This method returns the minimum size of the
JComponent.
|
Dimension | getPreferredSize(JComponent c)
This method returns the preferred size of the
JComponent.
|
protected void | installDefaults(JSeparator s)
This method installs the defaults that are given by
the Basic Look and Feel.
|
protected void | installListeners(JSeparator s)
This method installs any listeners that need
to be attached to the JSeparator or any of its
components.
|
void | installUI(JComponent c)
This method installs the UI for the given JComponent.
|
void | paint(Graphics g, JComponent c)
The separator is made of two lines. |
protected void | uninstallDefaults(JSeparator s)
This method removes the defaults that were given
by the Basic Look and Feel.
|
protected void | uninstallListeners(JSeparator s)
This method uninstalls any listeners that
were installed during the install UI process.
|
void | uninstallUI(JComponent c)
Uninstalls the UI for the given JComponent. |
Parameters: c The JComponent to create a delegate for.
Returns: A new BasicSeparatorUI.
Parameters: c The JComponent to measure.
Returns: The maximum size.
Parameters: c The JComponent to measure.
Returns: The minimum size.
Parameters: c The JComponent to measure.
Returns: The preferred size.
Parameters: s The JSeparator that is being installed.
Parameters: s The JSeparator that is being installed.
Parameters: c The JComponent that is having this UI installed.
Parameters: g The Graphics object to paint with c The JComponent to paint.
Parameters: s The JSeparator that is being uninstalled.
Parameters: s The JSeparator that is being uninstalled.
Parameters: c The JComponent that is having this UI uninstalled.