lt.monarch.chart.text
Class Rotated90TextPainter

java.lang.Object
  extended by lt.monarch.chart.text.TextPainter
      extended by lt.monarch.chart.text.Rotated90TextPainter
All Implemented Interfaces:
java.io.Serializable, AbstractTextPainter

public class Rotated90TextPainter
extends TextPainter

See Also:
Serialized Form

Field Summary
Modifier and Type Field and Description
 
Fields inherited from class lt.monarch.chart.text.TextPainter
boundingBox, hAlignment, text, vAlignment, xMargin, yMargin
 
Constructor Summary
Constructor and Description
Rotated90TextPainter()
           
Rotated90TextPainter(java.lang.String s)
           
Rotated90TextPainter(java.lang.String[] s)
           
Rotated90TextPainter(java.lang.String s, Alignment hAlign, Alignment vAlign)
           
 
Method Summary
Modifier and Type Method and Description
 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
 

Constructor Detail

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()
Method Detail

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.