is new.
java.lang.Objectjavax.swing.plaf.ComponentUI
javax.swing.plaf.PanelUI
javax.swing.plaf.basic.BasicPanelUI
public class BasicPanelUI
BasicPanel implementation
| Constructor Summary | |
|---|---|
|
BasicPanelUI
() |
|
| Method Summary | |
|---|---|
| static ComponentUI |
createUI
(
JComponent
c) |
int
|
getBaseline
(
JComponent
Returns the baseline.
|
Component.BaselineResizeBehavior
|
getBaselineResizeBehavior
(
JComponent
Returns an enum indicating how the baseline of the component changes as the size changes.
|
| protected void |
installDefaults
(
JPanel
p) |
| void |
installUI
(
JComponent
c) Configures the specified component appropriate for the look and feel. |
| protected void |
uninstallDefaults
(
JPanel
p) |
| void |
uninstallUI
(
JComponent
c) Reverses configuration which was done on the specified component during installUI. |
| Methods inherited from class javax.swing.plaf. ComponentUI |
|---|
| contains , getAccessibleChild , getAccessibleChildrenCount , getMaximumSize , getMinimumSize , getPreferredSize , paint , update |
| Methods inherited from class java.lang. Object |
|---|
| clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
| Constructor Detail |
|---|
public BasicPanelUI()
| Method Detail |
|---|
public static ComponentUI createUI(JComponent c)
public void installUI(JComponent c)
public void uninstallUI(JComponent c)
protected void installDefaults(JPanel p)
protected void uninstallDefaults(JPanel p)
getBaseline
public int
getBaseline
(
JComponent
c, int width, int height)
Returns the baseline.
Overrides:
getBaseline
in class
ComponentUI
Parameters:
c - JComponent baseline is being requested for
width - the width to get the baseline for
height - the height to get the baseline for
Returns:
baseline or a value < 0 indicating there is no reasonable baseline
Throws:
NullPointerException
- if c is null
IllegalArgumentException
- if width or height is < 0
Since:
1.6
See Also:
JComponent.getBaseline(int, int)
getBaselineResizeBehavior
public
Component.BaselineResizeBehavior
getBaselineResizeBehavior
(
JComponent
c)
Returns an enum indicating how the baseline of the component changes as the size changes.
Overrides:
getBaselineResizeBehavior
in class
ComponentUI
Parameters:
c - JComponent to return baseline resize behavior for
Returns:
an enum indicating how the baseline changes as the component size changes
Throws:
NullPointerException
- if c is null
Since:
1.6
See Also:
JComponent.getBaseline(int, int)