org.pentaho.reporting.engine.classic.core.modules.output.table.html
Class HtmlPrinter

java.lang.Object
  extended by org.pentaho.reporting.engine.classic.core.modules.output.table.html.HtmlPrinter
All Implemented Interfaces:
HtmlContentGenerator
Direct Known Subclasses:
AllItemsHtmlPrinter, SingleItemHtmlPrinter

public abstract class HtmlPrinter
extends Object
implements HtmlContentGenerator

This class is the actual HTML-emitter.

Author:
Thomas Morgner

Field Summary
static String XHTML_NAMESPACE
           
 
Method Summary
static void applyHtmlAttributes(ReportAttributeMap attributes, org.pentaho.reporting.libraries.xmlns.common.AttributeList attrList)
           
static double fixLengthForSafari(double border, boolean safariLengthFix)
           
 org.pentaho.reporting.libraries.repository.ContentLocation getContentLocation()
           
 org.pentaho.reporting.libraries.repository.NameGenerator getContentNameGenerator()
           
 org.pentaho.reporting.libraries.repository.ContentLocation getDataLocation()
           
 org.pentaho.reporting.libraries.repository.NameGenerator getDataNameGenerator()
           
 org.pentaho.reporting.libraries.repository.ContentItem getDocumentContentItem()
           
 String getRegisteredName(org.pentaho.reporting.libraries.resourceloader.ResourceKey source)
           
 org.pentaho.reporting.libraries.resourceloader.ResourceManager getResourceManager()
           
 URLRewriter getUrlRewriter()
           
 boolean isRegistered(org.pentaho.reporting.libraries.resourceloader.ResourceKey source)
           
 void print(LogicalPageKey logicalPageKey, LogicalPageBox logicalPage, TableContentProducer contentProducer, OutputProcessorMetaData metaData, boolean incremental)
           
static StyleBuilder produceTextStyle(StyleBuilder styleBuilder, RenderBox box, boolean includeBorder, boolean fixLength, boolean useWhitespacePreWrap, boolean enableRoundBorderCorner, StyleBuilder.StyleCarrier[] parentElementStyle)
           
 void registerContent(org.pentaho.reporting.libraries.resourceloader.ResourceKey source, String name)
           
 void registerFailure(org.pentaho.reporting.libraries.resourceloader.ResourceKey source)
           
 void setContentWriter(org.pentaho.reporting.libraries.repository.ContentLocation contentLocation, org.pentaho.reporting.libraries.repository.NameGenerator contentNameGenerator)
           
 void setDataWriter(org.pentaho.reporting.libraries.repository.ContentLocation dataLocation, org.pentaho.reporting.libraries.repository.NameGenerator dataNameGenerator)
           
 void setUrlRewriter(URLRewriter urlRewriter)
           
static String translateHorizontalAlignment(ElementAlignment ea)
          Translates the JFreeReport horizontal element alignment into a HTML alignment constant.
 String writeImage(ImageContainer image, String encoderType, float quality, boolean alpha)
           
 String writeRaw(org.pentaho.reporting.libraries.resourceloader.ResourceKey source)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XHTML_NAMESPACE

public static final String XHTML_NAMESPACE
See Also:
Constant Field Values
Method Detail

getContentLocation

public org.pentaho.reporting.libraries.repository.ContentLocation getContentLocation()

getContentNameGenerator

public org.pentaho.reporting.libraries.repository.NameGenerator getContentNameGenerator()

getDataLocation

public org.pentaho.reporting.libraries.repository.ContentLocation getDataLocation()

getDataNameGenerator

public org.pentaho.reporting.libraries.repository.NameGenerator getDataNameGenerator()

setDataWriter

public void setDataWriter(org.pentaho.reporting.libraries.repository.ContentLocation dataLocation,
                          org.pentaho.reporting.libraries.repository.NameGenerator dataNameGenerator)

setContentWriter

public void setContentWriter(org.pentaho.reporting.libraries.repository.ContentLocation contentLocation,
                             org.pentaho.reporting.libraries.repository.NameGenerator contentNameGenerator)

getResourceManager

public org.pentaho.reporting.libraries.resourceloader.ResourceManager getResourceManager()
Specified by:
getResourceManager in interface HtmlContentGenerator

getUrlRewriter

public URLRewriter getUrlRewriter()

setUrlRewriter

public void setUrlRewriter(URLRewriter urlRewriter)

getDocumentContentItem

public org.pentaho.reporting.libraries.repository.ContentItem getDocumentContentItem()

writeRaw

public String writeRaw(org.pentaho.reporting.libraries.resourceloader.ResourceKey source)
                throws IOException
Specified by:
writeRaw in interface HtmlContentGenerator
Throws:
IOException

writeImage

public String writeImage(ImageContainer image,
                         String encoderType,
                         float quality,
                         boolean alpha)
                  throws org.pentaho.reporting.libraries.repository.ContentIOException,
                         IOException
Specified by:
writeImage in interface HtmlContentGenerator
Throws:
org.pentaho.reporting.libraries.repository.ContentIOException
IOException

applyHtmlAttributes

public static void applyHtmlAttributes(ReportAttributeMap attributes,
                                       org.pentaho.reporting.libraries.xmlns.common.AttributeList attrList)

print

public void print(LogicalPageKey logicalPageKey,
                  LogicalPageBox logicalPage,
                  TableContentProducer contentProducer,
                  OutputProcessorMetaData metaData,
                  boolean incremental)
           throws ContentProcessingException
Throws:
ContentProcessingException

produceTextStyle

public static StyleBuilder produceTextStyle(StyleBuilder styleBuilder,
                                            RenderBox box,
                                            boolean includeBorder,
                                            boolean fixLength,
                                            boolean useWhitespacePreWrap,
                                            boolean enableRoundBorderCorner,
                                            StyleBuilder.StyleCarrier[] parentElementStyle)

translateHorizontalAlignment

public static String translateHorizontalAlignment(ElementAlignment ea)
Translates the JFreeReport horizontal element alignment into a HTML alignment constant.

Parameters:
ea - the element alignment
Returns:
the translated alignment name.

registerFailure

public void registerFailure(org.pentaho.reporting.libraries.resourceloader.ResourceKey source)
Specified by:
registerFailure in interface HtmlContentGenerator

registerContent

public void registerContent(org.pentaho.reporting.libraries.resourceloader.ResourceKey source,
                            String name)
Specified by:
registerContent in interface HtmlContentGenerator

isRegistered

public boolean isRegistered(org.pentaho.reporting.libraries.resourceloader.ResourceKey source)
Specified by:
isRegistered in interface HtmlContentGenerator

getRegisteredName

public String getRegisteredName(org.pentaho.reporting.libraries.resourceloader.ResourceKey source)
Specified by:
getRegisteredName in interface HtmlContentGenerator

fixLengthForSafari

public static double fixLengthForSafari(double border,
                                        boolean safariLengthFix)