javax.swing.plaf.basic
public class BasicSeparatorUI extends SeparatorUI
Modifier and Type | Field and Description |
---|---|
protected Color |
highlight
The highlight color.
|
protected Color |
shadow
The shadow color.
|
Constructor and Description |
---|
BasicSeparatorUI() |
Modifier and Type | Method and Description |
---|---|
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.
|
contains, getAccessibleChild, getAccessibleChildrenCount, update
public BasicSeparatorUI()
public static ComponentUI createUI(JComponent c)
c
- The JComponent to create a delegate for.public void installUI(JComponent c)
installUI
in class ComponentUI
c
- The JComponent that is having this UI installed.ComponentUI.uninstallUI(javax.swing.JComponent)
,
JComponent.setUI(javax.swing.plaf.ComponentUI)
,
JComponent.updateUI()
public void uninstallUI(JComponent c)
uninstallUI
in class ComponentUI
c
- The JComponent that is having this UI uninstalled.ComponentUI.installUI(javax.swing.JComponent)
,
JComponent.setUI(javax.swing.plaf.ComponentUI)
,
JComponent.updateUI()
protected void installDefaults(JSeparator s)
s
- The JSeparator that is being installed.protected void uninstallDefaults(JSeparator s)
s
- The JSeparator that is being uninstalled.protected void installListeners(JSeparator s)
s
- The JSeparator that is being installed.protected void uninstallListeners(JSeparator s)
s
- The JSeparator that is being uninstalled.public void paint(Graphics g, JComponent c)
paint
in class ComponentUI
g
- The Graphics object to paint withc
- The JComponent to paint.public Dimension getPreferredSize(JComponent c)
getPreferredSize
in class ComponentUI
c
- The JComponent to measure.public Dimension getMinimumSize(JComponent c)
getMinimumSize
in class ComponentUI
c
- The JComponent to measure.public Dimension getMaximumSize(JComponent c)
getMaximumSize
in class ComponentUI
c
- The JComponent to measure.