lt.monarch.chart.text
Class Rotated90TextPainter
java.lang.Object
lt.monarch.chart.text.TextPainter
lt.monarch.chart.text.Rotated90TextPainter
- All Implemented Interfaces:
- java.io.Serializable, AbstractTextPainter
public class Rotated90TextPainter
extends TextPainter
- See Also:
- Serialized Form
Method Summary
java.awt.Dimension |
getMinimumSize(java.awt.FontMetrics fm)
Returns the minimum font size of the specified font metrics. |
void |
paint(AbstractGraphics g,
Rectangle2D r)
Paints text into specified rectangle using provided graphics context. |
| Methods inherited from class lt.monarch.chart.text.TextPainter |
dispose, findBounds, getBounds, getHorizontalAlignment, getHorizontalMargin, getMarginInPixels, getMinimumHeight, getMinimumSize, getText, getVerticalAlignment, getVerticalMargin, getWrappingEnabled, setHorizontalAlignment, setHorizontalMargin, setMargin, setText, setText, setVerticalAlignment, setVerticalMargin, setWrappingEnabled |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Rotated90TextPainter
public Rotated90TextPainter(java.lang.String s,
Alignment hAlign,
Alignment vAlign)
Rotated90TextPainter
public Rotated90TextPainter(java.lang.String s)
Rotated90TextPainter
public Rotated90TextPainter(java.lang.String[] s)
Rotated90TextPainter
public Rotated90TextPainter()
getMinimumSize
public java.awt.Dimension getMinimumSize(java.awt.FontMetrics fm)
- Description copied from interface:
AbstractTextPainter
- Returns the minimum font size of the specified font metrics.
- Specified by:
getMinimumSize in interface AbstractTextPainter
- Overrides:
getMinimumSize in class TextPainter
- Parameters:
fm - font metrics.
- Returns:
- dimension of font metrics placed in graphics context
- See Also:
FontMetrics
paint
public void paint(AbstractGraphics g,
Rectangle2D r)
- Description copied from interface:
AbstractTextPainter
- Paints text into specified rectangle using provided graphics context.
- Specified by:
paint in interface AbstractTextPainter
- Overrides:
paint in class TextPainter
- Parameters:
g - current graphics context.r - area of text painting.