|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.plaf.ComponentUI
javax.swing.plaf.SeparatorUI
javax.swing.plaf.basic.BasicSeparatorUI
public class BasicSeparatorUI
The Basic Look and Feel UI delegate for JSeparator.
| Field Summary | |
|---|---|
protected Color |
highlight
The highlight color. |
protected Color |
shadow
The shadow color. |
| Constructor Summary | |
|---|---|
BasicSeparatorUI()
|
|
| 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. |
| Methods inherited from class javax.swing.plaf.ComponentUI |
|---|
contains, getAccessibleChild, getAccessibleChildrenCount, update |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Color shadow
protected Color highlight
| Constructor Detail |
|---|
public BasicSeparatorUI()
| Method Detail |
|---|
public static ComponentUI createUI(JComponent c)
c - The JComponent to create a delegate for.
public void installUI(JComponent c)
installUI in class 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(JComponent c)
uninstallUI in class 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(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 ComponentUIg - The Graphics object to paint withc - The JComponent to paint.public Dimension getPreferredSize(JComponent c)
getPreferredSize in class ComponentUIc - The JComponent to measure.
public Dimension getMinimumSize(JComponent c)
getMinimumSize in class ComponentUIc - The JComponent to measure.
public Dimension getMaximumSize(JComponent c)
getMaximumSize in class ComponentUIc - The JComponent to measure.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||