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