| org.jvnet.substance.baseline.SubstanceBaseline
SubstanceBaseline | public class SubstanceBaseline extends Baseline (Code) | | Convenience class that can be used to determine the baseline of a particular
component under Substance.
|
Method Summary | |
public int | getComponentBaseline(JComponent component, int width, int height) Returns the baseline for the specified component, or -1 if the baseline
can not be determined. |
SubstanceBaseline | public SubstanceBaseline()(Code) | | Creates an instance of Baseline. You typically don't create a Baseline.
The constructor is provided by look and feels that wish to provide
baseline support.
A custom look and feel that wants to provide Baseline
support should put the instance in the defaults returned from
getDefaults . If you want to override the baseline suport
for a look and feel place the instance in the defaults returned from
UIManager.getLookAndFeelDefaults(). Tthis will ensure that if the look
and feel changes the appropriate baseline can be used.
|
getComponentBaseline | public int getComponentBaseline(JComponent component, int width, int height)(Code) | | Returns the baseline for the specified component, or -1 if the baseline
can not be determined. The baseline is measured from the top of the
component.
Parameters: component - JComponent to calculate baseline for Parameters: width - Width of the component to determine baseline for. Parameters: height - Height of the component to determine baseline for. baseline for the specified component |
|
|