|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.backend.documentWriter.svg.SVGDocumentWriter
public class SVGDocumentWriter
This is a SVG implementation of a document writer. TODO incomplete !!!
| Constructor Summary | |
|---|---|
SVGDocumentWriter(Configuration cfg,
DocumentWriterOptions options)
Creates a new object. |
|
| Method Summary | |
|---|---|
void |
close()
This method is invoked upon the end of the processing. |
java.lang.String |
getExtension()
Getter for the extension associated with this kind of output. |
void |
setOutputStreamFactory(OutputStreamFactory writerfactory)
Setter for the output stream. |
void |
setParameter(java.lang.String name,
java.lang.String value)
Setter for a named parameter. |
int |
shipout(Page page)
This is the entry point for the document writer. |
java.lang.Object |
visitAdjust(AdjustNode value,
java.lang.Object value2)
This method is called when an AdjustNode has been
encountered. |
java.lang.Object |
visitAfterMath(AfterMathNode value,
java.lang.Object value2)
This method is called when an AfterMathNode has
been encountered. |
java.lang.Object |
visitAlignedLeaders(AlignedLeadersNode value,
java.lang.Object value2)
This method is called when an AlignedLeadersNode
has been encountered. |
java.lang.Object |
visitBeforeMath(BeforeMathNode node,
java.lang.Object value2)
This method is called when a BeforeMathNode has
been encountered. |
java.lang.Object |
visitCenteredLeaders(CenteredLeadersNode node,
java.lang.Object value)
This method is called when a CenteredLeadersNode
has been encountered. |
java.lang.Object |
visitChar(CharNode node,
java.lang.Object value)
This method is called when a CharNode has been
encountered. |
java.lang.Object |
visitDiscretionary(DiscretionaryNode node,
java.lang.Object value)
This method is called when a DiscretionaryNode
has been encountered. |
java.lang.Object |
visitExpandedLeaders(ExpandedLeadersNode node,
java.lang.Object value)
This method is called when an ExpandedLeadersNode
has been encountered. |
java.lang.Object |
visitGlue(GlueNode node,
java.lang.Object value)
This method is called when a GlueNode has been
encountered. |
java.lang.Object |
visitHorizontalList(HorizontalListNode node,
java.lang.Object value)
This method is called when a HorizontalListNode
has been encountered. |
java.lang.Object |
visitInsertion(InsertionNode node,
java.lang.Object value)
This method is called when an InsertionNode has
been encountered. |
java.lang.Object |
visitKern(KernNode node,
java.lang.Object value)
This method is called when a KernNode has been
encountered. |
java.lang.Object |
visitLigature(LigatureNode node,
java.lang.Object value)
This method is called when a LigatureNode has been
encountered. |
java.lang.Object |
visitMark(MarkNode node,
java.lang.Object value)
This method is called when a MarkNode has been
encountered. |
java.lang.Object |
visitPenalty(PenaltyNode node,
java.lang.Object value)
This method is called when a PenaltyNode has been
encountered. |
java.lang.Object |
visitRule(RuleNode node,
java.lang.Object value)
This method is called when a RuleNode has been
encountered. |
java.lang.Object |
visitSpace(SpaceNode node,
java.lang.Object value)
This method is called when a SpaceNode has been
encountered. |
java.lang.Object |
visitVerticalList(VerticalListNode node,
java.lang.Object value)
This method is called when a VerticalListNode
has been encountered. |
java.lang.Object |
visitVirtualChar(VirtualCharNode node,
java.lang.Object value)
This method is called when a VirtualCharNode
has been encountered. |
java.lang.Object |
visitWhatsIt(WhatsItNode nde,
java.lang.Object value)
This method is called when a WhatsItNode has been
encountered. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SVGDocumentWriter(Configuration cfg,
DocumentWriterOptions options)
cfg - the configurationoptions - the options| Method Detail |
|---|
public void close()
throws DocumentWriterException
close in interface DocumentWriterDocumentWriterExceptionDocumentWriter.close()public java.lang.String getExtension()
getExtension in interface DocumentWriterDocumentWriter.getExtension()public void setOutputStreamFactory(OutputStreamFactory writerfactory)
setOutputStreamFactory in interface MultipleDocumentStreamwriterfactory - the output streamMultipleDocumentStream.setOutputStreamFactory(
org.extex.backend.outputStream.OutputStreamFactory)
public void setParameter(java.lang.String name,
java.lang.String value)
setParameter in interface DocumentWritername - the name of the parametervalue - the value of the parameterDocumentWriter.setParameter(
java.lang.String, java.lang.String)
public int shipout(Page page)
throws DocumentWriterException,
GeneralException
If the page is null then no page has to be shipped and 0
has to be returned.
shipout in interface DocumentWriterpage - the page to send
GeneralException - in case of a general exceptionDocumentWriterExceptionDocumentWriter.shipout(
org.extex.typesetter.type.page.Page)
public java.lang.Object visitAdjust(AdjustNode value,
java.lang.Object value2)
AdjustNode has been
encountered.
visitAdjust in interface NodeVisitor<java.lang.Object,java.lang.Object>value - the first parameter for the visitor is the node visitedvalue2 - the second parameter for the visitor
NodeVisitor.visitAdjust(AdjustNode,
java.lang.Object)
public java.lang.Object visitAfterMath(AfterMathNode value,
java.lang.Object value2)
AfterMathNode has
been encountered.
visitAfterMath in interface NodeVisitor<java.lang.Object,java.lang.Object>value - the first parameter for the visitor is the node visitedvalue2 - the second parameter for the visitor
NodeVisitor.visitAfterMath(AfterMathNode,
java.lang.Object)
public java.lang.Object visitAlignedLeaders(AlignedLeadersNode value,
java.lang.Object value2)
AlignedLeadersNode
has been encountered.
visitAlignedLeaders in interface NodeVisitor<java.lang.Object,java.lang.Object>value - the first parameter for the visitor is the node visitedvalue2 - the second parameter for the visitor
NodeVisitor.visitAlignedLeaders(AlignedLeadersNode,
java.lang.Object)
public java.lang.Object visitBeforeMath(BeforeMathNode node,
java.lang.Object value2)
BeforeMathNode has
been encountered.
visitBeforeMath in interface NodeVisitor<java.lang.Object,java.lang.Object>node - the first parameter for the visitor is the node visitedvalue2 - the second parameter for the visitor
NodeVisitor.visitBeforeMath(BeforeMathNode,
java.lang.Object)
public java.lang.Object visitCenteredLeaders(CenteredLeadersNode node,
java.lang.Object value)
CenteredLeadersNode
has been encountered.
visitCenteredLeaders in interface NodeVisitor<java.lang.Object,java.lang.Object>node - the first parameter for the visitor is the node visitedvalue - the second parameter for the visitor
NodeVisitor.visitCenteredLeaders(CenteredLeadersNode,
java.lang.Object)
public java.lang.Object visitChar(CharNode node,
java.lang.Object value)
throws DocumentWriterException
CharNode has been
encountered.
visitChar in interface NodeVisitor<java.lang.Object,java.lang.Object>node - the first parameter for the visitor is the node visitedvalue - the second parameter for the visitor
DocumentWriterExceptionNodeVisitor.visitChar(CharNode,
java.lang.Object)
public java.lang.Object visitDiscretionary(DiscretionaryNode node,
java.lang.Object value)
DiscretionaryNode
has been encountered.
visitDiscretionary in interface NodeVisitor<java.lang.Object,java.lang.Object>node - the first parameter for the visitor is the node visitedvalue - the second parameter for the visitor
NodeVisitor.visitDiscretionary(DiscretionaryNode,
java.lang.Object)
public java.lang.Object visitExpandedLeaders(ExpandedLeadersNode node,
java.lang.Object value)
ExpandedLeadersNode
has been encountered.
visitExpandedLeaders in interface NodeVisitor<java.lang.Object,java.lang.Object>node - the first parameter for the visitor is the node visitedvalue - the second parameter for the visitor
NodeVisitor.visitExpandedLeaders(ExpandedLeadersNode,
java.lang.Object)
public java.lang.Object visitGlue(GlueNode node,
java.lang.Object value)
GlueNode has been
encountered.
visitGlue in interface NodeVisitor<java.lang.Object,java.lang.Object>node - the first parameter for the visitor is the node visitedvalue - the second parameter for the visitor
NodeVisitor.visitGlue(GlueNode,
java.lang.Object)
public java.lang.Object visitHorizontalList(HorizontalListNode node,
java.lang.Object value)
throws DocumentWriterException,
GeneralException
HorizontalListNode
has been encountered.
visitHorizontalList in interface NodeVisitor<java.lang.Object,java.lang.Object>node - the first parameter for the visitor is the node visitedvalue - the second parameter for the visitor
GeneralException - in case of an error
DocumentWriterExceptionNodeVisitor.visitHorizontalList(HorizontalListNode,
java.lang.Object)
public java.lang.Object visitInsertion(InsertionNode node,
java.lang.Object value)
InsertionNode has
been encountered.
visitInsertion in interface NodeVisitor<java.lang.Object,java.lang.Object>node - the first parameter for the visitor is the node visitedvalue - the second parameter for the visitor
NodeVisitor.visitInsertion(InsertionNode,
java.lang.Object)
public java.lang.Object visitKern(KernNode node,
java.lang.Object value)
KernNode has been
encountered.
visitKern in interface NodeVisitor<java.lang.Object,java.lang.Object>node - the first parameter for the visitor is the node visitedvalue - the second parameter for the visitor
NodeVisitor.visitKern(KernNode,
java.lang.Object)
public java.lang.Object visitLigature(LigatureNode node,
java.lang.Object value)
LigatureNode has been
encountered.
visitLigature in interface NodeVisitor<java.lang.Object,java.lang.Object>node - the first parameter for the visitor is the node visitedvalue - the second parameter for the visitor
NodeVisitor.visitLigature(LigatureNode,
java.lang.Object)
public java.lang.Object visitMark(MarkNode node,
java.lang.Object value)
MarkNode has been
encountered.
visitMark in interface NodeVisitor<java.lang.Object,java.lang.Object>node - the first parameter for the visitor is the node visitedvalue - the second parameter for the visitor
NodeVisitor.visitMark(MarkNode,
java.lang.Object)
public java.lang.Object visitPenalty(PenaltyNode node,
java.lang.Object value)
PenaltyNode has been
encountered.
visitPenalty in interface NodeVisitor<java.lang.Object,java.lang.Object>node - the first parameter for the visitor is the node visitedvalue - the second parameter for the visitor
NodeVisitor.visitPenalty(PenaltyNode,
java.lang.Object)
public java.lang.Object visitRule(RuleNode node,
java.lang.Object value)
RuleNode has been
encountered.
visitRule in interface NodeVisitor<java.lang.Object,java.lang.Object>node - the first parameter for the visitor is the node visitedvalue - the second parameter for the visitor
NodeVisitor.visitRule(RuleNode,
java.lang.Object)
public java.lang.Object visitSpace(SpaceNode node,
java.lang.Object value)
throws DocumentWriterException
SpaceNode has been
encountered.
visitSpace in interface NodeVisitor<java.lang.Object,java.lang.Object>node - the first parameter for the visitor is the node visitedvalue - the second parameter for the visitor
DocumentWriterExceptionNodeVisitor.visitSpace(SpaceNode,
java.lang.Object)
public java.lang.Object visitVerticalList(VerticalListNode node,
java.lang.Object value)
throws DocumentWriterException,
GeneralException
VerticalListNode
has been encountered.
visitVerticalList in interface NodeVisitor<java.lang.Object,java.lang.Object>node - the first parameter for the visitor is the node visitedvalue - the second parameter for the visitor
GeneralException - in case of an error
DocumentWriterExceptionNodeVisitor.visitVerticalList(VerticalListNode,
java.lang.Object)
public java.lang.Object visitVirtualChar(VirtualCharNode node,
java.lang.Object value)
throws GeneralException
VirtualCharNode
has been encountered.
visitVirtualChar in interface NodeVisitor<java.lang.Object,java.lang.Object>node - the first parameter for the visitor is the node visitedvalue - the second parameter for the visitor
GeneralException - in case of an errorNodeVisitor.visitVirtualChar(org.extex.typesetter.type.node.VirtualCharNode,
java.lang.Object)
public java.lang.Object visitWhatsIt(WhatsItNode nde,
java.lang.Object value)
WhatsItNode has been
encountered.
visitWhatsIt in interface NodeVisitor<java.lang.Object,java.lang.Object>nde - the first parameter for the visitor is the node visitedvalue - the second parameter for the visitor
NodeVisitor.visitWhatsIt(WhatsItNode,
java.lang.Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||