com.itextpdf.tool.xml.svg.tags
Class GroupTag

java.lang.Object
  extended by com.itextpdf.tool.xml.svg.AbstractGraphicProcessor
      extended by com.itextpdf.tool.xml.svg.tags.GroupTag
All Implemented Interfaces:
TagProcessor

public class GroupTag
extends AbstractGraphicProcessor


Constructor Summary
GroupTag()
           
 
Method Summary
 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).
 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).
 
Methods inherited from class com.itextpdf.tool.xml.svg.AbstractGraphicProcessor
addElementsToMemoryWithId, endElement, getCSSResolver, getSvgPipelineContext, isElementWithId, startElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupTag

public GroupTag()
Method Detail

start

public List<Element> start(WorkerContext ctx,
                           Tag tag)
Description copied from class: AbstractGraphicProcessor
Classes extending AbstractTagProcessor should override this method for actions that should be done in TagProcessor.startElement(WorkerContext, Tag). The AbstractTagProcessor.startElement(WorkerContext, Tag) calls this method after or before doing certain stuff, (see it's description).

Overrides:
start in class AbstractGraphicProcessor
Parameters:
ctx - the WorkerContext
tag - the tag
Returns:
an element to be added to current content, may be null

content

public List<Element> content(WorkerContext ctx,
                             Tag tag,
                             String content)
Description copied from interface: TagProcessor
This method is called if there is text content encountered between the opening and closing tags this TagProcessor is mapped to.

Specified by:
content in interface TagProcessor
Overrides:
content in class AbstractGraphicProcessor
Parameters:
ctx - the WorkerContext
tag - the tag encountered
content - the text content between the tags this TagProcessor is mapped to.
Returns:
the element to add to the currentContent list

end

public List<Element> end(WorkerContext ctx,
                         Tag tag,
                         List<Element> currentContent)
Description copied from class: AbstractGraphicProcessor
Classes extending AbstractTagProcessor should override this method for actions that should be done in TagProcessor.endElement(WorkerContext, Tag, List). The AbstractTagProcessor.endElement(WorkerContext, Tag, List) calls this method after or before doing certain stuff, (see it's description).

Overrides:
end in class AbstractGraphicProcessor
Parameters:
ctx - the WorkerContext
tag - the tag
currentContent - the content created from e.g. inner tags, inner content and not yet added to document.
Returns:
a List containing iText Element objects

isStackOwner

public boolean isStackOwner()
Description copied from class: AbstractGraphicProcessor
Defaults to false.

Specified by:
isStackOwner in interface TagProcessor
Overrides:
isStackOwner in class AbstractGraphicProcessor
Returns:
true if the tag implementation must keep it's own currentContent stack.
See Also:
TagProcessor.isStackOwner()


Copyright © 2012. All Rights Reserved.