com.adobe.icc.ddg
Class RenderHelperServiceImpl

java.lang.Object
  extended by com.adobe.icc.ddg.RenderHelperServiceImpl
All Implemented Interfaces:
RenderHelperService

public class RenderHelperServiceImpl
extends java.lang.Object
implements RenderHelperService


Constructor Summary
RenderHelperServiceImpl()
           
 
Method Summary
 java.lang.Double calculateTextIndent(java.lang.String bulletChar, java.lang.String fontSize, java.lang.String fontFamily, java.lang.String letterSpacing, boolean bold, boolean italic)
          Calculate the text indent required for given bullet char.
 java.lang.String convertPixelStylesToPoints(java.lang.String resolvedContent)
          Some of the styles specially created using old version of editors might have font-size, letter-spacing values in pixels which vary as per screen resolution.
 boolean isAutoCorrectPixelStyles()
           
 void setAutoCorrectPixelStyles(boolean autoCorrectPixelStyles)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RenderHelperServiceImpl

public RenderHelperServiceImpl()
Method Detail

calculateTextIndent

public java.lang.Double calculateTextIndent(java.lang.String bulletChar,
                                            java.lang.String fontSize,
                                            java.lang.String fontFamily,
                                            java.lang.String letterSpacing,
                                            boolean bold,
                                            boolean italic)
Description copied from interface: RenderHelperService
Calculate the text indent required for given bullet char. The returned text-indent should be multiple of tab size that is 36

Specified by:
calculateTextIndent in interface RenderHelperService
Parameters:
bulletChar - the string containing bullet characters
fontSize - font size for e.g. 12pt
fontFamily - Font family
letterSpacing - Letter Spacing desired between the bullet characters e.g. 2pt
italic - are bullet characters italic
Returns:
Text Indent as multiple of 36

convertPixelStylesToPoints

public java.lang.String convertPixelStylesToPoints(java.lang.String resolvedContent)
Description copied from interface: RenderHelperService
Some of the styles specially created using old version of editors might have font-size, letter-spacing values in pixels which vary as per screen resolution. This method converts pixels values in points. Default implementation has 1:1 scaling between pixels and points.

Specified by:
convertPixelStylesToPoints in interface RenderHelperService
Parameters:
resolvedContent - The text content on which conversion has to applied
Returns:
Converted content which will have pixel values replaced by point values.

isAutoCorrectPixelStyles

public boolean isAutoCorrectPixelStyles()

setAutoCorrectPixelStyles

public void setAutoCorrectPixelStyles(boolean autoCorrectPixelStyles)


[an error occurred while processing this directive] [an error occurred while processing this directive]