Returns the baseline. The baseline is measured from the top of
the component. This method is primarily meant for
LayoutManager
s to align components along their
baseline. A return value less than 0 indicates this component
does not have a reasonable baseline and that
LayoutManager
s should not align this component on
its baseline.
This method returns -1. Subclasses that have a meaningful baseline
should override appropriately.
Returns:
baseline or a value < 0 indicating there is no reasonable
baseline
Parameters:
- c - JComponent
baseline is being requested for
- width - the width to get the baseline for
- height - the height to get the baseline for
Throws:
- NullPointerException - if c
is null
- IllegalArgumentException - if width or height is < 0
Since:
1.6
See Also:
JComponent.getBaseline(int,int)
,