|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.itextpdf.tool.xml.svg.SvgPipelineContext
public class SvgPipelineContext
Field Summary | |
---|---|
static String |
BOOKMARK_TREE
Key for the memory, used to store bookmark nodes |
static String |
LAST_MARGIN_BOTTOM
Key for the memory, used in Html TagProcessing |
Constructor Summary | |
---|---|
SvgPipelineContext()
Construct a new CvgPipelineContext object |
Method Summary | |
---|---|
boolean |
acceptUnknown()
|
protected void |
addFirst(StackKeeper stackKeeper)
Add a StackKeeper to the top of the stack list. |
void |
addSymbolById(String id,
List<Element> elements)
|
boolean |
autoBookmark()
|
SvgPipelineContext |
autoBookmark(boolean autoBookmark)
Set to true to enable the automatic creation of bookmarks on <h1> to <h6> tags. |
Charset |
charSet()
|
SvgPipelineContext |
charSet(Charset cSet)
Set a Charset to use. |
SvgPipelineContext |
clone()
Create a clone of this HtmlPipelineContext, the clone only contains the initial values, not the internal values. |
protected List<Element> |
currentContent()
|
ImageProvider |
getImageProvider()
|
LinkProvider |
getLinkProvider()
Returns the LinkProvider, used to prepend e.g. |
Rectangle |
getPageSize()
Returns a Rectangle |
List<String> |
getRootTags()
|
List<Element> |
getSymbolById(String id)
|
boolean |
isDefinition()
|
protected boolean |
isEmpty()
|
protected StackKeeper |
peek()
Retrieves, but does not remove, the head (first element) of this list. |
protected StackKeeper |
poll()
Retrieves and removes the top of the stack. |
protected TagProcessor |
resolveProcessor(String tag,
String nameSpace)
|
SvgPipelineContext |
setAcceptUnknown(boolean acceptUnknown)
Set to true to allow the HtmlPipeline to accept tags it does not find in the given TagProcessorFactory |
void |
setDefinition(boolean definition)
|
SvgPipelineContext |
setImageProvider(ImageProvider imageProvider)
An ImageProvider can be provided and works in conjunction with Image and ListStyleTypeCssApplier for List Images. |
SvgPipelineContext |
setLinkProvider(LinkProvider linkprovider)
Set the LinkProvider to use if any. |
SvgPipelineContext |
setPageSize(Rectangle pageSize)
If no pageSize is set, the default value A4 is used. |
SvgPipelineContext |
setRootTags(List<String> roottags)
Set the root-tags, this matters for margins. |
SvgPipelineContext |
setTagFactory(TagProcessorFactory tagFactory)
Set the TagProcessorFactory to be used. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String BOOKMARK_TREE
public static final String LAST_MARGIN_BOTTOM
Constructor Detail |
---|
public SvgPipelineContext()
Method Detail |
---|
public boolean isDefinition()
public void setDefinition(boolean definition)
protected TagProcessor resolveProcessor(String tag, String nameSpace)
tag
- the tag to find a TagProcessor fornameSpace
- the namespace.
protected void addFirst(StackKeeper stackKeeper)
StackKeeper
to the top of the stack list.
stackKeeper
- the StackKeeper
protected StackKeeper peek() throws NoStackException
NoStackException
- if there are no elements on the stackprotected List<Element> currentContent()
public boolean acceptUnknown()
protected boolean isEmpty()
protected StackKeeper poll() throws NoStackException
NoStackException
- if there are no elements on the stackpublic boolean autoBookmark()
public List<Element> getSymbolById(String id)
public void addSymbolById(String id, List<Element> elements)
public ImageProvider getImageProvider() throws NoImageProviderException
NoImageProviderException
- if there is no ImageProvider
@Experimental public SvgPipelineContext charSet(Charset cSet)
Charset
to use.
cSet
- the charset.
HtmlPipelineContext
public Charset charSet()
Charset
to use, or null if none configured.public Rectangle getPageSize()
Rectangle
public List<String> getRootTags()
public LinkProvider getLinkProvider()
public SvgPipelineContext setPageSize(Rectangle pageSize)
pageSize
- the pageSize to set
HtmlPipelineContext
public SvgPipelineContext clone() throws CloneNotSupportedException
AbstractImageProvider
with same ImageRootPath) ,
TagProcessorFactory (same object), acceptUnknown (primitive), charset
(Charset.forName to get a new charset), autobookmark (primitive) are
copied.
clone
in class Object
CloneNotSupportedException
public SvgPipelineContext setAcceptUnknown(boolean acceptUnknown)
TagProcessorFactory
acceptUnknown
- true or false
HtmlPipelineContext
public SvgPipelineContext setTagFactory(TagProcessorFactory tagFactory)
TagProcessorFactory
to be used. For HTML use Tags.getHtmlTagProcessorFactory()
tagFactory
- the TagProcessorFactory
that should be used
HtmlPipelineContext
public SvgPipelineContext autoBookmark(boolean autoBookmark)
Header
.
autoBookmark
- true or false
HtmlPipelineContext
public SvgPipelineContext setRootTags(List<String> roottags)
roottags
- the root tags
HtmlPipelineContext
public SvgPipelineContext setImageProvider(ImageProvider imageProvider)
Image
and ListStyleTypeCssApplier
for List Images.
imageProvider
- the ImageProvider
to use.
HtmlPipelineContext
public SvgPipelineContext setLinkProvider(LinkProvider linkprovider)
linkprovider
- the LinkProvider (@see
HtmlPipelineContext.getLinkProvider()
HtmlPipelineContext
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |