public class ShortTextTitle extends TextTitle
TextTitle
class.TextTitle
,
Serialized FormDEFAULT_FONT, DEFAULT_TEXT_PAINT
DEFAULT_HORIZONTAL_ALIGNMENT, DEFAULT_PADDING, DEFAULT_POSITION, DEFAULT_VERTICAL_ALIGNMENT, visible
Constructor and Description |
---|
ShortTextTitle(java.lang.String text)
Creates a new title.
|
Modifier and Type | Method and Description |
---|---|
org.jfree.ui.Size2D |
arrange(java.awt.Graphics2D g2,
RectangleConstraint constraint)
Performs a layout for this title, subject to the supplied constraint,
and returns the dimensions required for the title (if the title
cannot be displayed in the available space, this method will return
zero width and height for the dimensions).
|
protected org.jfree.ui.Size2D |
arrangeFN(java.awt.Graphics2D g2,
double w)
Arranges the content for this title assuming a fixed width and no bounds
on the height, and returns the required size.
|
protected org.jfree.ui.Size2D |
arrangeNN(java.awt.Graphics2D g2)
Arranges the content for this title assuming no bounds on the width
or the height, and returns the required size.
|
protected org.jfree.ui.Size2D |
arrangeRN(java.awt.Graphics2D g2,
Range widthRange)
Arranges the content for this title assuming a range constraint for the
width and no bounds on the height, and returns the required size.
|
protected org.jfree.ui.Size2D |
arrangeRR(java.awt.Graphics2D g2,
Range widthRange,
Range heightRange)
Returns the content size for the title.
|
java.lang.Object |
draw(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D area,
java.lang.Object params)
Draws the title using the current font and paint.
|
clone, draw, drawHorizontal, drawVertical, equals, getBackgroundPaint, getExpandToFitSpace, getFont, getMaximumLinesToDisplay, getPaint, getText, getTextAlignment, getToolTipText, getURLText, hashCode, setBackgroundPaint, setExpandToFitSpace, setFont, setMaximumLinesToDisplay, setPaint, setText, setTextAlignment, setToolTipText, setURLText
addChangeListener, getHorizontalAlignment, getNotify, getPosition, getVerticalAlignment, isVisible, notifyListeners, removeChangeListener, setHorizontalAlignment, setNotify, setPosition, setVerticalAlignment, setVisible
arrange, calculateTotalHeight, calculateTotalWidth, drawBorder, getBorder, getBounds, getContentXOffset, getContentYOffset, getFrame, getHeight, getID, getMargin, getPadding, getWidth, setBorder, setBorder, setBounds, setFrame, setHeight, setID, setMargin, setMargin, setPadding, setPadding, setWidth, toContentConstraint, trimBorder, trimMargin, trimPadding, trimToContentHeight, trimToContentWidth
public ShortTextTitle(java.lang.String text)
text
- the text (null
not permitted).public org.jfree.ui.Size2D arrange(java.awt.Graphics2D g2, RectangleConstraint constraint)
protected org.jfree.ui.Size2D arrangeNN(java.awt.Graphics2D g2)
protected org.jfree.ui.Size2D arrangeRN(java.awt.Graphics2D g2, Range widthRange)
protected org.jfree.ui.Size2D arrangeFN(java.awt.Graphics2D g2, double w)
protected org.jfree.ui.Size2D arrangeRR(java.awt.Graphics2D g2, Range widthRange, Range heightRange)
public java.lang.Object draw(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D area, java.lang.Object params)