Quaqua 8.0 2011-10-02

ch.randelshofer.quaqua
Class QuaquaBaseline

java.lang.Object
  extended by org.jdesktop.layout.Baseline
      extended by ch.randelshofer.quaqua.QuaquaBaseline

public class QuaquaBaseline
extends Baseline

QuaquaBaseline.

Version:
$Id: QuaquaBaseline.java 361 2010-11-21 11:19:20Z wrandelshofer $
Author:
Werner Randelshofer

Field Summary
 
Fields inherited from class org.jdesktop.layout.Baseline
BRB_CENTER_OFFSET, BRB_CONSTANT_ASCENT, BRB_CONSTANT_DESCENT, BRB_OTHER
 
Constructor Summary
QuaquaBaseline()
          Creates a new instance.
 
Method Summary
 int getComponentBaseline(javax.swing.JComponent component, int width, int height)
          Returns the baseline for the specified component, or -1 if the baseline can not be determined.
 
Methods inherited from class org.jdesktop.layout.Baseline
getBaseline, getBaseline, getBaselineResizeBehavior
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuaquaBaseline

public QuaquaBaseline()
Creates a new instance.

Method Detail

getComponentBaseline

public int getComponentBaseline(javax.swing.JComponent component,
                                int width,
                                int height)
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.

Overrides:
getComponentBaseline in class Baseline
Parameters:
component - JComponent to calculate baseline for
width - Width of the component to determine baseline for.
height - Height of the component to determine baseline for.
Returns:
baseline for the specified component

Copyright 2003-2007 (c) Werner Randelshofer.
All rights reserved.