lt.monarch.chart.text
Class StackedTextPainter

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

public class StackedTextPainter
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
StackedTextPainter()
           
StackedTextPainter(java.lang.String s)
           
StackedTextPainter(java.lang.String[] s)
           
StackedTextPainter(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, java.awt.Rectangle r)
           
 
Methods inherited from class lt.monarch.chart.text.TextPainter
dispose, findBounds, getBounds, getHorizontalAlignment, getHorizontalMargin, getMarginInPixels, getMinimumHeight, getMinimumSize, getText, getVerticalAlignment, getVerticalMargin, getWrappingEnabled, paint, 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

StackedTextPainter

public StackedTextPainter(java.lang.String s,
                          Alignment hAlign,
                          Alignment vAlign)

StackedTextPainter

public StackedTextPainter(java.lang.String s)

StackedTextPainter

public StackedTextPainter(java.lang.String[] s)

StackedTextPainter

public StackedTextPainter()
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,
                  java.awt.Rectangle r)