|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.itextpdf.tool.xml.svg.AbstractGraphicProcessor
public class AbstractGraphicProcessor
| Constructor Summary | |
|---|---|
AbstractGraphicProcessor()
|
|
| Method Summary | |
|---|---|
void |
addElementsToMemoryWithId(WorkerContext ctx,
Tag tag,
List<Element> currentContent)
|
List<Element> |
content(WorkerContext ctx,
Tag tag,
String content)
This method is called if there is text content encountered between the opening and closing tags this TagProcessor is mapped to. |
List<Element> |
end(WorkerContext ctx,
Tag tag,
List<Element> currentContent)
Classes extending AbstractTagProcessor should override this method for actions that should be done in TagProcessor.endElement(WorkerContext, Tag, List). |
List<Element> |
endElement(WorkerContext ctx,
Tag tag,
List<Element> currentContent)
Checks for CSS.Property.PAGE_BREAK_AFTER, if the
value is always a Chunk.NEXTPAGE is added to the
currentContentList after calling
AbstractTagProcessor.end(WorkerContext, Tag, List). |
CSSResolver |
getCSSResolver(WorkerContext context)
Utility method that fetches the CSSResolver from the if any and if it uses the default key. |
SvgPipelineContext |
getSvgPipelineContext(WorkerContext context)
Utility method that fetches the HtmlPipelineContext used if any and if it uses the default key. |
boolean |
isElementWithId()
|
boolean |
isStackOwner()
Defaults to false. |
List<Element> |
start(WorkerContext ctx,
Tag tag)
Classes extending AbstractTagProcessor should override this method for actions that should be done in TagProcessor.startElement(WorkerContext, Tag). |
List<Element> |
startElement(WorkerContext ctx,
Tag tag)
Calculates any found font size to pt values and set it in the CSS before calling AbstractTagProcessor.start(WorkerContext, Tag).Checks for CSS.Property.PAGE_BREAK_BEFORE, if the
value is always a Chunk.NEXTPAGE added before the
implementors AbstractTagProcessor.start(WorkerContext, Tag) method. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractGraphicProcessor()
| Method Detail |
|---|
public CSSResolver getCSSResolver(WorkerContext context)
throws NoCustomContextException
context - the WorkerContext
NoCustomContextException - if the context of the
CssResolverPipeline could not be found.
public SvgPipelineContext getSvgPipelineContext(WorkerContext context)
throws NoCustomContextException
context - the WorkerContext
NoCustomContextException - if the context of the
HtmlPipelineContext could not be found.
public final List<Element> startElement(WorkerContext ctx,
Tag tag)
AbstractTagProcessor.start(WorkerContext, Tag).CSS.Property.PAGE_BREAK_BEFORE, if the
value is always a Chunk.NEXTPAGE added before the
implementors AbstractTagProcessor.start(WorkerContext, Tag) method.
startElement in interface TagProcessorctx - the WorkerContexttag - the tag encountered
public List<Element> start(WorkerContext ctx,
Tag tag)
TagProcessor.startElement(WorkerContext, Tag). The AbstractTagProcessor.startElement(WorkerContext, Tag) calls this method
after or before doing certain stuff, (see it's description).
ctx - the WorkerContexttag - the tag
public List<Element> content(WorkerContext ctx,
Tag tag,
String content)
TagProcessor
content in interface TagProcessorctx - the WorkerContexttag - the tag encounteredcontent - the text content between the tags this TagProcessor is
mapped to.
public void addElementsToMemoryWithId(WorkerContext ctx,
Tag tag,
List<Element> currentContent)
public final List<Element> endElement(WorkerContext ctx,
Tag tag,
List<Element> currentContent)
CSS.Property.PAGE_BREAK_AFTER, if the
value is always a Chunk.NEXTPAGE is added to the
currentContentList after calling
AbstractTagProcessor.end(WorkerContext, Tag, List).
endElement in interface TagProcessorctx - the WorkerContexttag - the tag encounteredcurrentContent - a list of content possibly created by TagProcessing
of inner tags, and by startElement and
content methods of this TagProcessor
.
public List<Element> end(WorkerContext ctx,
Tag tag,
List<Element> currentContent)
TagProcessor.endElement(WorkerContext, Tag, List).
The AbstractTagProcessor.endElement(WorkerContext, Tag, List) calls this method
after or before doing certain stuff, (see it's description).
ctx - the WorkerContexttag - the tagcurrentContent - the content created from e.g. inner tags, inner content and not yet added to document.
public boolean isStackOwner()
isStackOwner in interface TagProcessorTagProcessor.isStackOwner()public boolean isElementWithId()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||