/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/*
*
* (C) Copyright IBM Corp. 1998-2003 All Rights Reserved
*/
/**
* A label.
* Visual bounds is a rect that encompasses the entire rendered area.
* Logical bounds is a rect that defines how to position this next
* to other objects.
* Align bounds is a rect that defines how to align this to margins.
* it generally allows some overhang that logical bounds would prevent.
*/
public abstract class TextLabel {
/**
* Return a rectangle that surrounds the text outline when this label is rendered at x, y.
*/
/**
* Return a rectangle that corresponds to the logical bounds of the text
* when this label is rendered at x, y.
* This rectangle is used when positioning text next to other text.
*/
/**
* Return a rectangle that corresponds to the alignment bounds of the text
* when this label is rendered at x, y. This rectangle is used when positioning text next
* to a margin. It differs from the logical bounds in that it does not include leading or
* trailing whitespace.
*/
/**
* Return a rectangle that corresponds to the logical bounds of the text, adjusted
* to angle the leading and trailing edges by the italic angle.
*/
/**
* Return an outline of the characters in the label when rendered at x, y.
*/
/**
* Render the label at x, y in the graphics.
*/
/**
* A convenience method that returns the visual bounds when rendered at 0, 0.
*/
}
/**
* A convenience method that returns the logical bounds when rendered at 0, 0.
*/
}
/**
* A convenience method that returns the align bounds when rendered at 0, 0.
*/
}
/**
* A convenience method that returns the italic bounds when rendered at 0, 0.
*/
}
/**
* A convenience method that returns the outline when rendered at 0, 0.
*/
}
/**
* A convenience method that renders the label at 0, 0.
*/
}
}