001 /* 002 * Copyright 2005 Sun Microsystems, Inc., 4150 Network Circle, 003 * Santa Clara, California 95054, U.S.A. All rights reserved. 004 * 005 * This library is free software; you can redistribute it and/or 006 * modify it under the terms of the GNU Lesser General Public 007 * License as published by the Free Software Foundation; either 008 * version 2.1 of the License, or (at your option) any later version. 009 * 010 * This library is distributed in the hope that it will be useful, 011 * but WITHOUT ANY WARRANTY; without even the implied warranty of 012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 013 * Lesser General Public License for more details. 014 * 015 * You should have received a copy of the GNU Lesser General Public 016 * License along with this library; if not, write to the Free Software 017 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 018 */ 019 package org.jdesktop.swingx.plaf; 020 021 import javax.swing.plaf.ComponentUI; 022 023 /** 024 * @author Joshua Outwater 025 */ 026 public abstract class DatePickerUI extends ComponentUI { 027 /** 028 * Get the baseline for the specified component, or a value less 029 * than 0 if the baseline can not be determined. The baseline is measured 030 * from the top of the component. 031 * 032 * @param width Width of the component to determine baseline for. 033 * @param height Height of the component to determine baseline for. 034 * @return baseline for the specified component 035 */ 036 public int getBaseline(int width, int height) { 037 return -1; 038 } 039 }