net.sf.jasperreports.engine.util
Class JRStyledText

java.lang.Object
  extended by net.sf.jasperreports.engine.util.JRStyledText

public class JRStyledText
extends java.lang.Object

Version:
$Id: JRStyledText.java 2192 2008-05-16 12:58:18Z lucianc $
Author:
Teodor Danciu (teodord@users.sourceforge.net)

Nested Class Summary
static class JRStyledText.Run
           
 
Constructor Summary
JRStyledText()
           
 
Method Summary
 void addRun(JRStyledText.Run run)
           
 void append(java.lang.String text)
           
 java.text.AttributedString getAttributedString()
           
 java.text.AttributedString getAwtAttributedString()
          Returns an attributed string that only contains standard Java text attributes; JasperReports specific text attributes of the styled text are ignored.
 java.util.Map getGlobalAttributes()
           
 java.util.List getRuns()
           
 java.lang.String getText()
           
 int length()
           
 void setGlobalAttributes(java.util.Map attributes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JRStyledText

public JRStyledText()
Method Detail

append

public void append(java.lang.String text)

addRun

public void addRun(JRStyledText.Run run)

length

public int length()

getText

public java.lang.String getText()

getAttributedString

public java.text.AttributedString getAttributedString()

getAwtAttributedString

public java.text.AttributedString getAwtAttributedString()
Returns an attributed string that only contains standard Java text attributes; JasperReports specific text attributes of the styled text are ignored.

Returns:
an attributed string that only contains standard Java text attributes

getRuns

public java.util.List getRuns()

setGlobalAttributes

public void setGlobalAttributes(java.util.Map attributes)

getGlobalAttributes

public java.util.Map getGlobalAttributes()


© 2001-2006 JasperSoft Corporation www.jaspersoft.com